Re: Wicket for large user base website
read https://cwiki.apache.org/confluence/x/qIaoAQ to understand how Wicket stores the pages the app I work on has ~15M registered users and ~200K concurrent users. I hope these are good enough numbers for you On Mon, May 7, 2012 at 9:54 AM, kshitiz k.agarw...@gmail.com wrote: Okkwicket being statefull stores state of each page in a session. So, if I make some pages stateless and some statefull,will that improve its memory efficiency? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-for-large-user-base-website-tp4613283p4614133.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: Error with link in DataTable together with AjaxEventBehavior(onclick)
Hi, This is how the event propagation/bubbling works in the browsers. You need to suppress the bubbling of the JavaScript event. See http://www.quirksmode.org/js/events_order.html for more info. You can use IAjaxCallDecorator to stop the event after clicking on the ajax link. On Sat, May 5, 2012 at 4:15 PM, bjolletz daniel.akerl...@pagero.com wrote: Hi, I have a DataTable. In this DataTable I want to be able to click on the rows in the table to make some stuff happen (by Ajax), for example highlighting the current row. To implement this I am overriding the newRow method in DataTable and adding an AjaxEventBehavior(onclick) to each row item. This works well, but when I add a Link to another page in one of the columns, I get a problem. When clicking the link I still trigger an onclick ajax event for clicking the row. But since the link takes me to another page, this ajax request will fail beacuse the page it belongs to is no longer available. Is there a way to prevent the onclick event from happening when I click on my link? Or is there a better way of doing this? Thanks! Daniel -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-with-link-in-DataTable-together-with-AjaxEventBehavior-onclick-tp4611096.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: How To Catch Network Disconnection In Ajax Buttons
Hi, You can use browser's online and offline events to be notified when the network is down for some reason. See http://stackoverflow.com/questions/3181080/how-to-detect-online-offline-event-cross-browser On Fri, May 4, 2012 at 1:00 PM, Horacio Natyural horacio.natyu...@gmail.com wrote: Hi, How do we catch network disconnection ? For example, I'm submitting using an indicatingajaxbutton, when the network is disconnected, the loading indicator disappears and the button is available again. Is there anyway that I can catch network disconnections in indicatingajaxbutton or any ajax button for that matter. I would like to post an alert warning to the client that he/she has been disconnected from the server. Is there anyway that I could insert something into this method? this is in wicket-ajax.js failure: function(message) { if (message != null) Wicket.Log.error(Wicket.Ajax.Call.failure: Error while parsing response: + message); this.request.done(); this.failureHandler(); Wicket.Ajax.invokePostCallHandlers(); Wicket.Ajax.invokeFailureHandlers(); You can register 'postCallHandler' and/or 'failureHandler' and this method will call it/them for you. } Thanks! Carlo - 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: Exception when detaching/serializing a page
Hi, This error means that for some reason the page instance cannot be stored in the disk. Any following Ajax request would not be able to find the page instance and thus wont work (e.g. the ModalWindow uses Ajax). I'd recommend to enable finer logging for Session class and see what is the real cause of this problem. On Thu, May 3, 2012 at 10:38 AM, Philipp philipp.li...@edi-intercom.com wrote: We have been successfully running a Wicket-driven Web application for about 6 month now. Since a few days the application keeps giving me errors of the following kind: May 01 09:04:56 https://papertrailapp.com/searches/22745?time=1335888296 domU-12-31-39-0A-59-A1 ERROR: [Live]: org.apache.wicket.Session.requestDetached.1454: Exception when detaching/serializing page May 01 09:05:14 https://papertrailapp.com/searches/22745?time=1335888314 domU-12-31-39-0A-59-A1 ERROR: [Live]: org.apache.wicket.Session.requestDetached.1454: Exception when detaching/serializing page May 01 09:05:15 https://papertrailapp.com/searches/22745?time=1335888315 domU-12-31-39-0A-59-A1 ERROR: [Live]: org.apache.wicket.Session.requestDetached.1454: Exception when detaching/serializing page May 01 09:10:15 https://papertrailapp.com/searches/22745?time=1335888615 domU-12-31-39-0A-59-A1 ERROR: [Live]: org.apache.wicket.Session.requestDetached.1454: Exception when detaching/serializing page The website itself is still being shown, however, modal windows for example do not work any more. I have been googling around for that error for quite a while, but did not find any helpful result. Anybody else already experienced some error like that and can point me into a direction where I can further investigate the issue? Philipp -- 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: Datatable with selection row below the header
Hi, You can use the filtering columns from org.apache.wicket.extensions.markup.html.repeater.data.table.filter (wicket-extensions) to do that On Thu, May 3, 2012 at 1:43 PM, lang delan...@telfort.nl wrote: I need a table like datatable, only one difference: t must has input fields on the second row where the user can enter his selections. Who has an example for this? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Datatable-with-selection-row-below-the-header-tp4605644.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: Wicket AutoComplete example does not work
Thanks Brian, This is fixed in 1.5.6 and I'll redeploy the examples at wicket-liibrary.com soon. On Fri, May 4, 2012 at 9:13 PM, Brian Mulholland blmulholl...@gmail.com wrote: I just looked at the wicket autocomplete example at http://www.wicket-library.com/wicket-examples/ajax/autocomplete?0 does not work in IE8 or Firefox. Brian Mulholland For every complex problem, there is an answer that is clear, simple and wrong. --H.L. Mencken Politics is the art of looking for trouble, finding it everywhere, diagnosing it incorrectly, and applying the wrong remedies. --Groucho Marx - 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: BookmarkableLinks and masked urls
Hi, Since the app is new I'd suggest to use Wicket 1.5.6+ or 6.0+. 1.4.x branch is in maintainance mode and will receive only security related fixes. On Sat, May 5, 2012 at 3:59 AM, infiniter infini...@gmail.com wrote: I think I've done it. I created a MaskedUrlCodingStrategyDecorator that extends from BookmarkablePageRequestTargetUrlCodingStrategy, placed it in the same package, and overrode CharSequence encode(IRequestTarget requestTarget), and used a regular BookmarkablePageLink -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/BookmarkableLinks-and-masked-urls-tp4610114p4610256.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: WICKET-1.5.6 Feedback messages not updated on stateless pages
Hi Thomas, It seems WICKET-4468 broke it somehow. Please file a ticket. On Sun, May 6, 2012 at 1:55 PM, Thomas Heigl tho...@umschalt.com wrote: Hello, I'm currently in the process of migrating a largish Wicket 1.4 application to 1.5. When moving from 1.5.5 to 1.5.6 something related to feedback messages breaks. On all my stateless pages, feedback messages are not rendered anymore when using: @Override protected void onError(AjaxRequestTarget target, Form? form) { target.addChildren(MyForm.this, FeedbackPanel.class); } The form is correctly traversed, all FeedbackPanels are added to the ajax target, and the ajax response actually contains the updated markup for the feedback panel. Just the message itself is missing and Wicket shows the typical Component-targeted feedback message has been left unrendered message. I checked the JIRA issues for 1.5.6 but didn't see anything related to feedback messages. Has there been some intentional change or is something broken in 1.5.6? Cheers, Thomas -- 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: WICKET-1.5.6 Feedback messages not updated on stateless pages
I've already created the ticket (WICKET-4536) and committed a fix. Best regards, Emond On Monday 07 May 2012 11:13:22 Martin Grigorov wrote: Hi Thomas, It seems WICKET-4468 broke it somehow. Please file a ticket. On Sun, May 6, 2012 at 1:55 PM, Thomas Heigl tho...@umschalt.com wrote: Hello, I'm currently in the process of migrating a largish Wicket 1.4 application to 1.5. When moving from 1.5.5 to 1.5.6 something related to feedback messages breaks. On all my stateless pages, feedback messages are not rendered anymore when using: @Override protected void onError(AjaxRequestTarget target, Form? form) { target.addChildren(MyForm.this, FeedbackPanel.class); } The form is correctly traversed, all FeedbackPanels are added to the ajax target, and the ajax response actually contains the updated markup for the feedback panel. Just the message itself is missing and Wicket shows the typical Component-targeted feedback message has been left unrendered message. I checked the JIRA issues for 1.5.6 but didn't see anything related to feedback messages. Has there been some intentional change or is something broken in 1.5.6? Cheers, Thomas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Apache Wicket 1.5.6 is released
This is the sixth maintenance release of the Wicket 1.5.x series. This release brings over 40 bug fixes and improvements. Git tag: release/wicket-1.5.6 Changelog: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561version=12319053 Maven: dependency groupIdorg.apache.wicket/groupId artifactIdwicket-core/artifactId version1.5.6/version /dependency Download the full distribution (including source): http://www.apache.org/dyn/closer.cgi/wicket/1.5.6 The Wicket team - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Generics of Button#getForm
Done It will be better for 1.5.7/6.0.0-next On Mon, May 7, 2012 at 2:29 PM, Jonas barney...@gmail.com wrote: Hello all, as Sebastien mentioned earlier (http://apache-wicket.1842946.n4.nabble.com/Vote-Release-Apache-Wicket-1-5-6-build-2-td4593151.html#a4593497) the of Button#getForm returns the raw type Form in wicket 1.5.6. Could a committer please change the return type back to Form? so we don't have to suppress those annoying generics warnings? thanks. - 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
Calling wicket from javascript
Hello, I'm new in this forum, and i love wicket!!! My question is: What wrong with this code? @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) { private static final long serialVersionUID = 1L; @Override public CharSequence preDecorateScript(CharSequence script) { return function callWicket(){ + script + }; $('.search-div').slideDown('slow',callWicket());; } }; } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Calling-wicket-from-javascript-tp4614627.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: Calling wicket from javascript
Hard to say without details. Are you not getting the behavior you expect (and what is that behavior?). Are you getting an error message? RAM /abr./: Rarely Adequate Memory. From: jcf1974 eslae...@eresmas.com To: users@wicket.apache.org Date: 05/07/2012 07:07 AM Subject:Calling wicket from javascript Hello, I'm new in this forum, and i love wicket!!! My question is: What wrong with this code? @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) { private static final long serialVersionUID = 1L; @Override public CharSequence preDecorateScript(CharSequence script) { return function callWicket(){ + script + }; $('.search-div').slideDown('slow',callWicket());; } }; } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Calling-wicket-from-javascript-tp4614627.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 ** This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies. **
refresh page from an AjaxLink or OnChangeAjaxBehavior
Hi, I have an OnChangeAjaxBehavior on a DropDownChoice component. After I change a value in that drop down I want to reload the page using setResponse(currentPage.getClass(), currentPage.getPageParameters()); themeComp.add(new OnChangeAjaxBehavior() { private static final long serialVersionUID = -1973825163343103968L; @Override protected void onUpdate(final AjaxRequestTarget arg0) { setAValueInSession(); setResponse(currentPage.getClass(), currentPage.getPageParameters()); } }); The response from ajax debug is ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root ajax-response element. I receive the content from ajax but it is not between ajax-response element. I verify this problem on AjaxLink and the response is the same as from OnChangeAjaxBehavior. Do you have any idea how to reload the page from an AjaxLink or OnChangeAjaxBehavior ? Thanks, Mihai
RE: refresh page from an AjaxLink or OnChangeAjaxBehavior
Forgot to say wicket 1.5.5. Mihai -Original Message- From: Mihai Toma [mailto:mihai.t...@asf.ro] Sent: Monday, May 07, 2012 3:47 PM To: users@wicket.apache.org Subject: refresh page from an AjaxLink or OnChangeAjaxBehavior Hi, I have an OnChangeAjaxBehavior on a DropDownChoice component. After I change a value in that drop down I want to reload the page using setResponse(currentPage.getClass(), currentPage.getPageParameters()); themeComp.add(new OnChangeAjaxBehavior() { private static final long serialVersionUID = -1973825163343103968L; @Override protected void onUpdate(final AjaxRequestTarget arg0) { setAValueInSession(); setResponse(currentPage.getClass(), currentPage.getPageParameters()); } }); The response from ajax debug is ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root ajax-response element. I receive the content from ajax but it is not between ajax-response element. I verify this problem on AjaxLink and the response is the same as from OnChangeAjaxBehavior. Do you have any idea how to reload the page from an AjaxLink or OnChangeAjaxBehavior ? Thanks, Mihai - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: refresh page from an AjaxLink or OnChangeAjaxBehavior
This should just work. Not sure why it breaks for you. Create a quickstart app and attach it to a ticket. On Mon, May 7, 2012 at 3:53 PM, Mihai Toma mihai.t...@asf.ro wrote: Forgot to say wicket 1.5.5. Mihai -Original Message- From: Mihai Toma [mailto:mihai.t...@asf.ro] Sent: Monday, May 07, 2012 3:47 PM To: users@wicket.apache.org Subject: refresh page from an AjaxLink or OnChangeAjaxBehavior Hi, I have an OnChangeAjaxBehavior on a DropDownChoice component. After I change a value in that drop down I want to reload the page using setResponse(currentPage.getClass(), currentPage.getPageParameters()); themeComp.add(new OnChangeAjaxBehavior() { private static final long serialVersionUID = -1973825163343103968L; @Override protected void onUpdate(final AjaxRequestTarget arg0) { setAValueInSession(); setResponse(currentPage.getClass(), currentPage.getPageParameters()); } }); The response from ajax debug is ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root ajax-response element. I receive the content from ajax but it is not between ajax-response element. I verify this problem on AjaxLink and the response is the same as from OnChangeAjaxBehavior. Do you have any idea how to reload the page from an AjaxLink or OnChangeAjaxBehavior ? Thanks, Mihai - 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: Calling wicket from javascript
I tried to call wicket from javascript without using a wicket behaviour, and the error/warning i get is wcall is not defined. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Calling-wicket-from-javascript-tp4614627p4614859.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: Wicket for large user base website
Martin, Would you mind outlining your site's hardware configuration to support that load? I'm sure it would be helpful. Thanks! -Nick On Mon, May 7, 2012 at 12:20 AM, Martin Grigorov mgrigo...@apache.orgwrote: read https://cwiki.apache.org/confluence/x/qIaoAQ to understand how Wicket stores the pages the app I work on has ~15M registered users and ~200K concurrent users. I hope these are good enough numbers for you On Mon, May 7, 2012 at 9:54 AM, kshitiz k.agarw...@gmail.com wrote: Okkwicket being statefull stores state of each page in a session. So, if I make some pages stateless and some statefull,will that improve its memory efficiency? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-for-large-user-base-website-tp4613283p4614133.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
Wicket Examples
The wicket examples (www.wicket-library.com/wicket-examples/) seems to be having issues. I select the Contacts Editor option under the repeaters section and I get a permgen error. Is this site working properly? I assume the URL above is appropriate? J.D.
Re: Wicket for large user base website
Thanks all for the reply...actually I haven't looked into the hardware as I am in middle of application development. Just going through various forums, people were recommending Wicket for dekstop apps as it is statefull framework. But as I can see various Wicket websites with high traffic, I think there is nothing to worry about. Also, memory efficiency can be achieved by making some pages stateless. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-for-large-user-base-website-tp4613283p4616576.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: WicketStuff HTML validator 1.5-rc3 released
Any updates coming to this component soon, as it don't seem to be in the repo at https://github.com/wicketstuff? Are there any other good alternatives to this component for validating on the fly in wicket? Thanks for any hints! /Northar -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketStuff-HTML-validator-1-5-rc3-released-tp3478279p4616629.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