Re: Safari hangs on ajax form submit

2011-08-04 Thread trodi

Peter Miklosko wrote:
 
 Where did you see 1.4.18? 
 I do not see it on SVN https://svn.apache.org/repos/asf/wicket/branches/
 

I figured that from
lt;https://issues.apache.org/jira/browse/WICKET-3820gt;

Igor Vaynberg added a comment - 21/Jun/11 06:13
it bit me earlier today. this is something we will need to fix in 1.4.18

I didn't see anything stating how far 1.4.18 was from release.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Safari-hangs-on-ajax-form-submit-tp3713539p3718673.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Safari hangs on ajax form submit

2011-08-02 Thread trodi
This problem is only present when using Safari (Chrome, FF, and IE work fine.
Specifically I found this in Safari 5 on Windows 7). Also, only when using
ajax buttons for both forms submittal, rather than a vanilla form submission
for the second form. 

I have two forms on a single page, the second one isn't visible on page
load. When you submit the first form I change the visibility so that the
first form is invisible and the second is visible: 
pTarget.addComponent(_form1.setVisible(false)); 
pTarget.addComponent(_form2.setVisible(true)); 

In Safari only this result in neither form rendered after submission.
Switching the order in form1's onSubmit() rectifies the immediate problem: 
pTarget.addComponent(_form2.setVisible(true)); 
pTarget.addComponent(_form1.setVisible(false)); 

However, now when you submit the second form, the client hangs on INFO:
Response parsed. Now invoking steps... It never gets to the submit button's
onsubmit(). It gets stuck while processing steps in the processNext()
function of Wicket.FunctionsExecuter in wicket-ajax.js and so it never calls
the final success function, hence the hang. 

As a work around, you can change the first form's onSubmit() to this: 
pTarget.addComponent(_form2.setVisible(true)); 
pTarget.addComponent(_form1.add(new SimpleAttributeModifier(style,
visibility:hidden))); 

Is there a real fix for this? It seems like there may be a bug in how
wicket-ajax.js handles Safari. Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Safari-hangs-on-ajax-form-submit-tp3713539p3713539.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Safari hangs on ajax form submit

2011-08-02 Thread trodi

Dan Retzlaff wrote:
 
 Are you encountering this?
 https://issues.apache.org/jira/browse/WICKET-3820
 
 I also recently submitted this so failures like this aren't so
 catastrophic.
 https://issues.apache.org/jira/browse/WICKET-3937
 

Yes, this was the problem I was encountering. Your submitted fix solves my
problem, thanks. It looks like Wicket 1.4.18 will have this fixed as well,
according to the bug's commentary.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Safari-hangs-on-ajax-form-submit-tp3713539p3713726.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org