a4j:commandButton is not submiting

View: New views
4 Messages — Rating Filter:   Alert me  

a4j:commandButton is not submiting

by atmohsin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

  I have a4j:commandButton in my login page after entering the user id and password. When i press enter button the form is not submitting. explicitly need to click the submit button. When i use h:commandButton it is working fine. But we need to use a4j:commandButton any one know reason and solution.

Here is the code


Not working

       <a4j:form id="formID">
            <input type="text" id="userid" />
            <input type="password" id="password" />
            <a4j:commandButton value="Submit"/>
      </a4j:form>

Working

<a4j:form id="formID">
            <input type="text" id="userid" />
            <input type="password" id="password" />
            <h:commandButton value="Submit"/>
      </a4j:form>


Thanks
Mohsin

Re: a4j:commandButton is not submiting

by Sergey Smirnov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How do you know it does not work. What do you expect to see as a prove it
works?


----- Original Message -----
From: "atmohsin" <atmohsin@...>
To: <dev@...>
Sent: Wednesday, September 09, 2009 11:27 PM
Subject: a4j:commandButton is not submiting


>
> Hi
>
>  I have a4j:commandButton in my login page after entering the user id and
> password. When i press enter button the form is not submitting. explicitly
> need to click the submit button. When i use h:commandButton it is working
> fine. But we need to use a4j:commandButton any one know reason and
> solution.
>
> Here is the code
>
>
> Not working
>
>       <a4j:form id="formID">
>            <input type="text" id="userid" />
>            <input type="password" id="password" />
>            <a4j:commandButton value="Submit"/>
>      </a4j:form>
>
> Working
>
> <a4j:form id="formID">
>            <input type="text" id="userid" />
>            <input type="password" id="password" />
>            <h:commandButton value="Submit"/>
>      </a4j:form>
>
>
> Thanks
> Mohsin
> --
> View this message in context:
> http://www.nabble.com/a4j%3AcommandButton-is-not-submiting-tp25378010p25378010.html
> Sent from the Ajax4jsf dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: a4j:commandButton is not submiting

by atmohsin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi
    I am able to solve this problem with rich:hotkey. I applied rich:hotkey to the panelGrid and send enter key to it. It is working

Thanks
Mohsin

Sergey Smirnov wrote:
How do you know it does not work. What do you expect to see as a prove it
works?


----- Original Message -----
From: "atmohsin" <atmohsin@gmail.com>
To: <dev@ajax4jsf.dev.java.net>
Sent: Wednesday, September 09, 2009 11:27 PM
Subject: a4j:commandButton is not submiting


>
> Hi
>
>  I have a4j:commandButton in my login page after entering the user id and
> password. When i press enter button the form is not submitting. explicitly
> need to click the submit button. When i use h:commandButton it is working
> fine. But we need to use a4j:commandButton any one know reason and
> solution.
>
> Here is the code
>
>
> Not working
>
>       <a4j:form id="formID">
>            <input type="text" id="userid" />
>            <input type="password" id="password" />
>            <a4j:commandButton value="Submit"/>
>      </a4j:form>
>
> Working
>
> <a4j:form id="formID">
>            <input type="text" id="userid" />
>            <input type="password" id="password" />
>            <h:commandButton value="Submit"/>
>      </a4j:form>
>
>
> Thanks
> Mohsin
> --
> View this message in context:
> http://www.nabble.com/a4j%3AcommandButton-is-not-submiting-tp25378010p25378010.html
> Sent from the Ajax4jsf dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ajax4jsf.dev.java.net
> For additional commands, e-mail: dev-help@ajax4jsf.dev.java.net
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ajax4jsf.dev.java.net
For additional commands, e-mail: dev-help@ajax4jsf.dev.java.net

Re: a4j:commandButton is not submiting

by Sergey Smirnov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Check your code in the different browsers. It is a chance you have a double
post (one ajax and one regular one). The better way to do so it to add the
Phase Tracker and see how many requests are on the server

----- Original Message -----
From: "atmohsin" <atmohsin@...>
To: <dev@...>
Sent: Thursday, September 10, 2009 10:35 AM
Subject: Re: a4j:commandButton is not submiting


>
> Hi
>    I am able to solve this problem with rich:hotkey. I applied rich:hotkey
> to the panelGrid and send enter key to it. It is working
>
> Thanks
> Mohsin
>
>
> Sergey Smirnov wrote:
>>
>> How do you know it does not work. What do you expect to see as a prove it
>> works?
>>
>>
>> ----- Original Message -----
>> From: "atmohsin" <atmohsin@...>
>> To: <dev@...>
>> Sent: Wednesday, September 09, 2009 11:27 PM
>> Subject: a4j:commandButton is not submiting
>>
>>
>>>
>>> Hi
>>>
>>>  I have a4j:commandButton in my login page after entering the user id
>>> and
>>> password. When i press enter button the form is not submitting.
>>> explicitly
>>> need to click the submit button. When i use h:commandButton it is
>>> working
>>> fine. But we need to use a4j:commandButton any one know reason and
>>> solution.
>>>
>>> Here is the code
>>>
>>>
>>> Not working
>>>
>>>       <a4j:form id="formID">
>>>            <input type="text" id="userid" />
>>>            <input type="password" id="password" />
>>>            <a4j:commandButton value="Submit"/>
>>>      </a4j:form>
>>>
>>> Working
>>>
>>> <a4j:form id="formID">
>>>            <input type="text" id="userid" />
>>>            <input type="password" id="password" />
>>>            <h:commandButton value="Submit"/>
>>>      </a4j:form>
>>>
>>>
>>> Thanks
>>> Mohsin
>>> --
>>> View this message in context:
>>> http://www.nabble.com/a4j%3AcommandButton-is-not-submiting-tp25378010p25378010.html
>>> Sent from the Ajax4jsf dev mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@...
>>> For additional commands, e-mail: dev-help@...
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@...
>> For additional commands, e-mail: dev-help@...
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/a4j%3AcommandButton-is-not-submiting-tp25378010p25387720.html
> Sent from the Ajax4jsf dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...