This content has been marked as final.
Show 3 replies
-
1. Re: s:link strange behaviour
stefanotravelli Nov 7, 2008 9:43 AM (in response to mickgiu.mickgiu.gmail.com)Don't forget that s:link does NOT submit the form.
Hope this helps.
stefano
-
2. Re: s:link strange behaviour
mickgiu.mickgiu.gmail.com Nov 7, 2008 10:16 AM (in response to mickgiu.mickgiu.gmail.com)Thanks Stefano,
s:link does NOT submit the form i have an action in it as you can see.<s:link action="#{fascicolomanager.decodificaArticoloSelezionato}" onclick="Richfaces.hideModalPanel('articoliSearch');"> <h:outputText value="#{riga.articoli.cdartm}" /> </s:link>
the problem is in h:selectOneMenu
<h:selectOneMenu styleClass="dropdown" value="#{fascicolomanager.tipoevento}" id="tipoevento"> <s:selectItems value="#{fascicolomanager.tipoeventoList}" var="referenti" label="#{referenti.destipoevento}" noSelectionLabel="..." /> <s:convertEntity /> </h:selectOneMenu>
-
3. Re: s:link strange behaviour
christiaan Nov 7, 2008 12:45 PM (in response to mickgiu.mickgiu.gmail.com)Because you're using s:link, and as a result not submitting the form, the value chosen in the selectOneMenu is not send, so your backend cannot know the selection if the form hasn't been submitted previously.