File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes JSF and Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "JSF and Javascript" Watch "JSF and Javascript" New topic
Author

JSF and Javascript

Thill Sivam
Greenhorn

Joined: Oct 14, 2009
Posts: 9
If i write the following script in onload() function



when page loads, where the JSF control will go ?? to bean's any method???

Is there any way to route any bean's method ??


if it can be routed to any bean method, it would be great..

Thanks in advance.
Teena George
Ranch Hand

Joined: May 01, 2008
Posts: 82

Hi there,

If this is all you have, then I think the page reloads. Please correct me if I am wrong.
You can send an ajax request to the jsf phase listener, and from one of the methods (afterPhase(), for e.g.) you can set properties in your bean.
You can pass the bean properties as request parameters, and you can retrieve them in your phase listener.

HTH,
Teena
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JSF and Javascript
 
Similar Threads
JavaScript Image properties not immediately available?
Run javascript method only once?
JSF input text readonly issue
Static variables in JS