I'm not very fond of replacing the model object, but I guess sometimes
it is the only or the better choice. I do not know your application,
but I guess I would go for a single model which contains all form
component, whether set visible or not. And on submit propagate the
information into proper businsess object if applicable. But of course
that is only a suggestion and there are possible more approaches to
it.

Juergen

On 8/23/05, Anders Peterson <[EMAIL PROTECTED]> wrote:
> Thanks for answering!
> 
> This is the route I've taken, but when/where/how do I create the models?
> 
> Should I create the model in the initModel method - I trust it is not
> called as long as the component is invisible.
> 
> Is replacing a model's object a "normal" thing to do?
> 
> /Anders
> 
> Juergen Donnerstag wrote:
> > You could use setVisible(true/false). Create your markup and panel
> > class with all the different data, assign a wicket:id to all tags to
> > be either visible or not and control visibility by your java code.
> >
> > Juergen
> >
> > On 8/23/05, Anders Peterson <[EMAIL PROTECTED]> wrote:
> >
> >>Here's a more specific case...
> >>
> >>A page conatins a panel. That panel should display different data
> >>depending on what the user does/selects in the main page, and initially
> >>there is nothing to display.
> >>
> >>How is something like this intended to be done? Is there an example of this?
> >>
> >>/Anders
> >>
> >>Anders Peterson wrote:
> >>
> >>>Hi,
> >>>
> >>>How do I update reusable panels that make up part of a page?
> >>>
> >>>Do I get a hold on the appropriate models and call setObject?
> >>>
> >>>Ideally (sub) components should know how to update themselves, but then
> >>>it needs a binding/reference to some external (parent) object. How is
> >>>this supposed to be done, or what's a good pattern to follow?
> >>>
> >>>/Anders
> >>
> >>--
> >>http://ojalgo.org/
> >>
> >>Mathematics, Linear Algebra and Optimisation with Java
> >>
> >>
> >>-------------------------------------------------------
> >>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
> >>
> >
> >
> >
> > -------------------------------------------------------
> > 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
> 
> 
> --
> http://ojalgo.org/
> 
> Mathematics, Linear Algebra and Optimisation with Java
> 
> 
> -------------------------------------------------------
> 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
>


-------------------------------------------------------
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