Ajax channel busy

2010-07-03 Thread David Leangen


Hello, Wicketeers,

I have a link that is supposed to call a JQuery component called  
popup.


  final AjaxLinkVoid popupLink = new AjaxLinkVoid( link.popup )
  {
  @Override
  public void onClick( AjaxRequestTarget target )
  {
  target.addComponent( popup );
  final StringBuilder s = new StringBuilder();
  s.append( $.fn.popup({ )
  .append( url:  
\ ).append( onCloseBehavior.getCallbackUrl() ).append( \ )

  .append( }); );
  target.appendJavascript( s.toString() );
  }
  };

Works just fine the first time, but each subsequent call, I can see  
the following message in the Ajax Debug Window:


INFO: Channel busy - postponing...


Other than the link above, nothing else is going on!

Do I need to somehow close the channel, or something?


Thanks!
=David


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



Re: Ajax channel busy

2010-07-03 Thread David Leangen


I should add that in my onCloseHandler, I have this in my js:

$('#popup #popup-close-link').click(function (e)
{
e.preventDefault();
$('#popup-mask, #popup-window').hide();
if( url !=  )
wicketAjaxGet(url, null, null, null);
});

As far as I can tell, this seems to be the correct use of  
wicketAjaxGet...



Cheers,
=David



On Jul 3, 2010, at 4:22 PM, David Leangen wrote:



Hello, Wicketeers,

I have a link that is supposed to call a JQuery component called  
popup.


 final AjaxLinkVoid popupLink = new AjaxLinkVoid( link.popup )
 {
 @Override
 public void onClick( AjaxRequestTarget target )
 {
 target.addComponent( popup );
 final StringBuilder s = new StringBuilder();
 s.append( $.fn.popup({ )
 .append( url:  
\ ).append( onCloseBehavior.getCallbackUrl() ).append( \ )

 .append( }); );
 target.appendJavascript( s.toString() );
 }
 };

Works just fine the first time, but each subsequent call, I can see  
the following message in the Ajax Debug Window:


INFO: Channel busy - postponing...


Other than the link above, nothing else is going on!

Do I need to somehow close the channel, or something?


Thanks!
=David


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




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



Modal window form not submitting in Chrome after dependency change?

2010-07-03 Thread Anthony DePalma
I seem to be having a strange problem that I believe started happening
possibly after changing wicket versions or cleaning up my
dependencies.

In a nutshell, if I open a modal window with a form in it, and submit
the form via ajax, nothing happens in Google Chrome. I turned on
wicket debug and see this:

INFO: Initiating Ajax POST request on
?x=T6A9Uh08GjZ792nMsL*7MTfnPw6KtS9I-1ZhuquwzdJG*oyNHNd0zliePICU1Am3saa5e9ZQflaJdIqbf8yOScR7bT25REAiT84oJ4mHgQDXPnH5HtlqAJkUfCLruD7PVsEb5JK*6IoielouglZuyAYG0TL8L-o0FLidbtItO8CmCwGScr6sEvv4FB-sOz3n-AD310Ii0TCf9DePnphlLwrandom=0.7639111690223217
INFO: Invoking pre-call handler(s)...
INFO: Received ajax response (69 characters)
INFO:
?xml version=1.0 encoding=UTF-8?ajax-response/ajax-response
INFO: Response parsed. Now invoking steps...
INFO: Response processed successfully.
INFO: Invoking post-call handler(s)...
INFO: refocus last focused component not needed/allowed

The strange thing is if I do the exact same thing in firefox or IE, I
get a healthy response including the panel to replace the form with
and the form updates. For chrome though, something seems to prevent
the ajax-response from coming back. If i close the modal window in
chrome, open it again and submit it, it works fine. But the first
attempt always does nothing and is very frustrating for usability as
there is no feedback that anything went wrong besides the ajax
indicator flashing. Subsequent submits do nothing but return the empty
ajax response unless i close and reopen the window.

And even stranger, the older version of my site works fine in the same
chrome browser, but if I revert my wicket dependencies it doesnt fix
the problem. I am guessing there is something strange about maybe a
non wicket dependency I got rid of, but I still have to mess around
with it. But has anyone seen this kind of behavior before or have a
hint as to how I could debug it?

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



Re: Ajax channel busy

2010-07-03 Thread nino martinez wael
Should be ok I guess, heres the definition of it, ..:

function wicketAjaxGet(url, successHandler, failureHandler, precondition)




2010/7/3 David Leangen wic...@leangen.net


 I should add that in my onCloseHandler, I have this in my js:

$('#popup #popup-close-link').click(function (e)
{
e.preventDefault();
$('#popup-mask, #popup-window').hide();
if( url !=  )
wicketAjaxGet(url, null, null, null);
});

 As far as I can tell, this seems to be the correct use of wicketAjaxGet...


 Cheers,
 =David




 On Jul 3, 2010, at 4:22 PM, David Leangen wrote:


 Hello, Wicketeers,

 I have a link that is supposed to call a JQuery component called popup.

  final AjaxLinkVoid popupLink = new AjaxLinkVoid( link.popup )
  {
 @Override
 public void onClick( AjaxRequestTarget target )
 {
 target.addComponent( popup );
 final StringBuilder s = new StringBuilder();
 s.append( $.fn.popup({ )
 .append( url: \ ).append( onCloseBehavior.getCallbackUrl()
 ).append( \ )
 .append( }); );
 target.appendJavascript( s.toString() );
 }
  };

 Works just fine the first time, but each subsequent call, I can see the
 following message in the Ajax Debug Window:

 INFO: Channel busy - postponing...


 Other than the link above, nothing else is going on!

 Do I need to somehow close the channel, or something?


 Thanks!
 =David


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



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




