Details
-
Type: Bug
-
Status: Open
-
Priority: 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.
<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
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion