Re: interesting issues with Wicket and Javassist

2012-06-25 Thread Martin Grigorov
Hi, On Fri, Jun 22, 2012 at 6:36 PM, Andrew Geery andrew.ge...@gmail.com wrote: I've recently run across a couple of issues where a proxy'ed class (using Javassist from Hibernate) has messed up Wicket.  When a class is proxy'ed by Javassist, the class you have (say, Person) isn't really a

Re: logout

2012-06-25 Thread Tom Eugelink
Ok. The actual problem I have is that wicket auth keeps logging in automatically. This is a side effect of a.o. BASIC authentication (not sure if that is used in this case, but the behavior is similar) which sends the login credentials with every request, even if you have logged out in the

Re: logout

2012-06-25 Thread Martin Grigorov
wicket-auth-roles is actually an example of IAuthenticationStrategy and IAuthorizationStrategy interfaces. Most of the people that use it actually just see how it works and copy/paste the related parts of it and later extend them with their specific business logic. afaik it uses rememberMe cookie

Re: logout

2012-06-25 Thread Stefan Moises
Hi Tom, we are using wicket auth and we can only logout if we use a dedicated Signout page (with template) - if we only logout (and e.g. try to forward right to the homepage with setResponsePage()) it doesn't work and the user always stays logged in as you describe it. We'd love to get rid of

Re: logout

2012-06-25 Thread Tom Eugelink
Ok. I also have a logout page, call signout in the before-render, and then use the exception thing to immediately forward to another page. Maybe actually showing the logout page is the trick (better a page and autologin all the time). What do you do on the logout page to force the logout? Tom

Re: Unnecessary 302 redirects in Wicket 1.5

2012-06-25 Thread sylvain
Hi, In order to avoid redirect, we add this code in our application class : setPageRendererProvider(new IPageRendererProvider() { @Override public PageRenderer get(final RenderPageRequestHandler context) {

modify Date in model from 3 inputs?

2012-06-25 Thread Dan12321
Hi, I have got 3 html elements: day, month, year. In model class I have got attribute java.util.Date sameDate;. This date should be created from elements day, month, year. I would like to ask, if there is possible: when I change input or select, I want to change Date in model. Is it possible?

Re: modify Date in model from 3 inputs?

2012-06-25 Thread Richard W. Adams
It is possible, and very common. In fact, if you set up your model correctly, you don't have to change it at all. Wicket does it for you. From: Dan12321 wee...@centrum.cz To: users@wicket.apache.org Date: 06/25/2012 11:47 AM Subject:modify Date in model from 3 inputs? Hi,

Re: modify Date in model from 3 inputs?

2012-06-25 Thread Sven Meier
See org.apache.wicket.extensions.yui.calendar.TimeField for inspiration. Sven On 06/25/2012 06:47 PM, Dan12321 wrote: Hi, I have got 3 html elements: day, month, year. In model class I have got attribute java.util.Date sameDate;. This date should be created from elements day, month, year.

Wicket Page constructor getting called twice

2012-06-25 Thread Ian Marshall
Hello All, My web application uses the default request cycle render strategy IRequestCycleSettings.RenderStrategy.REDIRECT_TO_BUFFER. An external web site calls a web page on my web application using a URL with page parameters (all of which I set before I hand over to the external web site). I

Re: Wicket Page constructor getting called twice

2012-06-25 Thread Nick Heudecker
I've only seen this type of behavior if I have an empty img src=/ element or something similar. On Mon, Jun 25, 2012 at 11:45 AM, Ian Marshall ianmarshall...@gmail.comwrote: Hello All, My web application uses the default request cycle render strategy

Re: Wicket Page constructor getting called twice

2012-06-25 Thread Martin Grigorov
Right, img src=/ can lead to such behavior. Newer versions of Wicket (1.5+) have a preconfigured IResponseFilter which notifies you about such problem in DEV mode. You can also use CSS like: a[src = ] {color:red;} to see them easily. No matter what is the configured render strategy Wicket will

Re: Check component onSubmit behavior selects all

2012-06-25 Thread praslisa
I have the exact same issue. Can anyone help? As soon as I load the page I get all the checks checked. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Check-component-onSubmit-behavior-selects-all-tp4650124p4650221.html Sent from the Users forum mailing list archive

Re: Check component onSubmit behavior selects all

2012-06-25 Thread praslisa
I have the exact same issue. Can anyone help? As soon as I load the page I get all the checks checked. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Check-component-onSubmit-behavior-selects-all-tp4650124p4650222.html Sent from the Users forum mailing list archive

Re: guestbook application with database update

2012-06-25 Thread Jeremy Thomerson
All list moderators do. I just emails to users-unsubscribe-jaffa.wify= gmail@wicket.apache.org and users-deny-subscribe-jaffa.wify= gmail@wicket.apache.org which I think will block this guy. More info: http://www.apache.org/dev/committers.html#problem_posts -- Jeremy Thomerson