Character Counter for ADF 11g RichTextEditor

I am rewriting an application in 11g RichFaces. The original app had a text area that had a maximum allowable length and used a Javascript function to display to the user how many characters they had left as they were typing. In the new app, I have replaced this functionality with the WYSIWYG RichTextEditor, but would like to give them the same functionality that they had before. I would like to display, as they type, a character count. The count needs to be of the actual displayed characters, not the count of HTML characters that are generated behind the scenes by the RichTextEditor.
Is this possible?

huh? waking up a 1-year-old thread to ask an unrelated question (and a demand for us to write your code for you to wit)?

Similar Messages

  • What are the best coding standards for ADF 11g?

    Hi,
    Do we have any link that will suggest the best coding standard practices used for ADF 11g?
    I am looking out from the perspective of some standards that can be defined before starting my project to know the team on how to
    1. Minimize Duplicity and max reusability of code
    2. Package the code
    3. Resource bundle usage and its calls
    4. Maintainning format consistency eg. date display format, number format
    5. Exception handling
    6. Logging
    7. Namiing conventions
    Also then we might have standards on
    1. Task flow dev.
    2. EO and VO creation standards
    3. UI development standards [purely ADF component based]
    Thanks in advance
    Edited by: user8925296 on May 26, 2010 3:24 PM

    The ADF Enterprise Methodology Group has a page on standards that gives you a starting point on many of your questions: http://groups.google.com/group/adf-methodology/web/adf-coding-standards
    John

  • Note 974949.1  (Section 3) says  that EBS JAAS is not intended for ADF 11g

    We are using EBS R12.1.3 and JDEV 11g (11.1.1.4) and want to develop some custom applications based on EBS database, and would like to utilize fnd_users table for user athuentication. Note 974949.1 (Section 3) says that EBS JAAS is not intended for ADF 11g. So whats the other method we have to use for ADF 11g?

    Jemar,
    As far as i know there is no integration of EBS with ADF. Anyways, Refer http://forums.oracle.com/forums/message.jspa?messageID=9369406#9369406.
    Hope this thread helps u.
    Note :- Close your previous thread http://forums.oracle.com/forums/message.jspa?messageID=9369406#9369406 by marking helpful & correct reply .if your issue has been resolved. This would be really helpful for someone in need.
    Regards,
    Gyan

  • How to streamline downloading Javascript Resources for ADF 11g

    hi,
    i need to streamline downloading Javascript Resources for ADF 11g for whole application
    thanks
    Kiran

    Timo is right, your question is vague... however, you may be interested in [url http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/ap_config.htm#insertedID9]this - if not, explain what you might be meaning.
    John

  • Character Counter for a Rich Text Editor

    Version  4.1.1.00.23
    Hello,
    I'm hoping that someone has a solution for a character counter/validation to use on the Rich Text Editor.
    Thanks,
    Joe

    Hi,
    Happy New Year.
    Ok.
    Well, I'm not expert on this, but this peace of code might help you get started.
    Code should go to page JavaScript -> Execute when Page Loads
    var lEditor=CKEDITOR.instances.Px_YOUR_EDITOR;
    lEditor.on('contentDom', function() {
    lEditor.document.on('keyup', function(e) {
    var len=lEditor.getData().replace(/<[^>]*>|\s/g, '').length;
      /* do here something. JavaScript valiable "len" holds editor text length e.g. */
    /* alert(len); */
    Replace Px_YOUR_EDITOR with your editor name.
    I do not have any idea does it work on all browser. I did test with Firefox.
    Regards,
    Jari

  • DBMS based custom login module for ADF 11g on Web Logic Server (10.3.1.0)

    We have the requirement of creating a login page, wherein the authentication is performed against users records stored in a specific table in Oracle Database. The ADF 11g developer guide does not provide any example to accomplish the same. Though there are numerous examples of achieving the same using OC4J, but there is none available to achieve this on Web Logic Server. Do we have any documentation or information available on this?

    User,
    Have a search on the forum or check the WLS documentation. WLS has built-in authenticators for this that you can likely use.
    John

  • How to enable SSO for ADF 11g application

    Hi All,
    I am new to ADF 11g. I need to enable SSO authentication for a ADF 11g application.
    Please let me know if we have any document to follow to perform the configuration.
    Thanks
    Sai

    Check this out
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e15478/opssadf.htm
    -Arun

  • ADF 11g support for Internet Explorer 8 plus x

    hi
    Given the current situation for ADF 10g, see forum thread "ADF 10g support for Internet Explorer 8" ...
    at ADF 10g support for Internet Explorer 8
    ... I was wondering about the future browser support in ADF 11g.
    (Specifically about IE8 the knownissues.html document for JDeveloper and ADF 11g (11.1.1.1.0) currently says "Internet Explorer 8 is neither supported nor certified. If you must use IE8, set the compatibility view settings in your IE8 browser to ALL. In IE8, go to the Tools menu -> Compatibility View Settings and check the last checkbox "Display All Websites In Compatibility View"." and "... IE8 support should be in the upcoming first patch set. ..." Re: PanelStretchLayout on IE8.)
    question
    (q1) What is the life expectancy of applications built with ADF (Faces) 11g in regard to their future browser support?
    many thanks
    Jan Vervecken
    edit 20091001 : fixed link to knownissues.html

    Thanks for your reply Shay.
    We plan to officially support IE8 with the next patch release to JDeveloper 11g - currently planned for later this year.That matches what I wrote in my initial post in this forum thread about IE8 support.
    We usually only certify browsers after they officially go production.That does not really answer my question (q1) in this forum thread.
    It is more like, how can I assess that Oracle will support any successor(s) of IE8 or successor(s) of any currently supported browsers for ADF 11g applications in the future? How long will Oracle support "commonly used browsers" for an ADF 11g application I build today, so how long will I be able to use that application?
    How do I answer such questions for ADF 11g applications that should be deployed on the internet (where, as some extranet environments, you typically have not that much (or no) control over which browsers your users use ... although some would like to argue with that, see forum thread "ADF Faces RC browser support and browser market share")?
    (By the way, do you have any feedback for the forum thread "ADF 10g support for Internet Explorer 8"?)
    regards
    Jan

  • How do I limit the character count in a text field?

    I'm creating a form for co-workers to use when creating web content. I need to restrict their character count for items like headlines, titles, subtitles, etc. Any suggestions on a ready-made form to use out there? And how can I limit those fields so they don't generate content that will then need to be edited down?
    Thanks,
    EAW

    Check out this post:
    http://forums.adobe.com/message/4364378
    Randy

  • Character counter does not display data on IE when counter is 0

    Hi,
    I am implementing a character counter in ADF using Javascript (referencing this http://www.oracle.com/technetwork/developer-tools/adf/learnmore/10-char-input-counter-169133.pdf).
    I display the string --> 'x' characters left
    The problem that I am facing is: when my character counter becomes 0 (can no longer enter any text, the maxlimit of the input field is reached) then on IE browsers, it does not show the character '0'. It displays a blank. On Firefox and Chrome, however, the UI gets displayed as expected i.e. 0 characters left.
    Can I get any pointers how to fix this on IE. Have tested with IE versions 7,8,9. JDev version is 11.1.1.5.0
    Here is the code snippet that I am using:
    Javascript:
    function showCharacterCount(event) {
    var keyCodePressed = event.getKeyCode();
    if (keyCodePressed == AdfKeyStroke.TAB_KEY
    || keyCodePressed == AdfKeyStroke.ARROWLEFT_KEY
    || keyCodePressed == AdfKeyStroke.ARROWUP_KEY
    || keyCodePressed == AdfKeyStroke.ARROWRIGHT_KEY
    || keyCodePressed == AdfKeyStroke.ARROWDOWN_KEY) {
    event.cancel();
    else {
    textfield = event.getCurrentTarget();
    textfieldValue = event.getSource().getSubmittedValue();
    textfieldLength = textfieldValue.length;
    textfieldMaxLength = textfield.getMaximumLength();
    o = AdfPage.PAGE.findComponent('characterCounter');
    characterCounterValue = o.getValue();
    characterCounterValue = textfieldMaxLength - textfieldLength;
    o.setValue(characterCounterValue);
    UI:
    <af:panelGroupLayout id="pgl3" layout="horizontal">
    <af:outputText id="characterCounter" clientComponent="true" value="325"
    inlineStyle="text-align:right; display:block; width:100.0px;"
    binding="#{viewScope.myBean.characterCounterBndg}"/>
    <af:outputText value="characters left" id="ot7"
    inlineStyle="padding-left:5.0px;"/>
    </af:panelGroupLayout>
    <af:inputText id="it2" rows="4" columns="53"
    value="#{viewScope.myBean.text}" maximumLength="325" clientComponent="true"
    simple="true">
    <af:clientListener method="showCharacterCount"
    type="keyUp"/>
    </af:inputText>
    Thanks in advance.

    Try converting from dynamic data, that seems to take care of the problem. Also, you could use the regular field point VIs instead of the FP express VI. Check out the attached VI.
    -Alan A.
    Attachments:
    FP_Read.vi ‏30 KB

  • Character count display problem in IE

    Hi all,
    I have implemented a character counter in ADF using Javascript (referencing this http://www.oracle.com/technetwork/developer-tools/adf/learnmore/10-char-input-counter-169133.pdf).
    The problem that I am facing is: when my character counter becomes 0 (can no longer enter any text, the maxlimit of the input field is reached) then on IE browsers, it does not show the character '0'. It displays a blank. On Firefox and Chrome, however, the UI gets displayed as expected i.e. 0 characters left.
    Let me know how to fix this on IE. Have tested with IE versions 8,9. JDev version is 11.1.1.7.0.
    Thanks,
    Anu.

    Hi,
    debugging the JavaScript to see what the value of the variable really is is a good start. If it turns out that it is becoming null, then you could use a if() case in that whenever the value is null you set it to 0. If the value however is correct but just doesn't render then you can try and transform it to a character instead of a number to see if the numeric output is the problem. This is how I would address the problem
    Frank

  • SMS character count? Does the iphone have one?

    Is it possible to see a character count for SMS's? i.e. on other phones, as you type, it tells you how many characters you have typed or have left, so you can ensure that you aren't needlessly sending 2 txts instead of 1?

    Am I able to import photos from my iPhone to my computer again after I have already imported them once? I can't find a setting to allow me to do this. It will only import new ones.
    Message was edited by: jillalli

  • Word counts and character counts

    Hi,
    I'm using Pages '06. I would like to be able to count the number of words and characters in a paragraph in Pages. I know that if i go to the Document Inspector and click info, it gives me word and character counts for the entire document. Is there a way to do this for individual paragraphs?
    Many thanks.
    Joe.

    After you install WordService (see link in Dennis' post), you can access several new services in the Pages menu. You may have to restart Pages &/or your Mac.
    WordService & CalcService add their functions to any OS X program that has been programed to utilize Services. I've been using them since shortly after I got iWork '05.

  • Looking for ADF detailed API and Components Docs

    Hi Gurus! I am trying some hands on with the tutorial application (http://www.oracle.com/technology/obe/ADF_tutorial_1013/index.htm) with JDeveloper 10.1.33.
    For developing new ADF application, I was trying to find ADF related documentation, but I was only able to find the documentation for ADF 11G (http://www.oracle.com/technology/products/adf/index.html). This page does not have any API doc, or component details.
    Now my question is, if I am using JDeveloper 10.1.3.3, which version of ADF I am using? For that version, where do I get complete documentation - ADF API docs, ADF Ui components docs etc.
    Suppose, in the tutorial application, classes like
    oracle.binding.BindingContainer, oracle.jbo.uicli.binding.JUCtrlValueBindingRef etc. are used. Where do I find complete API reference doc.
    Also where can I find ADF UI components(PanelPage, PanelBox etc.) detailed docs and their usages.
    Also, please point me to any other useful ADF related documentation/tutorial, if you know.
    Thanks

    For most of the pages on the JDev site you'll find a link to older product versions toward the end of the page.
    For example on the ADF Faces page there is a link at the end titled: Oracle ADF Faces Components 10.1.3 Information
    Which will take you here: http://www.oracle.com/technology/products/adf/adffaces/adffaces1013.html
    Where you can find the tag and API doc for ADF Faces.
    There is indeed a little problem with getting to the ADF Developer Guide for 10.1.3 in an easy way.
    In any case the book is here:
    http://download.oracle.com/docs/html/B25947_01/toc.htm

  • Report TEXTAREA character counter

    A textarea field has a "Maximum Width" and a Character Counter.
    How can I create Character Counter for a textarea field in a report (SQL Query (updateable report))?
    Edited by: Rob-9100-NL on 28-jun-2012 4:13

    Denes,
    My little bit different function: (one parameter less and no longer extra field for length in the select):
    function f_set_counter(pConterID,pTextId,pMaxLength)
        var pLength = $x(pTextId).innerHTML.length;
        if (pLength>pMaxLength)
         {alert('Dit veld mag niet meer dan '+pMaxLength+' tekens bevatten.')
          $x(pTextId).value=$x(pBron).value.substring(0,pMaxLength)
          {$x(pConterID).innerHTML = pMaxLength}
        else    
         {$x(pConterID).innerHTML = pLength}
    }In the HTML Expression of the text field:
    <textarea id="f06_#ROWNUM#" wrap="VIRTUAL" cols="80"
    rows="5" name="f06" autocomplete="off"
    onkeyup="f_set_counter('f06_#ROWNUM#_CHAR_COUNTER', 'f06_#ROWNUM#',500)"
    #PA_AANTEKENINGEN#</textarea><br/>
    <span id="f06_#ROWNUM#_CHAR_COUNTER"></span>
     van 
    <span>500</span>
    </div>
    <script type="text/javascript">
      f_set_counter('f06_#ROWNUM#_CHAR_COUNTER', 'f06_#ROWNUM#', 500);
    </script>Now I do get the "0 van 500" on a new record.
    Regards,
    Rob
    Edited by: Rob-v-M-Gn-Nl on 26-jul-2012 4:29

Maybe you are looking for

  • Preference  problem with Magic Mouse

    I set my Magic Mouse scrolling preference to 'Fast' and it doesn't seem to stick, will revert to medium usually with a few hours. I guess i should try to delete a preference file, but which one? Can anyone help please? thanks

  • In Windows XP, wireless Keyboard freezes, then repeats key over and over

    When I'm working in Windows XP, my wireless apple aluminum keyboard will freeze for a brief second, then it will continue to repeat the last key I typed for while. I've searched through all the forums and cannot find a solution to this problem. Any i

  • Exclude QM lot stock for a perticular material and location for PPDS run

    Hi Experts, I would like to exclude QM lot stock for a perticular material and location for PPDS run. I have unchecked stock in quality inspection under productmaster/ Demand / availability stock in APO, but still QM lot is appearing in RRP3 view and

  • Make Adobe IF Read-Only

    Hi there, I think i have a very simple question, but i can't solve it and i didn't find the solution anywere else on SDN. What i want to do is this. When a user filled in a IF (online scenario) and goes to the "check" step i would like to display the

  • Macbook just doesn't turn on?

    I've had this problem recently. I got home from work, did some web browsing etc. and shut my computer off. The next morning I woke up and tried to turn my computer on but to no avail, it just didn't turn on. The lights almost lit up, but slowly dimme