You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by pureza <pu...@gmail.com> on 2014/10/17 17:26:17 UTC

Stateful StatelessForm works most of the time. How to make it crash?

Dear Wicket users,

I believe I have found the cause of a long standing issue in my application.
Basically, a form would submit with everything set to null or the default
values even when the user filled in all the information. The problem is that
this only happened once in a while and I was never able to reproduce it, so
I couldn't figure out what was wrong.

However, today I was looking at that code to reuse it somewhere else and
something odd caught my attention. It turns out that my form is a
StatelessForm when it shouldn't be. I don't remember why I made it like
that, but I think it was because I was still learning Wicket at the time.
Anyway, it always worked for me and for 99.9% of the users, so I was never
able to identify the cause.

I tried StatelessChecker and indeed it complains that the form is stateful.
However, that still doesn't guarantee that this mistake is the cause of my
problem. Can you think of any way to exploit this erroneous StatelessForm
declaration so that it doesn't behave correctly?

Thanks,

Luis

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateful-StatelessForm-works-most-of-the-time-How-to-make-it-crash-tp4667977.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Stateful StatelessForm works most of the time. How to make it crash?

Posted by pureza <pu...@gmail.com>.
Sorry, I can't. It is way too much code and, as I said, I can't reproduce the
issue, so if I simplify the code it might go away.

I was just wondering if there is a simple way to make a
stateful-StatelessForm to produce the wrong behavior.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateful-StatelessForm-works-most-of-the-time-How-to-make-it-crash-tp4667977p4667988.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Stateful StatelessForm works most of the time. How to make it crash?

Posted by Francois Meillet <fr...@gmail.com>.
Can you post your code ?

François Meillet
Formation Wicket - Développement Wicket





Le 17 oct. 2014 à 17:26, pureza <pu...@gmail.com> a écrit :

> Dear Wicket users,
> 
> I believe I have found the cause of a long standing issue in my application.
> Basically, a form would submit with everything set to null or the default
> values even when the user filled in all the information. The problem is that
> this only happened once in a while and I was never able to reproduce it, so
> I couldn't figure out what was wrong.
> 
> However, today I was looking at that code to reuse it somewhere else and
> something odd caught my attention. It turns out that my form is a
> StatelessForm when it shouldn't be. I don't remember why I made it like
> that, but I think it was because I was still learning Wicket at the time.
> Anyway, it always worked for me and for 99.9% of the users, so I was never
> able to identify the cause.
> 
> I tried StatelessChecker and indeed it complains that the form is stateful.
> However, that still doesn't guarantee that this mistake is the cause of my
> problem. Can you think of any way to exploit this erroneous StatelessForm
> declaration so that it doesn't behave correctly?
> 
> Thanks,
> 
> Luis
> 
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateful-StatelessForm-works-most-of-the-time-How-to-make-it-crash-tp4667977.html
> Sent from the Users forum mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>