You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Legolas Woodland <le...@gmail.com> on 2006/09/22 13:20:28 UTC

How to access input texts values from a button action method ?

Hi
Thank you for reading my post
how i can access the web page elements value (for example in login page
to username and password)
from the button action method ?

I do not want to use binding  the page elements with the backing bean
that my action method is inside it.

is there any other way ?

thanks

Re: How to access input texts values from a button action method ?

Posted by Volker Weber <we...@googlemail.com>.
Hi,
if you know the id of the element:

FacesContext.getCurrentInstance().getViewRoot().findComponent(<theId>);

Regards
   Volker


2006/9/22, Legolas Woodland <le...@gmail.com>:
> Hi
> Thank you for reading my post
> how i can access the web page elements value (for example in login page
> to username and password)
> from the button action method ?
>
> I do not want to use binding  the page elements with the backing bean
> that my action method is inside it.
>
> is there any other way ?
>
> thanks
>