ICEfaces
  1. ICEfaces
  2. ICE-9754

Two autocompleteentry controls in a single form

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Liferay 6.1.2 on Tomcat 7.40, Java 7

      Description

      Consider the following snippet:

      <ice:form style="display: inline-block;width:100%">
          <ace:autoCompleteEntry
                  id="ace1"
                  textChangeListener="#{conceptListHandlerTest.textChanged}"
                  valueChangeListener="#{conceptListHandlerTest.valueChanged}"
                  listVar="item"
                  listValue="#{conceptListHandlerTest.selectTerms}"
                  filterBy="#{item.label}">
              <f:facet name="row">
                  <h:outputText value="#{item.label}"/>
              </f:facet>
          </ace:autoCompleteEntry>
          <ace:autoCompleteEntry
                  id="ace2"
                  textChangeListener="#{tagListHandlerTest.textChanged}"
                  valueChangeListener="#{tagListHandlerTest.valueChanged}"
                  listVar="item"
                  listValue="#{tagListHandlerTest.selectTerms}"
                  filterBy="#{item.label}">
              <f:facet name="row">
                  <h:outputText value="#{item.label}"/>
              </f:facet>
          </ace:autoCompleteEntry>
      </ice:form>

      On keypress in 'ace1' two things happen in the following order:
      1) firing "tagListHandlerTest.valueChanged" from ace2 (which is INCORRECT)
      2) firing "conceptListHandlerTest.textChanged" from ace1 (which is CORRECT)

      Prevent firing value change on other autocompleteentry components in the same form.

        Activity

        Petr Kremen created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Petr Kremen
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: