This content has been marked as final.
Show 3 replies
-
1. Re: Test own jsf component with JSFUnit
ssilvert Aug 27, 2007 10:45 AM (in response to mblondel)First, check the HTML source in your browser to see that you indeed rendered a component with an ID that ends in "myLink".
Second, what kind of link does your custom component render? If it is a static link then you need to use client.click(). If it is a command link then you use client.commandLink().
If the component relies on javascript to do a submit that is different from the usual commandLink submit then you will have to write a custom handler to test it with JSFUnit.
Stan -
2. Re: Test own jsf component with JSFUnit
mblondel Sep 27, 2007 11:56 AM (in response to mblondel)First, check the HTML source in your browser to see that you indeed rendered a component with an ID that ends in "myLink".
yes, it isIf it is a static link then you need to use client.click().
the method client.click() does not exist.
Thanks for tour help -
3. Re: Test own jsf component with JSFUnit
ssilvert Sep 27, 2007 12:08 PM (in response to mblondel)"mblondel" wrote:
If it is a static link then you need to use client.click().
the method client.click() does not exist.
My bad. Actually, I think both of these methods were renamed since I posted that.
For static links, you want JSFClientSession.clickLink().
For clicking a commandLink, you want JSFClientSession.clickCommandLink()
Stan
http://www.jsfunit.org