Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7248537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:09:05+00:00 2026-05-28T22:09:05+00:00

I have a JSF1.2 selectOneMenu component. Currently, a user selects an item from the

  • 0

I have a JSF1.2 selectOneMenu component.
Currently, a user selects an item from the dropdown menu, then clicks an output link to open a url in a new browser window:

<h:selectOneMenu value="#{itemSelected}"  valueChangeListener="#{someclass.generateInfoForURL}" onchange="submit()" >
  <s:selectItems var="_items" value="#{itemsList}" label="#_items.itemName}" /> 
  <s:convertEntity />
</h:selectOneMenu>  

<h:outputLink value="URL&amp;generatedInfo=#{someclass.component.generatedInfo}" target="_blank" > 
    <f:verbatim>View Report</f:verbatim>            
</h:outputLink> 

What I need is; when a user selects one of the dropdown items it should open the URL in a new page without the intermediate step of selecting the link. I can build the URL in the backing bean, but how do I get it to open a new browser window?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T22:09:06+00:00Added an answer on May 28, 2026 at 10:09 pm

    Provide the URL as item value and use JavaScript to open it in a new tab/window instead of to submit the form. You only need to ensure that all URLs are already rightly prepared beforehand.

    E.g.

    <h:selectOneMenu onchange="window.open(value)">
        <f:selectItem itemLabel="Select page.." />
        <f:selectItem itemLabel="page1" itemValue="page1.jsf" />
        <f:selectItem itemLabel="page2" itemValue="page2.jsf" />
        <f:selectItem itemLabel="page3" itemValue="page3.jsf" />
        ...
    </h:selectOneMenu>
    

    (you can of course supply it as <f/s:selectItems>, the above is just a basic kickoff example)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes, I have to reRender some component in my applications (using JSF1.2 and RichFaces
I have a JSF Page which gets few inputs from the User, I want
I have a component done in JSF 1.x, this component has a command button
I have a highly dynamic single page interface where various user events trigger new
I am upgrading my app to JSF 2 from JSF 1.2. I have ran
I'm currently migrating a project from JBoss 4.2.2 to JBoss 6.0.0 and I'm also
i'm using prettyfaces 3.1.0 with JSF1.2 and Seam 2.2.0. I have the following pretty-config.xml:
I have an application using JSF1.2 + Richfaces 3.3.3 Final, MyFaces 1.2.7, Spring +
I am trying to use the calendar component from Myfaces Tomahawk. I am running
I have a problem with page rendering after migration from WAS 6.0 + JSF

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.