Thanks to everyone for their comments ....

Igor,

Assuming I use a bean, could you please give me a bit more detail on your
suggestion?
I want the model object of the editor Form to be the newly-created Account,
so that other objects can simply call getModelObject() on the editor like
normal and get the correct (new) value.  Do I simply set the new Account as
the model object of the editor Form?

In onSubmit(), would I code something like the following?

Account accountBean = (Account)getModelObject();  //bean updated with values
from FormComponents

Account newAccount = Account(accountBean );  //copy constructor using bean

setModelObject(newAccount);


RDC



personally i would map the form to a bean, and then in onsubmit()
transfer those properties to an instance of your domain object.

-- 
View this message in context: 
http://www.nabble.com/create-new-model-object-of-a-Form-from-one-of-its-FormComp-values---tp14983110p15004311.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to