This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Safari 3 "First Submit Fails" Problem

 
evan k. stone
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic