I would just create an inner class for the model object:

private static class FormObject {
   public MyObject myDomainObject = new MyObject();;
   public String nextUrl;
}

and then something like:

add(new MyForm("form", new CompoundPropertyModel(new FormObject())));

On 9/7/05, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> I want to provide the user with the option of selecting the next screen they
> go to after a form is processed.  For instance, the user creates object A. 
> There are two likely areas they could go to next: view the summary or create
> a child object of A.  I would like to provide this as a function of the Form
> subclass, like adding a Panel with a selection list with available targets.
>  
>  My problem is I don't understand how to create this Form subclass that
> basically has two models: one for the actual model that's being
> created/edit, and a second for the next page the user should see.  Any
> suggestions or examples?  Thanks.
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to