-
1. Re: jsfunit action never called for a4j:support with selectB
ssilvert Mar 19, 2008 3:48 PM (in response to jadtn)I don't understand your code. Normally, you would do something like:
JSP
-----
<h:selectBooleanCheckbox id="cb_aj_selall" value="#{resultsHolder.selectAll}">
<a4j:support id="click_my_checkbox" event="onclick" reRender="msgDatas" action="#{resultsHolder.selectAllCheckBoxed}" />
</h:selectBooleanCheckbox>
TEST
------
JSFClientSession client = new JSFClientSession("/foo.jsf");
RichFacesClient ajaxClient = new RichFacesClient(client);
client.setCheckbox("cb_aj_selall", true);
ajaxClient.ajaxSubmit("click_my_checkbox");
See the JSFUnit RichFaces demo for lots of RichFaces and Ajax4jsf examples. It shows JSFUnit code for testing different components:
http://labs.jboss.com/jsfunit/demo.html
Stan -
2. Re: jsfunit action never called for a4j:support with selectB
jadtn Mar 23, 2008 7:18 AM (in response to jadtn)Thanks a lot Stan!
My error was no id on a4j:support.
All works fine now!