Re: Ajax channel busy

2010-07-03 Thread David Leangen


Ok, thanks,

So, if it should be ok, I wonder why after the first execution, I only  
get


INFO: Channel busy - postponing...

So I can't use my component more than once...





On Jul 3, 2010, at 10:36 PM, nino martinez wael wrote:


Should be ok I guess, heres the definition of it, ..:

function wicketAjaxGet(url, successHandler, failureHandler,  
precondition)





2010/7/3 David Leangen wic...@leangen.net



I should add that in my onCloseHandler, I have this in my js:

  $('#popup #popup-close-link').click(function (e)
  {
  e.preventDefault();
  $('#popup-mask, #popup-window').hide();
  if( url !=  )
  wicketAjaxGet(url, null, null, null);
  });

As far as I can tell, this seems to be the correct use of  
wicketAjaxGet...



Cheers,
=David




On Jul 3, 2010, at 4:22 PM, David Leangen wrote:



Hello, Wicketeers,

I have a link that is supposed to call a JQuery component called  
popup.


final AjaxLinkVoid popupLink = new AjaxLinkVoid( link.popup )
{
   @Override
   public void onClick( AjaxRequestTarget target )
   {
   target.addComponent( popup );
   final StringBuilder s = new StringBuilder();
   s.append( $.fn.popup({ )
   .append( url:  
\ ).append( onCloseBehavior.getCallbackUrl()

).append( \ )
   .append( }); );
   target.appendJavascript( s.toString() );
   }
};

Works just fine the first time, but each subsequent call, I can  
see the

following message in the Ajax Debug Window:

INFO: Channel busy - postponing...


Other than the link above, nothing else is going on!

Do I need to somehow close the channel, or something?


Thanks!
=David


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




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





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



[Exception] Cannot create a session after the response has been committed

2010-07-03 Thread Jens Zastrow

Hi experts,
This kind of exception is logged a few times a day...
What does it mean?

Thanks
Jens Zastrow

2010-07-03 17:52:57,858 org.apache.wicket.RequestCycle there was an 
error in the RequestLogger ending.
java.lang.IllegalStateException: Cannot create a session after the 
response has been committed
at 
org.apache.catalina.connector.Request.doGetSession(Request.java:2313)
at 
org.apache.catalina.connector.Request.getSession(Request.java:2074)
at 
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
at 
org.apache.wicket.protocol.http.AbstractHttpSessionStore.getSessionId(AbstractHttpSessionStore.java:188)

at org.apache.wicket.Session.bind(Session.java:420)
at 
de.mj.ui.AbstractWicketApplication.initSession(AbstractWicketApplication.java:134)
at 
com.fussball4all.ui.Application.initSession(Application.java:1216)
at 
de.mj.ui.AbstractWicketApplication.newSession(AbstractWicketApplication.java:118)

at org.apache.wicket.Session.findOrCreate(Session.java:230)
at org.apache.wicket.Session.findOrCreate(Session.java:213)
at org.apache.wicket.Session.get(Session.java:252)
at 
org.apache.wicket.protocol.http.RequestLogger.requestTime(RequestLogger.java:216)

at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1163)
at 
de.mj.ui.UserAwareWebRequestCycle.detach(UserAwareWebRequestCycle.java:55)
at 
com.fussball4all.ui.F4AllWebRequestCycle.detach(F4AllWebRequestCycle.java:45)

at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1454)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)


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



Modal dialog with two forms on separate tabbed panels intermittently not working

2010-07-03 Thread Chris Colman
We have an authentication modal window that contains a tabbed panel with
two tabs, each with their own form: one for log on and one for
registering. The user can switch between the tabs and proceed with the
one that is appropriate to them.

This works fine for most of the time however there is an intermittent
problem whereby it appears as though the normal transferring of field
data to the model does not occur - whether field values satisfy the
verification process or not.

The verification error message that displays indicates that wicket
thinks that all fields were left completely blank - when they were
filled in.

Anyone else seen this issue?

I can't work out steps to reproduce the problem reliably but it seems
more likely to occur if I toggle between the log on/sign up tabs a few
times before entering data and submitting one of the forms.

A couple of users have also complained that they can't log into our
application which would indicate that intermittently users are also
seeing the problem.

Happens on both FF 3.6.6 and IE 8

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



Re: 3.5 Hibernate 1.1 tutorial wicketized/eclipseized

2010-07-03 Thread rmh1981


David Brown wrote:
 i have a wicketized/eclipseized hibernate 1.1 tutorial that should work
 out-of-the-box albeit for mysql only. Where to upload the project? Or, I
 can put it on my blog for download? 
 


I have been looking for a tutorial with hibernate and wicket so that would
be great - if you could post the link that would be appreciated.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/3-5-Hibernate-1-1-tutorial-wicketized-eclipseized-tp2274167p2277342.html
Sent from the Wicket - User 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