aspose file tools*
The moose likes JSF and the fly likes Unable to submit form in single click Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Unable to submit form in single click" Watch "Unable to submit form in single click" New topic
Author

Unable to submit form in single click

Arun Sudharsanam
Greenhorn

Joined: May 29, 2008
Posts: 21
I have created a jsf application using Apache trinidad tags. The problem is that sometimes I am not able to submit the form by clicking once. Only when I click the submit button twice it gets submitted. I am using IE 6.0.

Any Idea regarding this??


A S
Zack Marrapese
Greenhorn

Joined: Jul 02, 2008
Posts: 27
I had this same issue in a page that just had a single input text box and a submit. I found that it happened if I tried to submit the form too quickly after the page loaded.

If I waited a couple seconds after page load to submit the form, I didn't have this problem.

I hope this helps
~Zack
Sunil Vasudevan
Ranch Hand

Joined: Mar 05, 2007
Posts: 107
Hi Arun,

This is a consistent behavior? Did you try including a debug point on the action method invoked by the submit button?


Sunil.V<br />SCJP2, SCWCD1.4, SCBCD1.3
Arun Sudharsanam
Greenhorn

Joined: May 29, 2008
Posts: 21
I had tested in debug mode also. But The action is getting called only when I click the button for the second time
Arun Sudharsanam
Greenhorn

Joined: May 29, 2008
Posts: 21
I had tested in debug mode also. But The action is getting called only when I click the button for the second time
Venkat Sadasivam
Ranch Hand

Joined: May 10, 2008
Posts: 139
Do you render button on conditional basis? i.e. Are you using rendered attribute? or <c:if> tag?


“Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ”<br>
-Martin Fowler
Arun Sudharsanam
Greenhorn

Joined: May 29, 2008
Posts: 21
No. The button is displayed always. Not rendered based on any condition.
This doesnot occur on all the pages.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to submit form in single click