-
1. Re: All Javascript doen't work, please help me
yangpa094 Jan 24, 2008 12:30 AM (in response to yangpa094)And I use JSF in JEUS6. Should I run my example in JBoss WAS?
-
2. Re: All Javascript doen't work, please help me
ssilvert Jan 24, 2008 8:08 AM (in response to yangpa094)JSFUnit doesn't currently test ad hock javascript. It will probably never be a client-side javascript testing tool because what happens in the browser really has little to do with JSF.
Where javascript comes into play with JSF is when it is used to submit a request to the server and subsequently change the DOM of the client page. In other words, AJAX. I talk about JSFUnit and AJAX here: http://wiki.jboss.org/wiki/AjaxWithJSFUnit
So in your test, you are allowed to mimic the effect that javascript is having on your page by manually changing the DOM using your own java code. That is how we are able to support "Ajaxified" JSF components like RichFaces.
Of course, it would be simpler if you could just call into a javascript engine that runs your real javascript code. We are looking into that possibility, but we aren't there yet.
Regards,
Stan