Re: POST path via Ajax erratically invalid when used with #
See wicketSubmitFormById() and wicketAjaxPost() in wicket-ajax.js On Fri, Apr 29, 2011 at 12:59 AM, Jeremy Levy jel...@gmail.com wrote: I've noticed that in 1.4.17 in some circumstances when using Wicket to POST data over AJAX the path it's POSTing to tries to include the value after # in the URL. For example on a page with a URL like http://foo.bar/MyPage#one Wicket-Ajax attempts to POST to http://foo.bar/MyPageone. I'm having trouble using the debugger to nail down where in the JS this is happening, can someone help point me to the function? Jeremy -- Jeremy Levy -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Can't get Javascript filtering to work
Hi, On Thu, Apr 28, 2011 at 9:50 PM, Alec Swan alecs...@gmail.com wrote: Thanks, Andrea. I was running in DEVELOPMENT mode and switching to DEPLOYMENT mode fixed the problem. I hope this gets documented somewhere. You are doing something wrong. MyApp#init() is called after WebApplication#internalInit() so your settings should override the defaults. Martin, are you saying that page rendering will not block waiting for the static resource to render while it will block on a component resource to render? Maybe I need to learn more about page locking in Wicket ... Yes. The page renders an URL to the shared resource, i.e. a String. Later the browser makes a request to this URL and this request doesn't go to any page, so there is no locking. Be careful to do what is needed to make the resource thread-safe. Making it stateless is the recommended practice. Thanks, Alec On Wed, Apr 27, 2011 at 3:20 AM, Martin Grigorov mgrigo...@apache.org wrote: Static resources are more suitable for the cases when you want to avoid page locking. E.g. when you need to deliver dynamic response and there is a chance that the processing will be slower or there will be more clients for the same resource. Using a normal component for this will suffer that only one request can use one page instance (pagemap in 1.4) at a time. On Wed, Apr 27, 2011 at 11:54 AM, Andrea Del Bene adelb...@ciseonweb.it wrote: Hi Alec, are you sure you are testing your code in DEPLOYMENT mode and not in DEVELOPMENT mode? To answer your question about benefits of using shared resources, I can say that they make sense when you need to access a resource (like a picture) with an absolute path instead of a relative one (which typically is ./resource/package.of.class/pictureName.png ). Hello, I would like to get my Javascript files filtered and gzipped. I added the following code in my Application#init(): resourceSettings.setJavascriptCompressor(new DefaultJavascriptCompressor()); However, when I add a resource using the following code, I can still see comments and white spaces in the Javascript files loaded by the web pages: final JavascriptResourceReference resourceRef = new JavascriptResourceReference(scope, /common.js); component.add(JavascriptPackageResource.getHeaderContribution(resourceRef)); What am I doing wrong? Also, I am struggling to understand the benefits of using shared resources, e.g. when does it make sense to create a shared resource for a Javascript file? Thanks, Alec - 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Back button problem in wicket
Hi, Thanks for the help... problem is solved.. i integrated spring and wicket.. but a new problem has come.. it is saying me to serialize the service class although it is not affecting the problem of back button if i don't serialize but still throwing an exception.. I don't wanna serialize my service class.. Please tell me what is the problem and how to solve it.. -- Thanks in advance -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-problem-in-wicket-tp3480260p3483270.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: Back button problem in wicket
use spring bean On Fri, Apr 29, 2011 at 2:55 PM, madaan18 madaa...@gmail.com wrote: Hi, Thanks for the help... problem is solved.. i integrated spring and wicket.. but a new problem has come.. it is saying me to serialize the service class although it is not affecting the problem of back button if i don't serialize but still throwing an exception.. I don't wanna serialize my service class.. Please tell me what is the problem and how to solve it.. -- Thanks in advance -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-problem-in-wicket-tp3480260p3483270.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 -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Back button problem in wicket
On Fri, Apr 29, 2011 at 12:31 PM, vineet semwal vineetsemwal1...@gmail.com wrote: use spring bean @vineet: Better use '@SpringBean' because it is not very clear what you mean ;-) @madaan18: show us some code so we can tell you for sure what the problem is On Fri, Apr 29, 2011 at 2:55 PM, madaan18 madaa...@gmail.com wrote: Hi, Thanks for the help... problem is solved.. i integrated spring and wicket.. but a new problem has come.. it is saying me to serialize the service class although it is not affecting the problem of back button if i don't serialize but still throwing an exception.. I don't wanna serialize my service class.. Please tell me what is the problem and how to solve it.. -- Thanks in advance -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-problem-in-wicket-tp3480260p3483270.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 -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
autolinking 1.5 page parameters?
Hi is it possible somehow to add page params to wicket:link entries? regards Nino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Back button problem in wicket
martin-g : heh yeah i realized it after hitting on submit but then i thought he will figure it out ,thanks :) - vineet semwal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-problem-in-wicket-tp3480260p3483658.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
Nothing happens on AJAX call after session timeout
This issue same with http://apache-wicket.1842946.n4.nabble.com/Session-timeout-AJAX-enabled-controls-td1893184.html but there is no response to the last comment After session expire nothing happend for user if he click to AJAX link - but PageExpiredException needs. In 'wicket ajax debug' window fallowing error displayed: ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root ajax-response element -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nothing-happens-on-AJAX-call-after-session-timeout-tp3483872p3483872.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: Nothing happens on AJAX call after session timeout
try with latest versions of Wicket (1.4.17 or 1.5-RC3) On Fri, Apr 29, 2011 at 5:52 PM, vov vov...@mail.ru wrote: This issue same with http://apache-wicket.1842946.n4.nabble.com/Session-timeout-AJAX-enabled-controls-td1893184.html but there is no response to the last comment After session expire nothing happend for user if he click to AJAX link - but PageExpiredException needs. In 'wicket ajax debug' window fallowing error displayed: ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root ajax-response element -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nothing-happens-on-AJAX-call-after-session-timeout-tp3483872p3483872.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: autolinking 1.5 page parameters?
I just appended the params in the html after the .html in the link worked fine On Apr 29, 2011 11:43 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi is it possible somehow to add page params to wicket:link entries? regards Nino
Re: DataTable's view does not always update
Clint - I'm seeing similar problem in the simplest possible page. I took the Counter Page example from the Wicket's website and put that into my panels. (the only 2 things in the panel are the AjaxFallbackLink and Label) Clicking on the link would not update the counter. How do I get to to that Wicket debug panel? - I'm pretty new to Wicket. Since I'm not using a form I assume that for me it's problem #1. Dave On Thu, Apr 28, 2011 at 9:20 PM, Clint Checketts checke...@gmail.comwrote: I've seen that sort of behavior in 2 common types of cases: 1- An exception occurred, disrupting the Ajax response from even returning (you'll notice it as a type ERROR in the Wicket debug panel) 2- A form validator, required field, or conversion failed, stopping the form from updating underlying models (you would have still seen the onBeforeRender called in this case). You'd notice this behavior if the console had a message about 'unrendered feedback message' -Clint -- Clint Checketts Sent with Sparrow On Thursday, April 28, 2011 at 1:25 PM, Tom Barbaro wrote: Hi, I have several checkboxes in a datatable toolbar that control filtering for the content rendered in a datatable. When a checkbox is clicked, we add the datatable to the ajax target, which results in a new query. The dataprovider doQuery methond is called and returns the correct results. The problem is the view does not always update. No exceptions occur, the view just does not update. I set a breakpoint in onBeforeRender for the page and it is called when the view is updated. When the view is not updated it is not called. The only clue I have is the number of items in the view for the checkbox I just unselected is much larger (more than 100x) than the items selected by the unmodified checkboxes. Any ideas what would prevent the updating of the table? Tom -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DataTable-s-view-does-not-always-update-tp3481807p3481807.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: DataTable's view does not always update
I've enabled the debug - project was set up for me and it was in deployment mode from the start... Question: why am I getting *ERROR: *Received Ajax response with code: 404? Is anyone running Wicket on WAS 6.1? Thanks, Dave On Fri, Apr 29, 2011 at 1:59 PM, D D dawi...@gmail.com wrote: Clint - I'm seeing similar problem in the simplest possible page. I took the Counter Page example from the Wicket's website and put that into my panels. (the only 2 things in the panel are the AjaxFallbackLink and Label) Clicking on the link would not update the counter. How do I get to to that Wicket debug panel? - I'm pretty new to Wicket. Since I'm not using a form I assume that for me it's problem #1. Dave On Thu, Apr 28, 2011 at 9:20 PM, Clint Checketts checke...@gmail.comwrote: I've seen that sort of behavior in 2 common types of cases: 1- An exception occurred, disrupting the Ajax response from even returning (you'll notice it as a type ERROR in the Wicket debug panel) 2- A form validator, required field, or conversion failed, stopping the form from updating underlying models (you would have still seen the onBeforeRender called in this case). You'd notice this behavior if the console had a message about 'unrendered feedback message' -Clint -- Clint Checketts Sent with Sparrow On Thursday, April 28, 2011 at 1:25 PM, Tom Barbaro wrote: Hi, I have several checkboxes in a datatable toolbar that control filtering for the content rendered in a datatable. When a checkbox is clicked, we add the datatable to the ajax target, which results in a new query. The dataprovider doQuery methond is called and returns the correct results. The problem is the view does not always update. No exceptions occur, the view just does not update. I set a breakpoint in onBeforeRender for the page and it is called when the view is updated. When the view is not updated it is not called. The only clue I have is the number of items in the view for the checkbox I just unselected is much larger (more than 100x) than the items selected by the unmodified checkboxes. Any ideas what would prevent the updating of the table? Tom -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DataTable-s-view-does-not-always-update-tp3481807p3481807.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
[Announce] wicketstuff-core 1.4.17.1 released
Hello, I am pleased to announce the release of wicketstuff-core-1.4.17.1 the first point release on the current stable wicket 1.4.17 version. The project artifacts are now available through the central maven repository. Development on the next 1.4.x release takes place on the core-1.4.x branch: https://github.com/wicketstuff/core/tree/core-1.4.x Issues can be reported here: https://github.com/wicketstuff/core/issues The Project Wiki is available here (and includes instructions on how to access the project artifacts using maven): https://github.com/wicketstuff/core/wiki The release tag is here: https://github.com/wicketstuff/core/tree/wicketstuff-core-1.4.17.1 Commits since 1.4.17: seb (5 commits): wicket-shiro, wicket-minis: (license header, serialVersionUID, javadoc) ServerHostNameAndTimeFilter backport Merge branch 'refs/heads/core-1.4.x' of ssh://g...@github.com/wicketstuff/core.git into HEAD updated change log minis: code cleanup cretzel (3 commits): [console] fixing build dependencies [console] fixing hibernate driver class [console] remove java 6 dependencies Michael O'Cleirigh (3 commits): datatable-autocomplete: add styling and selection capabilities. datatable-autocomplete: add highlight selected row capability. Nick Wiedenbrueck (3 commits): [console] backport to core-1.4.x [console] removed onInitilize for extension Merge branch 'core-1.4.x' into console-1.4.x Inaiat Henrique (2 commits): added the mootools meiomask module. [meiomask] mootools meiomask wicket 1.4x [meiomask] added mootols meiomask module to pom lambdadaku (1 commit): Additions to the gmap2 project Added multiple controls and map types (adapted to latest google maps) - controls: 3d Zoom Control, hierarchical, navlabel, and overview map - map types: physical, aerial, and aerial 3d Isammoc (1 commit): Merged pull request #25 from lambdadaku/core-1.4.x. The full change set can be see using: git log wicketstuff-core-1.4.17..wicketstuff-core-1.4.17.1 I will plan on doing the next release within one month from today. Let me know if you would like a new release sooner (like if you need some new feature for your work release which can't have snapshot artifacts). Regards, Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicket 1.5 AbstractDefaultAjaxBehavior bad url
I have noticed calling getCallbackUrl() on an AbstractDefaultAjaxBehavior results in a url sometimes in: ./wicket/page?0-1.IBehaviorListener and other parts of the same page have: ./wicket/page?1-2.IBehaviorListener I think that the bad urls cause the page to reload when the attempt to call: wicketAjaxGet('+click.getCallbackUrl()+x='+...+'y='+...+''); For some reason having these ajax calls reloads the page in Wicket 1.5 but not wicket 1.4. I am of course calling getCallbackUrl() after the behavior is added to the page not sure what is wrong. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-1-5-AbstractDefaultAjaxBehavior-bad-url-tp3484600p3484600.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: DataTable's view does not always update
Ah. This is curious. I've run Wicket on WAS 6.1. Out of curiosity do you have the com.ibm.websphere.sendredirect.compatibility property set? See here: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/xrun_jvm_sendredirect.html -Clint On Fri, Apr 29, 2011 at 3:13 PM, D D dawi...@gmail.com wrote: I've enabled the debug - project was set up for me and it was in deployment mode from the start... Question: why am I getting *ERROR: *Received Ajax response with code: 404? Is anyone running Wicket on WAS 6.1? Thanks, Dave On Fri, Apr 29, 2011 at 1:59 PM, D D dawi...@gmail.com wrote: Clint - I'm seeing similar problem in the simplest possible page. I took the Counter Page example from the Wicket's website and put that into my panels. (the only 2 things in the panel are the AjaxFallbackLink and Label) Clicking on the link would not update the counter. How do I get to to that Wicket debug panel? - I'm pretty new to Wicket. Since I'm not using a form I assume that for me it's problem #1. Dave On Thu, Apr 28, 2011 at 9:20 PM, Clint Checketts checke...@gmail.com wrote: I've seen that sort of behavior in 2 common types of cases: 1- An exception occurred, disrupting the Ajax response from even returning (you'll notice it as a type ERROR in the Wicket debug panel) 2- A form validator, required field, or conversion failed, stopping the form from updating underlying models (you would have still seen the onBeforeRender called in this case). You'd notice this behavior if the console had a message about 'unrendered feedback message' -Clint -- Clint Checketts Sent with Sparrow On Thursday, April 28, 2011 at 1:25 PM, Tom Barbaro wrote: Hi, I have several checkboxes in a datatable toolbar that control filtering for the content rendered in a datatable. When a checkbox is clicked, we add the datatable to the ajax target, which results in a new query. The dataprovider doQuery methond is called and returns the correct results. The problem is the view does not always update. No exceptions occur, the view just does not update. I set a breakpoint in onBeforeRender for the page and it is called when the view is updated. When the view is not updated it is not called. The only clue I have is the number of items in the view for the checkbox I just unselected is much larger (more than 100x) than the items selected by the unmodified checkboxes. Any ideas what would prevent the updating of the table? Tom -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DataTable-s-view-does-not-always-update-tp3481807p3481807.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: Can't get Javascript filtering to work
I've seen folks get a misconfigure like this when they make the call in the application's constructor instead of the init() method. On Friday, April 29, 2011, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Thu, Apr 28, 2011 at 9:50 PM, Alec Swan alecs...@gmail.com wrote: Thanks, Andrea. I was running in DEVELOPMENT mode and switching to DEPLOYMENT mode fixed the problem. I hope this gets documented somewhere. You are doing something wrong. MyApp#init() is called after WebApplication#internalInit() so your settings should override the defaults. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Can't get Javascript filtering to work
Martin, I am not sure why you are saying that something is configured wrong? My settings do override defaults. Clint, I call resourceSettings.setJavascriptCompressor(new DefaultJavascriptCompressor()) in MyApp#init() method, not in the constructor. Thanks, Alec On Fri, Apr 29, 2011 at 3:58 PM, Clint Checketts checke...@gmail.com wrote: I've seen folks get a misconfigure like this when they make the call in the application's constructor instead of the init() method. On Friday, April 29, 2011, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Thu, Apr 28, 2011 at 9:50 PM, Alec Swan alecs...@gmail.com wrote: Thanks, Andrea. I was running in DEVELOPMENT mode and switching to DEPLOYMENT mode fixed the problem. I hope this gets documented somewhere. You are doing something wrong. MyApp#init() is called after WebApplication#internalInit() so your settings should override the defaults. - 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
Load balancer cookie is lost in modal window
Hello, We just put our webapp behind a load balancer with sticky sessions. After that we started noticing that load balancer cookie gets lost when a modal window is popped up by a link click. Here is the code we use to display the modal window: new AjaxLink(editLink) { @Override public void onClick(AjaxRequestTarget target) { modalWindow.setPageCreator(new ModalWindow.PageCreator() { @Override public Page createPage() { } } }); How can we make sure that cookies get preserved when we pop up a modal window? Thanks, Alec - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org