You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Wong, Emmanuel (Sam)" <Wo...@SEC.GOV> on 2007/01/22 19:10:10 UTC

[Tobago] inut text field or password text filed as submittion

 Hi:

            Could anyone know how to login into the application without
clicking the login button?  I have a login page and would like user
input the password, then user hits the "ENTER" key will go into the
application.  I tried to use valueChangeListener, is this the only way?
Thanks.


RE: [Tobago] inut text field or password text filed as submittion

Posted by "Wong, Emmanuel (Sam)" <Wo...@SEC.GOV>.
Thanks.

-----Original Message-----
From: Bernd Bohmann [mailto:bernd.bohmann@atanion.com] 
Sent: Monday, January 22, 2007 2:16 PM
To: MyFaces Discussion
Subject: Re: [Tobago] inut text field or password text filed as
submittion

The default Button submits the page if the user hit the return key

Wong, Emmanuel (Sam) wrote:
> Yes, I could add a button, but it would be better to take action when
> user hit the return key in the password text field.
> 
> -----Original Message-----
> From: Bernd Bohmann [mailto:bernd.bohmann@atanion.com] 
> Sent: Monday, January 22, 2007 1:58 PM
> To: MyFaces Discussion
> Subject: Re: [Tobago] inut text field or password text filed as
> submittion
> 
> Hello Sam,
> 
> you can define a default Button per page.
> 
> <tc:button defaultCommand="true"
>            label="Login"/>
> 
> Regards
> 
> Bernd
> 
> Wong, Emmanuel (Sam) wrote:
>>  Hi:
>>
>>             Could anyone know how to login into the application
> without
>> clicking the login button?  I have a login page and would like user
>> input the password, then user hits the "ENTER" key will go into the
>> application.  I tried to use valueChangeListener, is this the only
> way?
>> Thanks.
>>
>>
> 

Re: [Tobago] inut text field or password text filed as submittion

Posted by Bernd Bohmann <be...@atanion.com>.
The default Button submits the page if the user hit the return key

Wong, Emmanuel (Sam) wrote:
> Yes, I could add a button, but it would be better to take action when
> user hit the return key in the password text field.
> 
> -----Original Message-----
> From: Bernd Bohmann [mailto:bernd.bohmann@atanion.com] 
> Sent: Monday, January 22, 2007 1:58 PM
> To: MyFaces Discussion
> Subject: Re: [Tobago] inut text field or password text filed as
> submittion
> 
> Hello Sam,
> 
> you can define a default Button per page.
> 
> <tc:button defaultCommand="true"
>            label="Login"/>
> 
> Regards
> 
> Bernd
> 
> Wong, Emmanuel (Sam) wrote:
>>  Hi:
>>
>>             Could anyone know how to login into the application
> without
>> clicking the login button?  I have a login page and would like user
>> input the password, then user hits the "ENTER" key will go into the
>> application.  I tried to use valueChangeListener, is this the only
> way?
>> Thanks.
>>
>>
> 

RE: [Tobago] inut text field or password text filed as submittion

Posted by "Wong, Emmanuel (Sam)" <Wo...@SEC.GOV>.
Yes, I could add a button, but it would be better to take action when
user hit the return key in the password text field.

-----Original Message-----
From: Bernd Bohmann [mailto:bernd.bohmann@atanion.com] 
Sent: Monday, January 22, 2007 1:58 PM
To: MyFaces Discussion
Subject: Re: [Tobago] inut text field or password text filed as
submittion

Hello Sam,

you can define a default Button per page.

<tc:button defaultCommand="true"
           label="Login"/>

Regards

Bernd

Wong, Emmanuel (Sam) wrote:
>  Hi:
> 
>             Could anyone know how to login into the application
without
> clicking the login button?  I have a login page and would like user
> input the password, then user hits the "ENTER" key will go into the
> application.  I tried to use valueChangeListener, is this the only
way?
> Thanks.
> 
> 

Re: [Tobago] inut text field or password text filed as submittion

Posted by Bernd Bohmann <be...@atanion.com>.
Hello Sam,

you can define a default Button per page.

<tc:button defaultCommand="true"
           label="Login"/>

Regards

Bernd

Wong, Emmanuel (Sam) wrote:
>  Hi:
> 
>             Could anyone know how to login into the application without
> clicking the login button?  I have a login page and would like user
> input the password, then user hits the "ENTER" key will go into the
> application.  I tried to use valueChangeListener, is this the only way?
> Thanks.
> 
>