This content has been marked as final.
Show 4 replies
-
1. Re: how to have selectOneMenu call action method?
Mikael Andersson Oct 13, 2008 10:49 AM (in response to Dean Hiller)Perhaps this from the MyFaces wiki helps?
-
2. Re: how to have selectOneMenu call action method?
Martin Wahlman Oct 13, 2008 1:25 PM (in response to Dean Hiller)Why not use a:support?
Like this:
<h:selectOneMenu value="#{editScript.nextNode}"> <s:selectItems value="#{pathActions.nodeSelectionList}" var="node" label="#{node.name}" noSelectionLabel="Please Select..." /> <a:support event="onchange" action="#{editScript.changeCurrentNode()}" reRender="navigateDec" ajaxSingle="true" status="statusFilter"/> <s:convertEntity /> </h:selectOneMenu> <a:status id="statusFilter"> <f:facet name="start"> <s:span styleClass="spinnerWrapper"> <h:graphicImage value="/img/spinner.gif"/> </s:span> </f:facet> </a:status>
That is what I would do..
-
3. Re: how to have selectOneMenu call action method?
Martin Wahlman Oct 13, 2008 1:47 PM (in response to Dean Hiller)a:suppot can ofcourse be a4j:support depending on how you name it (xmlns:a=
http://richfaces.org/a4j
) :)It also requires that you use richfaces in your project..
-
4. Re: how to have selectOneMenu call action method?
Dean Hiller Oct 13, 2008 4:45 PM (in response to Dean Hiller)Sweet, that MyFaces wiki solution rocked!!!!
For the other solution, I have used a:support many times already, but in this case, I sometimes need to change pages. I thought a:support was just an ajax request making it hard to change pages. Would have to make one really complicated page to keep switching regions rendered and invisible all the time which I see as a pain.