Juergen Donnerstag wrote:
I'm not very fond of replacing the model object, but I guess sometimes
it is the only or the better choice.
What do you normally do? Having a panel that, in the same page, should
display different things depending on what the user does must be a
common design pattern.
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.
Why not have the business object itself in the CompoundPropertyModel?
/Anders
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
[email protected]
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user