On 11/16/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
> this also can be completely build into form itself.
> But then i think a separation looks/smells better..
> But i am open to any idea's !

For me, the problem arises when you have a hierarchical model, and
when you can edit in the same time values at multi-levels.

For example (keeping it "simple") :
a Monkey holds bananas.
The page displays the list of Monkeys, with editable field for the age
(numeric), and a label for the name (non editable) of the Monkey.
    And for each Monkey, its bananas are displayed, with a description
and weight field for each banana.

The page also displays a "New Monkey" button that creates a new
Monkey, grabs its name from a textfield (must not be null) and adds
the new monkey (with default age and no bananas) at the end of the
monkey list.

The page also displays a "New banana" per monkey, and a "Delete
banana" for each banana of each monkey.

And finally, the page has a global submit button.

Use cases :
uc1 :I want the user to be able to create a new monkey without
triggering the validation and model update of the other monkeys and
bananas fields.
uc2 : When the user creates a monkey, the monkey name textfield is
used to create some identifier for the monkey. This field is only
needed for the creation of a new monkey : it is "Required" when
clicking the "New Monkey" button. The "name textfield" is only
concerned by the "New banana" button, and does not have to validate
itself and block the process if empty, when the user presses the
global submit button.

What is really needed here is many multiple unit of work forms in the
same page, but contrary to the behaviour of the HTML <form> element, I
don't want to loose the user input on the other "forms".

Not sure if it is clear, if not, I can maybe write a template html
page to show the page I'm talking about.

Please note that here I don't address the "whole" problem as suggested
by Matej, since my scenario didn't describe a "form" that may span
many Wicket pages ...

--
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&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to