Re: datatable columns shuffle

2009-04-24 Thread alf.redo
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

Re: datatable columns shuffle

2009-04-24 Thread alf.redo
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

Re: Datatable columns converter

2009-05-13 Thread alf.redo
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

Re: Application scope vs Singleton

2009-05-15 Thread alf.redo
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:

Re: Application scope vs Singleton

2009-05-15 Thread alf.redo
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

Re: Wicket-auth-roles + EJB 3 (Authentication and Authorization)

2009-05-19 Thread alf.redo
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

Re: user input lost on first form submission

2009-05-22 Thread alf.redo
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:

Re: user input lost on first form submission

2009-05-22 Thread alf.redo
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