Problem with stateless login page after moving from Wicket 1.5-RC5.1 to 1.5.0

2011-09-16 Thread Florian B.
Hi,

I encountered a strange behavior with a stateless login page after moving
from Wicket 1.5-RC5.1 to 1.5.0. 

To assure that the login page is stateless I'm using the StatelessChecker
class. The problem occurs when the login fails because the authenticate()
method of the AuthenticatedWebSession class returns false. When this happens
the StatelessChecker throws an IllegalArgumentException and with the
following message:

/Last cause: '[Page class =
com.company.app.backend.common.web.page.LoginPage, id = 1, render count =
1]' claims to be stateless but isn't. Possible reasons: no stateless hint,
statefull behaviors/

After switching back to Wicket 1.5-RC5.1 everything works as expected and
the StatelessChecker doesn't throw an exception. 

Might this be a bug in one of the two versions (1.5-RC5.1 vs. 1.5.0)? 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-stateless-login-page-after-moving-from-Wicket-1-5-RC5-1-to-1-5-0-tp3817801p3817801.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: Problem with stateless login page after moving from Wicket 1.5-RC5.1 to 1.5.0

2011-09-16 Thread Martin Grigorov
WICKET-3991

On Fri, Sep 16, 2011 at 1:58 PM, Florian B. florian.bernst...@gmail.com wrote:
 Hi,

 I encountered a strange behavior with a stateless login page after moving
 from Wicket 1.5-RC5.1 to 1.5.0.

 To assure that the login page is stateless I'm using the StatelessChecker
 class. The problem occurs when the login fails because the authenticate()
 method of the AuthenticatedWebSession class returns false. When this happens
 the StatelessChecker throws an IllegalArgumentException and with the
 following message:

 /Last cause: '[Page class =
 com.company.app.backend.common.web.page.LoginPage, id = 1, render count =
 1]' claims to be stateless but isn't. Possible reasons: no stateless hint,
 statefull behaviors/

 After switching back to Wicket 1.5-RC5.1 everything works as expected and
 the StatelessChecker doesn't throw an exception.

 Might this be a bug in one of the two versions (1.5-RC5.1 vs. 1.5.0)?

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Problem-with-stateless-login-page-after-moving-from-Wicket-1-5-RC5-1-to-1-5-0-tp3817801p3817801.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: Problem with stateless login page after moving from Wicket 1.5-RC5.1 to 1.5.0

2011-09-16 Thread Florian B.
Ah thanks for the information. I didn't look in the bug tracker.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-stateless-login-page-after-moving-from-Wicket-1-5-RC5-1-to-1-5-0-tp3817801p3817891.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