Hi Yazid,

the immediate=true on the button skips validation and update model phase,
so the bean is not updated.

Regards,
 Volker

2007/1/8, yazid <[EMAIL PROTECTED]>:

Hi All;
I've this jsf code :

<tc:form id="formNewCH1">
      <tc:panel height="100px" width="400px">

        <f:facet name="layout">
          <tc:gridLayout rows="fixed" columns="1*;1*;1*;1*;1*"
id="gl_addCh"/>
        </f:facet>

           <tc:out value="Name" />
           <tc:in value="#{bBeanl.curName}" required="true">
                             <f:validateLength minimum="3" maximum="16" />
       </tc:in>
       <tc:out value="Ressource Ref" />
       <tc:selectOneChoice value="#{bBean.curRess}" >
         <f:selectItems value="#{bBean.ressourceItems}"/>
           </tc:selectOneChoice>
           <tc:button action="#{channel.applyRessource}" label="apply"
immediate="true" id="applyRessCh" />

         </tc:panel>
 </tc:form>

Not more complicated; but  when  I click on "apply" after selecting a value
in my ressource iterms; nothing is handled by bBean (curRess=null) and the
displayed  value in the list return to initial value.

Any ideas;
--
View this message in context: 
http://www.nabble.com/-Tobago--Problem-with-selectOneChoice-tf2938159.html#a8214559
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Reply via email to