-
1. rich:select events
dwagmuse May 17, 2011 12:33 AM (in response to dwagmuse)By the way, I tried this:
<rich:select id="c_cat" value="#{manageCategories.selectedId}" onlistclick="triggerUpdate()">
<f:selectItems ... />
</rich:select>
<a4j:jsFunction name="triggerUpdate" execute="c_cat" render="cprops" oncomplete="enableDel()" />
This does seem to call the triggerUpdate function -- I can tell because the enableDel() function gets called -- but it doesn't do the execute or render the element named in "cprops". When I had it as an a4j:ajax handler inside the select that worked, just not immediately.
Actually, it seems that if I select the same item a second time, then it does do the execute and render, but using the value that was selected the previous time. Strange...
-
2. Re: rich:select events
dwagmuse May 27, 2011 11:13 AM (in response to dwagmuse)Perhaps this was obvious to everybody else, but here's the solution that worked for me:
<h:selectOneListbox id="myid" value="#{bean.value}" >
<f:selectItems value="#{bean.options}" />
<a4j:ajax event="click" render="whatever" execute="myid" />
</h:selectOneListbox>
Maybe you could also do this with rich:select, but this is simpler.