ICEfaces
  1. ICEfaces
  2. ICE-9638

ace:autoCompleteEntry with ace:ajax - Validation not Triggered from Tab out of Input Field

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 4.0.BETA, EE-3.3.0.GA_P02
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      JBoss EAP 6
    • Assignee Priority:
      P2
    • Salesforce Case Reference:

      Description

      I have an ace:autoCompleteEntry tag configured in the following manner:

      <ace:autoCompleteEntry value="#{backingBean.formData.acctNbr}"
                                           required="true"
                                           size="8"
                                            rows="10"
                                           filterMatchMode="none"
                                            filterBy="#{acc.acctNbr}"
                                           listVar="acc"
                                           listValue="#{backingBean.accNumList}"
                                           textChangeListener="#{backingBean.accNumTextChange}"
                                           rendered="#{backingBean.viewMode == 'ADDACC'}"
                                            disabled="#{!crViewHeaderController.draftCr or backingBean.formData.removeFromCr == 'Y'}">
      <f:facet name="row">
      <h:panelGrid columns="2" width="100%" styleClass="rglrPnlTb">
      <h:outputText value="#{acc.acctNbr}" />
      <h:outputText value="#{acc.acctName}" />
      </h:panelGrid>
      </f:facet>
      <f:validator validatorId="accnum.validator" />
      <ace:ajax render="@form :#{tabId}CurrentRow" listener="#{backingBean.accNumValueChange}"/>
      </ace:autoCompleteEntry>

      When the user types text into the field and tabs out, validation does not take place (customer validator <f:validator validatorId="accnum.validator" />). The textchangelistener and ajax listener execute.

      When the enter key is pressed, everything works as expected. Tabbing out of the field should produce the same results as hitting the enter key.

        Activity

        Brad Kroeger created issue -
        Brad Kroeger made changes -
        Field Original Value New Value
        Description I have an ace:autoCompleteEntry tag configured in the following manner:

        <ace:autoCompleteEntry value="#{backingBean.formData.acctNbr}"
                                             required="true"
                                             size="8"
                                              rows="10"
                                             filterMatchMode="none"
                                              filterBy="#{acc.acctNbr}"
                                             listVar="acc"
                                             listValue="#{backingBean.accNumList}"
                                             textChangeListener="#{backingBean.accNumTextChange}"
                                             rendered="#{backingBean.viewMode == 'ADDACC'}"
                                              disabled="#{!crViewHeaderController.draftCr or backingBean.formData.removeFromCr == 'Y'}">
        <f:facet name="row">
        <h:panelGrid columns="2" width="100%" styleClass="rglrPnlTb">
        <h:outputText value="#{acc.acctNbr}" />
        <h:outputText value="#{acc.acctName}" />
        </h:panelGrid>
        </f:facet>
        <f:validator validatorId="accnum.validator" />
        <ace:ajax render="@form :#{tabId}CurrentRow" listener="#{backingBean.accNumValueChange}"/>
        </ace:autoCompleteEntry>

        When the user types text into the field and tabs out, validation does not take place (customer validator <f:validator validatorId="accnum.validator" />). However, when the enter key is pressed, everything works as expected. Tabbing out of the field should produce the same results as hitting the enter key.
        I have an ace:autoCompleteEntry tag configured in the following manner:

        <ace:autoCompleteEntry value="#{backingBean.formData.acctNbr}"
                                             required="true"
                                             size="8"
                                              rows="10"
                                             filterMatchMode="none"
                                              filterBy="#{acc.acctNbr}"
                                             listVar="acc"
                                             listValue="#{backingBean.accNumList}"
                                             textChangeListener="#{backingBean.accNumTextChange}"
                                             rendered="#{backingBean.viewMode == 'ADDACC'}"
                                              disabled="#{!crViewHeaderController.draftCr or backingBean.formData.removeFromCr == 'Y'}">
        <f:facet name="row">
        <h:panelGrid columns="2" width="100%" styleClass="rglrPnlTb">
        <h:outputText value="#{acc.acctNbr}" />
        <h:outputText value="#{acc.acctName}" />
        </h:panelGrid>
        </f:facet>
        <f:validator validatorId="accnum.validator" />
        <ace:ajax render="@form :#{tabId}CurrentRow" listener="#{backingBean.accNumValueChange}"/>
        </ace:autoCompleteEntry>

        When the user types text into the field and tabs out, validation does not take place (customer validator <f:validator validatorId="accnum.validator" />). The textchangelistener and ajax listener execute.

        When the enter key is pressed, everything works as expected. Tabbing out of the field should produce the same results as hitting the enter key.
        Hide
        Brad Kroeger added a comment -

        Assigning to Art with Ken's approval.

        Show
        Brad Kroeger added a comment - Assigning to Art with Ken's approval.
        Brad Kroeger made changes -
        Assignee Arturo Zambrano [ artzambrano ]
        Ken Fyten made changes -
        Fix Version/s 3.4 [ 10770 ]
        Assignee Priority P2 [ 10011 ]
        Hide
        Ken Fyten added a comment -

        Marked Cannot Reproduce. Brad, please review Art's comments and re-open if necessary.

        Show
        Ken Fyten added a comment - Marked Cannot Reproduce. Brad, please review Art's comments and re-open if necessary.
        Ken Fyten made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Arturo Zambrano [ artzambrano ] Brad Kroeger [ brad.kroeger ]
        Resolution Cannot Reproduce [ 5 ]
        Brad Kroeger made changes -
        Assignee Brad Kroeger [ brad.kroeger ] Arturo Zambrano [ artzambrano ]
        Brad Kroeger made changes -
        Resolution Cannot Reproduce [ 5 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Brad Kroeger made changes -
        Salesforce Case Reference 5007000000UaCTLAA3
        Hide
        Brad Kroeger added a comment -

        This was due to the appropriate js not being included in the application. The js was in the icefaces-compat.jar and the application I am testing does not use that jar.

        Mircea has backported the fix for this into the client branch and I have confirmed it resolved the issue.

        Show
        Brad Kroeger added a comment - This was due to the appropriate js not being included in the application. The js was in the icefaces-compat.jar and the application I am testing does not use that jar. Mircea has backported the fix for this into the client branch and I have confirmed it resolved the issue.
        Brad Kroeger made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Fix Version/s EE-3.3.0.GA_P02 [ 11371 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Brad Kroeger
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: