ICEfaces
  1. ICEfaces
  2. ICE-10427

ace:textEntry, ace:textAreaEntry - Add new "charCount" client event

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P02, 4.0
    • Fix Version/s: EE-3.3.0.GA_P03, 4.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 4, ace:textEntry, ace:textAreaEntry

      Description

      Add a new "charCount" client event to the ace:textEntryArea the ace:textEntry components. This client event will be fired whenever the number of characters entered in the component changes, either by the user typing a new character, deleting one or more characters, or cutting/pasting characters into the component.

      The "charCount" client event will provide the following attributes for each event fired:

      - currLength: The current length of the value string.
      - charsRemaining: The number of characters remaining that can be entered. This is determined via subtracting the currLength value from the maxlength attribute value on the component. If no maxlength attribute value exists, this value is -1 (?).

      This new client event supports the use-case where an application would like to present the user with a message indicating how many characters are remaining in a textEntry component that has a maxlength specified.

      Note that by using a client event for this information, it is feasible for the application to trap the event on the client and prevent it from submitting to the server, if a purely client-side JavaScript update of the message is desired. In addition, the client event could instead (or in addition) submit to the server if a server-based implementation is desirable. Thus, the client-event approach provides the most flexibility.

        Activity

        Hide
        Liana Munroe added a comment -

        Verified IE 7 issues resolved on ICEfaces EE-3.3.0.GA_P03 tag r44693 using icepcvm-ie7 (a windows vista instance).
        When testing on the xp04 and xp 02 (windows xp with IE 7 instances) the browser crashes when attempting to use the popup log window.
        Line 2
        Char 19881
        An outgoing call cannot be made since the application is dispatching an input-synchronous call.
        Code 0

        Show
        Liana Munroe added a comment - Verified IE 7 issues resolved on ICEfaces EE-3.3.0.GA_P03 tag r44693 using icepcvm-ie7 (a windows vista instance). When testing on the xp04 and xp 02 (windows xp with IE 7 instances) the browser crashes when attempting to use the popup log window. Line 2 Char 19881 An outgoing call cannot be made since the application is dispatching an input-synchronous call. Code 0
        Hide
        Mircea Toma added a comment -

        Created ICE-10689 to follow up the logging issue in IE.

        Show
        Mircea Toma added a comment - Created ICE-10689 to follow up the logging issue in IE.
        Hide
        Liana Munroe added a comment -

        Reopening because the new ace:textEntry, ace:textAreaEntry > Character Count demos in the ICEfaces 4 showcase fail when used with IE 8.

        Show
        Liana Munroe added a comment - Reopening because the new ace:textEntry, ace:textAreaEntry > Character Count demos in the ICEfaces 4 showcase fail when used with IE 8.
        Hide
        Mircea Toma added a comment -

        Modified showcase page to use Element.innerHTML instead of Element.textContent when updating SPAN's content since the latter property is not supported in IE8.

        Show
        Mircea Toma added a comment - Modified showcase page to use Element.innerHTML instead of Element.textContent when updating SPAN's content since the latter property is not supported in IE8.
        Hide
        Liana Munroe added a comment -

        Verified showcase/IE 8 issue verified ICEfaces 4 trunk r44706. Tomcat 7.

        Show
        Liana Munroe added a comment - Verified showcase/IE 8 issue verified ICEfaces 4 trunk r44706. Tomcat 7.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: