• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Safari 3 "First Submit Fails" Problem

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
 
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic