Re: datatable columns shuffle
igor.vaynberg wrote: datatable does not support changing columns, something on a todo list to fix in 1.5. for now you can just recreate the datatable itself. Hi Igor, thank you for the answer. In my code I recreate the datatable in the AjaxFallbackLink#onClick method, as you can see in my starting topic. What is the mistake? Thank you again... alf -- View this message in context: http://www.nabble.com/datatable-columns-shuffle-tp23199789p23211966.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
Re: datatable columns shuffle
igor.vaynberg wrote: you need to call replace(userstable) so that your new instance gets put into the component hierarchy. Thank you Igor, I've solved. I post the relevant part of the code that do the trick: add(new AjaxFallbackLink(users_shuffle) { @Override public void onClick(AjaxRequestTarget target) { Collections.shuffle(userColumns); usersTable = new AjaxFallbackDefaultDataTable(users_table, userColumns, userProvider, 20); getParent().replace(usersTable); if (target != null) { target.addComponent(usersTable); } } }); -- View this message in context: http://www.nabble.com/datatable-columns-shuffle-tp23199789p23213845.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: Datatable columns converter
Hi Michael, thank you for your suggestion. what do you think about overriding the AbstractColumn#populateItem() to add a Label to the cellItem and setting up a proper IConverter to that component? bye alf Michael O'Cleirigh wrote: This question came up last week aswell, here is an example of how you to subclass PropertyColumn to convert an integer into an arbitrary string: http://www.nabble.com/Re%3A-How-to-manipulate-values-in-a-data-table--p23413680.html Essentially you wrap the PropertyModel with a custom IModel implementation that does the conversion you want (on each cell). Then you build the DataTable using your custom column implementation. -- View this message in context: http://www.nabble.com/Datatable-columns-converter-tp23502460p23519993.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
Re: Application scope vs Singleton
Hi James, I would like to know what is the difference between a Singleton class with a static accessor method and POJO stored into my WebApplication class (with proper getter). What is the preferred way to set an application scoped object? Thank you again... -- View this message in context: http://www.nabble.com/Application-scope-vs-Singleton-tp23559402p23562038.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
Re: Application scope vs Singleton
Thank you to all for your precious suggestions. My question is not for a real need. Supposing to discard the injection strategy, I would like to know if the cache of an object into my WebApplication class during application startup has the same result if I make this object Singleton (and not store it in WebApplication). Can be some problems about thread-safety or other issue in one case rather than the other? I'm sorry if this seems to be a stupid question... alf -- View this message in context: http://www.nabble.com/Application-scope-vs-Singleton-tp23559402p23563036.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
Re: Wicket-auth-roles + EJB 3 (Authentication and Authorization)
Hi Berry, can you post some code to help me? The tutorial on http://cwiki.apache.org/WICKET/servlet-container-authentication.html doesn't work to me. I receive an error on j_security_check redirection about resource not found (or similar). Thank you alf Barry van Someren-5 wrote: I've decided to try the integration as listed in the Wiki and use container authentication for now. For now it seems to work... -- View this message in context: http://www.nabble.com/Wicket-auth-roles-%2B-EJB-3-%28Authentication-and-Authorization%29-tp22649841p23619776.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
Re: user input lost on first form submission
igor.vaynberg wrote: sounds like the your security redirection is not keeping post params? Hi igor, the problem is that the first form submission AFTER the container redirection is not keeping post params... :confused: -- View this message in context: http://www.nabble.com/user-input-lost-on-first-form-submission-tp23668260p23673022.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
Re: user input lost on first form submission
igor.vaynberg wrote: are you sure the container is not interfering between you pressing the submit button and wicket processing the form input? Hi igor, thank you for your answer. The container redirect the user to a wicket page, the form in this page does not send user input on first submit (the onsubmit method is executed but model are not updated). If I submit the form again, it works. If I make a redirect just after the container redirection it works again (this is the trick I have implemented actually). Thank you for your suggestions... -- View this message in context: http://www.nabble.com/user-input-lost-on-first-form-submission-tp23668260p23673429.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