Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How can I open a window by clicking a selectItem?

Posted on 2008-10-09
1
516 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bitbucket vs gitbucket 3 100
eclipse compiler vs Installed JREs option 3 105
custom annotations 9 42
runtime exception 2 41
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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 how to implement Singleton Design Pattern in Java.

856 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