Hi,
theoretically that should be no problem. You can add the onclick property to
your submit button. But I think you want to have a result based on the
selection, and that would mean, that you need to provide the value of the
select data row from your selectOneListbox with a small javascript method. With
that you should have fixed your first issue.
The second one is easyer than it seems to be. Just add the action property to
your submit button, create a submit() { return "success"; } method in your
Handler behind and put a navigation rule into your faces-config.xml like this:
<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/success.jsp</to-view-id>
<redirect />
</navigation-case>
</navigation-rule>
Hope this helps. :)
Regards Johannes
"MyFaces Discussion" <[email protected]> schrieb am 11.08.05 10:58:50:
>
> Hi!
>
> in my JSF app I want to do the following: The user selects a data row from a
> selectOneListbox and clicks submit. Than a new window (popup) with a result
> should be display but in the same request, the page with the selectOneListbox
> should be redirected to another page.
>
> How can I do this?
>
> Thanks for your help!
>
> --
> Boris Klug, Germany
>
_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179