This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to  do URL rewrite in JSF" Watch "How to  do URL rewrite in JSF" New topic

How to do URL rewrite in JSF

Anjana Chowdary

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!!!

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:



When executing the clickHiddenButton() JavaScript, then the MyBean's action() method will be invoked.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: How to do URL rewrite in JSF
Similar Threads
JAAS - JSF 1.1 to JSF 1.2
using log4J
Samples Tutorials on JSF applications
Whether JSF supports I18N and access control
saving to database