You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Wolfgang <wk...@ebi.ac.uk> on 2007/10/05 09:57:36 UTC

Link out from h:selectOneMenu

Hi,

is it possible to link directly out of the selectOneMenu.
I mean after choosing a value it directly links to a internet site?
Maybe it's possible with an actionListener between the
<f:selectItem> </f:selectItem> components?

Cheers,
Wolfgang

Re: Link out from h:selectOneMenu - Fixed by my own!

Posted by Wolfgang <wk...@ebi.ac.uk>.
> Hi,
>
> is it possible to link directly out of the selectOneMenu.
> I mean after choosing a value it directly links to a internet site?
> Maybe it's possible with an actionListener between the
> <f:selectItem> </f:selectItem> components?
>
> Cheers,
> Wolfgang


Re: Link out from h:selectOneMenu

Posted by Gregg Leichtman <gs...@erols.com>.
If you don't need to go through the JSF processing cycle, you should be
able to attach a JavaScript function using an onchange handler to the
list object, not the options---selectItems, which contains a single line:=


    location =3D "http://www.yourDesiredDomain.com"

and this should send the user to the new page.

I attach such a handler using the Trinidad SelectOrderShuttle and each
time the user clicks on an item the function is executed.

                                                 -=3D> Gregg <=3D-

Wolfgang wrote:
> Hi,
>
> is it possible to link directly out of the selectOneMenu.
> I mean after choosing a value it directly links to a internet site?
> Maybe it's possible with an actionListener between the
> <f:selectItem> </f:selectItem> components?
>
> Cheers,
> Wolfgang
>