List Info

Thread: Link out from h:selectOneMenu




Link out from h:selectOneMenu
country flaguser name
United Kingdom
2007-10-05 02:57:36
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!
country flaguser name
United Kingdom
2007-10-05 03:39:57
> 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
country flaguser name
United States
2007-10-05 05:13:11
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.you
rDesiredDomain.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
>

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )