• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 529
  • Last Modified:

How can I open a window by clicking a selectItem?

Using JSF, I want the app to open a different window when a choice is selected the choice is in a selectItem tag. How can I do this?
1 Solution
Farzad AkbarnejadDeveloperCommented:
Here is a sample code. All you need is that open new windows using java script in onchange event.


<t:selectOneMenu style="width:40px" value="#{item.regPriority.id}"
       onchange="window.open('InsuredPicker.jsf?rel_type=1', 'Window Title','status=1,height=400,width=600,top=0,left=0, resizable = 0' );" >
   <f:selectItems value="#{sendRegisteredRequestController.priorities}" />

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now