This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSF and the fly likes Safari 3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Safari 3 "First Submit Fails" Problem" Watch "Safari 3 "First Submit Fails" Problem" New topic
Author

Safari 3 "First Submit Fails" Problem

evan k. stone
Greenhorn

Joined: Nov 29, 2006
Posts: 16
Hi,

I'm having a really weird issue with just a couple of pages in my JSF application, and the problem I'm having seems to only manifest itself in Safari 3 (Mac & Win), but not in Safari 2, IE, or FF.

The page seems to fail on the first time it submits, giving the user the initial impression that the form has done a reset, even though it has done a full round trip in the meantime. If the user fills out the information (just two fields) and clicks continue or hits enter to submit a second time, then the submit works.

Does this smell familiar to anyone here? Where should I start looking first to figure out what's going on?

Thanks!

[edit]
I just tried an experiment by adding a bean method as the action parameter on the commandButtons, and the interesting thing is that it does not hit my method on the first round trip, but does on the second try...

just in case that jogs anyone's memory.

Anyway, I'm going to keep experimenting to see if I can figure out what's going on there...

I'm wondering if it's similar in nature to this problem mentioned on the Sun forums: http://forum.java.sun.com/thread.jspa?forumID=427&threadID=416345

Let me know what you guys think.

Thanks!
[/edit]

[ November 06, 2007: Message edited by: evan k. stone ]
[ November 06, 2007: Message edited by: evan k. stone ]
evan k. stone
Greenhorn

Joined: Nov 29, 2006
Posts: 16
OK... You're not going to believe this, because I sure don't.

As a final, last-ditch attempt at the possibility that this might actually be a bug in Safari 3 (since it is a Beta product at this point in time, after all), I ran tests on a newer build of Safari 3 for Windows downloaded from the WebKit.org site, and the problem vanished. The first submit on the form is accepted, and the application works fine.

Go figure.
Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
Originally posted by evan k. stone:
Hi,

I'm having a really weird issue with just a couple of pages in my JSF application, and the problem I'm having seems to only manifest itself in Safari 3 (Mac & Win), but not in Safari 2, IE, or FF.

The page seems to fail on the first time it submits, giving the user the initial impression that the form has done a reset, even though it has done a full round trip in the meantime. If the user fills out the information (just two fields) and clicks continue or hits enter to submit a second time, then the submit works.

Does this smell familiar to anyone here? Where should I start looking first to figure out what's going on?

Thanks!

[edit]
I just tried an experiment by adding a bean method as the action parameter on the commandButtons, and the interesting thing is that it does not hit my method on the first round trip, but does on the second try...

just in case that jogs anyone's memory.

Anyway, I'm going to keep experimenting to see if I can figure out what's going on there...

I'm wondering if it's similar in nature to this problem mentioned on the Sun forums: http://forum.java.sun.com/thread.jspa?forumID=427&threadID=416345

Let me know what you guys think.

Thanks!
[/edit]

[ November 06, 2007: Message edited by: evan k. stone ]

[ November 06, 2007: Message edited by: evan k. stone ]




it happens to me also, it appears to me it occurs when the server is newly started and the first user submits the page, after that the submit button works as its supposed to
Matej Posinkovic
Greenhorn

Joined: Jun 30, 2008
Posts: 1
Hello,

I experience exactly the same problem in safari 3.1.2.

At the moment i belive, that the solution is that you have to specify the form's "action" atribute with a full url address:
action="http://yoursite.com/dir/?a=one&b=two"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Safari 3 "First Submit Fails" Problem
 
Similar Threads
Problems in working with local home interfaces
STATE_SAVING_METHOD
problem h:selectOneRadio
Font Problem in Java Print API
add child component