This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF and Javascript

 
Thill Sivam
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 82
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic