Try to put the tc:button outside of the tc:selectOneChoice. This should work.
-----Original Message----- From: yazid [mailto:[EMAIL PROTECTED] Sent: Monday, January 08, 2007 4:38 AM To: [email protected] Subject: Re: [Tobago] Problem with selectOneChoice Hi Volker,With immediate=false; nothing hapen in server side the method applyRessource is not invoked; with immediate=true; it is invoked but display null,...null : public void applyRessource(){ System.out.println("Name: "+ curName+ ",Ress: "+curRess); } Volker Weber-4 wrote: > > 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.ht ml#a8214559 >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/-Tobago--Problem-with-selectOneChoice-tf2938159.ht ml#a8214863 Sent from the MyFaces - Users mailing list archive at Nabble.com.

