0 Replies Latest reply on Apr 16, 2009 3:17 PM by René Nijkamp

    CommandButton -> Execute JAVA function AND open new window

    René Nijkamp Newbie
      Hi!

      I have a commandbutton, defined by the following xhtml:
      <h:commandButton id="studentNewAccount" value="Submit" action="#{StudentActivateCard.studentSubmit}"/>

      It executes a function, which sends the viewer to the next page in the flow.

      Now i want to open an new browser window when the viewer clicks the button AND has a checkbox checked.
      Definition of the checkbox:
      <h:selectBooleanCheckbox id="agree" required="true" value="#{StudentActivateCard.agree}" />

      I tried to use some javascript, but i suck at it.. So, please, does anyone have a clue? Is it possible to AND go to the next page, AND open a new window?

      Many thanks!

      René