Solved

How can I open a window by clicking a selectItem?

Posted on 2008-10-09
1
507 Views
Last Modified: 2013-11-24
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?
0
Comment
Question by:daraii
1 Comment
 
LVL 14

Accepted Solution

by:
Farzad Akbarnejad earned 500 total points
ID: 22700600
Hello,
Here is a sample code. All you need is that open new windows using java script in onchange event.

-FA

<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}" />

</t:selectOneMenu>

Open in new window

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now