This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSF and the fly likes Command Link - Right click open in a new window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Command Link - Right click open in a new window" Watch "Command Link - Right click open in a new window" New topic
Author

Command Link - Right click open in a new window

Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

Hi All - I have a command link and an action attribute defined to it. It works fine if i click it. But I donot know what to do, if I want to make it work even if i right click and choose open in a new window. Can anybody help in this regard?
Rajneesh Kumar Rajput
Ranch Hand

Joined: Feb 25, 2009
Posts: 39
Yes, you are right and it seems a limitation in JSF that you cannot open the command link into the new tab by doing right click on this, it will simply result in displaying the same page.

Well, if this is really needed you can change your command link into the outputLink that will allow to you open the link in the new tab.

But, remember if you want to allow click on that link too a manual java script will be needed to submit the page, to work as a normal command link.
 
Consider Paul's rocket mass heater.
 
subject: Command Link - Right click open in a new window