i have a problem using the p:wizard component and h:selectOneListBox. The values of the selectOneListBox are deleted in Phase 4 of the lifecycle. Normal h:inputText works fine.
Using GF v3 with latest Primefaces 2.0.1-Snapshot.
My bean:
Code: Select all
@ManagedBean(name = "pprBean")
@ViewScoped
public class PprBean implements Serializable {
private String selection = null;
public String getSelection() {
return selection;
}
public void setSelection(String selection) {
this.selection = selection;
}
public void save() {
FacesMessage msg = new FacesMessage("Save", "Value: "+selection+" is set");
FacesContext.getCurrentInstance().addMessage(null, msg);
}
/** Creates a new instance of PprBean */
public PprBean() {
}
}
Code: Select all
<h:form id="dataForm" prependId="false">
<p:wizard effect="both">
<p:tab title="anwendungsdaten">
<p:panel header="Anwendungsdaten">
<h:selectOneListbox id="language" size="1" value="#{pprBean.selection}">
<f:selectItem itemLabel="Deutsch" itemValue="de"/>
<f:selectItem itemLabel="Englisch" itemValue="en"/>
<f:selectItem itemLabel="Französisch" itemValue="fr"/>
</h:selectOneListbox>
</p:panel>
</p:tab>
<p:tab title="summery">
<p:panel header="Zusammenfassung">
<h:outputText value="Selection: #{pprBean.selection}"/>
<p:growl id="growl" sticky="true" showDetail="true"/>
<p:commandButton value="Save" action="#{pprBean.save}" update="growl"/>
</p:panel>
</p:tab>
</p:wizard>
</h:form>
"Value: null is set"