i agree
For a roundtrip so page to the same page with do something i will build that.
For example a onSelectionChangeListener on a DropDown works now through a normal link (a get request)
And that has to work through the form itself. So it has to submit the form, but don't do anything with it
then call the listener for the selection (so the dropdown) then redisplay the form with the values that where submitted.

That is what i want to support/build. I hope to start with it early next week.

But what matej wants is having a form on one page. Then you go to another to get some other data. Then go back
and then still has the right form data in it. But that shouldn't be submitted to any model or validated.
I personally say. Do that with an "in between" model. And don't do youre validation in "form->model" but in "inbetween model->real model"

I even think that such a in between model where you can add validators to for specific properties and have a special "submit" method on
would be even very nice for the core of wicket.

johan


On 11/16/05, Laurent PETIT <[EMAIL PROTECTED]> wrote:
Hello,

I had some same interrogations as Matej has ...

I'm currently trying to fully reimplement a complex form made in
struts in wicket, and some buttons of the form are there only to
dynamically add elements to a list (doing a roundtrip with the
server), but don't have to trigger the validation stuff.
But that's what's done, and it's a bit annoying.

> Why can't use just use a model for this?

I agree with you, model should be updated, I think at Wicket models as
View models. But the idea of Matej of not immediately storing in the
real model could be a good idea (but not done in the invalid data
field).


What could be great is to register / inform the Form which buttons may
trigger the validators/model updating of the components, and which
buttons may not.

Regards,

--
Laurent


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&opclick
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to