Hello,
I am not sure what is the right way to use forms.
Sometimes its a problem when the form has to be constructed again after
submit and before the callback is called.
Example:
in url I type:
*www.mysite.com/clickPage?p=100*
then in the click page I *create a form*.
based on the url parameter "*p=100*" in the form creation I do:
...
Integer calculatedNumber = dbService.loadData(*p*);
form.add(new *HiddenField*("calculatedNumber", *calculatedNumber*));
...
I dont keep the "p" as a HIDDEN field in the form since I dont need it
anymore. all I care about now, is "*calculatedNumber*"
the user clicked "*SUBMIT"
*now, the calls should go to "*onSubmit*"
but before that, the form needs to be recreated, and it needs "*p*" to do
so.
but "*p*" is *not *there anymore and then I get exception
Am I missing something ?
Thank you
Haim Schindler