This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes How to  do URL rewrite in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to  do URL rewrite in JSF" Watch "How to  do URL rewrite in JSF" New topic
Author

How to do URL rewrite in JSF

Anjana Chowdary
Greenhorn

Joined: Oct 25, 2005
Posts: 8
I am very newbie to JSF. I am trying out one sample in which I had list of some messages, if I click on any message then it should populate
corresponding message information in new popwindow... I want to call up particular action method of bean through javascript!! Am I thinking in the right way??

Has any one, had worked on this sort of sample, If so can you let me know any ideas!!!

Thanks,
Anjana
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
You want to invoke an UICommand action using JavaScript? The trick is to create a hidden commandButton or commandLink and then simulate a click using JS.

Here is a basic example:

JSF

JavaScript

When executing the clickHiddenButton() JavaScript, then the MyBean's action() method will be invoked.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to do URL rewrite in JSF