Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.3
-
Fix Version/s: 4.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Glassfish 3.1.2.2
Description
Setting the value of an ace:autoCompleteEntry during the Invoke-Application-Phase has no effect on the view.
In the sample below, lick the fill-Button, but no change is displayed.
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ace="http://www.icefaces.org/icefaces/components"
xmlns:h="http://java.sun.com/jsf/html">
<h:head></h:head>
<h:body>
<h:form>
<ace:autoCompleteEntry value="#{bean.value}">
<f:selectItems value="#{bean.items}"/>
</ace:autoCompleteEntry>
<h:commandButton action="#{bean.buttonFillClicked()}" value="Fill"/>
</h:form>
</h:body>
</html>
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.model.SelectItem;
@ManagedBean
@SessionScoped
public class Bean {
private String value;
private List<SelectItem> items = java.util.Arrays.asList(new SelectItem("Eins"), new SelectItem("Zwei"));
public String buttonFillClicked() {
value = "Eins"; return null;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public List<SelectItem> getItems() {
return items;
}
public void setItems(List<SelectItem> items) {
this.items = items;
}
}
In the sample below, lick the fill-Button, but no change is displayed.
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ace="http://www.icefaces.org/icefaces/components"
xmlns:h="http://java.sun.com/jsf/html">
<h:head></h:head>
<h:body>
<h:form>
<ace:autoCompleteEntry value="#{bean.value}">
<f:selectItems value="#{bean.items}"/>
</ace:autoCompleteEntry>
<h:commandButton action="#{bean.buttonFillClicked()}" value="Fill"/>
</h:form>
</h:body>
</html>
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.model.SelectItem;
@ManagedBean
@SessionScoped
public class Bean {
private String value;
private List<SelectItem> items = java.util.Arrays.asList(new SelectItem("Eins"), new SelectItem("Zwei"));
public String buttonFillClicked() {
value = "Eins"; return null;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public List<SelectItem> getItems() {
return items;
}
public void setItems(List<SelectItem> items) {
this.items = items;
}
}
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
This issue is confirmed resolved with ICEfaces4 trunk r41836.