Hi,

I've got a problem with the h:selectOneMenu and s:selectItems elements.

If I use  h:selectOneMenu with f:selectItem ("id="colaff" " in the code below) 
, the value chosen in the select box is part of the values submitted with the 
form, no problem.
But if I use   h:selectOneMenu with s:selectItems ("id="tpcidt"  " in the code 
below), the value selected in the box is ignored when I submit the form. 


<h:form id="collectivitesSearch" styleClass="edit" accept-charset="UTF-8" >
  |             <s:decorate template="layout/display.xhtml">
  |                 <ui:define name="label">Ville</ui:define>
  |                 <h:inputText id="colvil" 
value="#{collectivitesList.collectivites.colvil}"/>
  |             </s:decorate>
  |                     
  |                     <s:decorate template="layout/display.xhtml">
  |                     <ui:define name="label">Type de collectivité</ui:define>
  |                                             
  |                     <h:selectOneMenu id="tpcidt" 
value="#{collectivitesList.collectivites.typcol}">
  |                                     <s:selectItems 
value="#{typcolList.resultList}" var="untypcol" label="#{untypcol.tpclib}" 
noSelectionLabel="Select..." hideNoSelectionLabel="false"/>
  |                                     <s:convertEntity />
  |                             </h:selectOneMenu>      
  |             </s:decorate>
  |                                                     
  |                     <s:decorate template="layout/display.xhtml">
  |                     <ui:define name="label">Affiliation</ui:define>
  |                             <h:selectOneMenu id="colaff" 
value="#{collectivitesList.collectivites.colaff}">
  |                             <f:selectItem itemValue="" itemLabel=" " />
  |                     <f:selectItem itemValue="O" itemLabel="Oui" />
  |                             <f:selectItem itemValue="N" itemLabel="Non" />
  |                     </h:selectOneMenu>
  |                     </s:decorate>
  |                   
  |         <div class="actionButtons">
  |            <h:commandButton id="search" value="Chercher" 
action="/CollectivitesList.xhtml?firstResult=0">
  |                </h:commandButton>
  |         </div>
  | </h:form>

Should I add something in my pages.xml? (I tried to add the param "tpcidt" but 
with no effect) 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056360#4056360

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056360

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to