File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Command Link - Right click open in a new window

 
Shasi Mitra
Ranch Hand
Posts: 101
Flex Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic