Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.3.0.GA_P01
-
Fix Version/s: 4.0.BETA, EE-3.3.0.GA_P02, 4.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:JBoss
-
Assignee Priority:P1
-
Salesforce Case Reference:
Description
In the client application, the ace:autoCompleteEntry tag value is being set appropriately and then the user is changing the page content to another include. Upon returning to the original include with the ace:autoCompleteEntry, the value bound to the component is reset in the bean. However, the component is dislaying the previously entered (temporary text) value.
With direction from Art, I replaced the ace:autoCompleteEntry component with the ace:comboBox component and was not able to reproduce the issue. This suggests the problem is with the temporary text value unique to the ace:autoCompleteEntry component.
With direction from Art, I replaced the ace:autoCompleteEntry component with the ace:comboBox component and was not able to reproduce the issue. This suggests the problem is with the temporary text value unique to the ace:autoCompleteEntry component.
Issue Links
- blocks
-
IPCK-484 Selected value of ace:autoCompleteEntry component does not clear
- Closed
In the showcase ace:autoCompleteEntryLazy.xhtml I have the component configured as follows:
<ace:autoCompleteEntry id="autoCompleteEntryLazy"
{autoCompleteEntryLazyBean.selectedText}value="#
"
{autoCompleteEntryLazyBean.cities}rows="10" width="300"
filterMatchMode="none"
listVar="city"
listValue="#
"
{city.name}"filterBy="#
textChangeListener="#{autoCompleteEntryLazyBean.textChangeEventHandler}"
label="Cities of the World:"
labelPosition="left"
valueChangeListener="#{autoCompleteEntryLazyBean.cityValueChange}">
<f:facet name="row">
<h:panelGrid columns="2" width="100%" columnClasses="col50,col25">
<h:outputText value="#{city.name}
" />
{city.country}<h:outputText value="#
" />
</h:panelGrid>
</f:facet>
<ace:ajax execute="@form" render="@form" event="submit"/>
<ace:ajax execute="@form" render="@form" event="blur"/>
</ace:autoCompleteEntry>
I add the following to the page:
{autoCompleteEntryLazyBean.clearBeanValue}<h:commandButton value="Clear Bean Value"
actionListener="#
" />
And the corresponding bean code:
{ selectedText = null; }public void clearBeanValue(ActionEvent ae)
When I press the button to clear the value, I see the response code for the component with an empty String ''. However, the component still retains it's old value in the UI. If you switch from another demo back to 'Lazy Loading' you will see the old value still in the UI.