[IceFaces] Problème d'affichage dans un inputtext
Bonjour la communauté, Je n'arrive pas a afficher la valeur d'un champs dans le formulaire, elle est toujours vide. Et pourtant quand je suis en mode debug je vois que la valeur de la variable n'est pas vide.
La page xhtml
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <ice:panelGroup >
<div align="center">
<ice:panelGrid columns="3">
<ice:outputText styleClass="inputTextR" value="#{RappelBean.msgsCommuns.typePaie}"/>
<ice:outputText value="" style="color:red"/>
<ice:selectOneMenu value="#{RappelBean.typPaie}" required="true" partialSubmit="true" >
<f:selectItems value="#{RappelBean.listTypPaie}"/>
</ice:selectOneMenu>
<ice:outputText styleClass="inputTextR" value="#{RappelBean.msgsCommuns.paieLocale}"/>
<ice:outputText value="" style="color:red"/>
<ice:selectBooleanCheckbox value="#{RappelBean.paieLocale}" partialSubmit="true" />
<ice:outputText styleClass="inputTextR" value="#{RappelBean.msgsCommuns.typRappel}"/>
<ice:outputText value="" style="color:red"/>
<ice:selectOneMenu value="#{RappelBean.typRappel}" required="true" partialSubmit="true" valueChangeListener="#{RappelBean.updateTypRappel}">
<f:selectItem itemLabel="#{RappelBean.msgsCommuns.typRappelIndexe}" itemValue="I"/>
<f:selectItem itemLabel="#{RappelBean.msgsCommuns.typRappelLibre}" itemValue="L"/>
</ice:selectOneMenu>
<ice:outputText styleClass="inputTextR" value="#{RappelBean.msgsCommuns.reference}"/>
<ice:outputText value="*" style="color:red"/>
<ice:inputText id="reference" styleClass="inputText" value="#{RappelBean.reference}" partialSubmit="true"/>
</ice:panelGrid> |
l'action
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| public class RappelBean extends Classe{
private String reference;
//autre variable
//getter et setter
public RappelBean() throws NamingException
{
//init
}
@SuppressWarnings("unchecked")
public void rowAgentConcSelect(RowSelectorEvent event){
HtmlDataTable table = getParentDatatable((UIComponent) event.getSource());
Grh03DepotConcerne concerne = (Grh03DepotConcerne) table.getRowData();
List<Depot> listPiece = refGrh.findList(where);
for(Depot depotPce:listPiece){
if(depotPce.getReferencePiece()!=null){
reference=depotPce.getReferencePiece();
break;
}
}
FacesContext.getCurrentInstance().renderResponse();
}
} |