Oh, the difference is that cdapp doesn't embed the cd's in a form. But
just putting the cd listview in a row should be enough to have that work.
Eelco
Eelco Hillenius wrote:
Nick Heudecker wrote:
I'm sure this has been explained before, but it's not clear to me.
Let's say that I have a Track object, which has a List of Pricing
objects. When the user is creating a new Track, the Pricing objects
will be null, but I want to allow the user to create multiple Pricing
objects at once, using DHTML to create the new form elements.
How does Wicket handle variable numbers of form elements?
Ideally, the same page will work when editing an existing Track. Then
the question is: how do I make the current list of Pricing objects
available to the form? Use a BoundCompoundPropertyModel? A ListView?
Yep. You should use a ListView (which you can use for anything that
iterates). For each list item, create a model for your business object.
Did you check out cdapp? We'll make a release of it later this week,
but for now you could check out from CVS:
https://sourceforge.net/cvs/?group_id=134391, it's in project
wicket-contrib-examples.
The cdapp example does a very similar thing to what you want (unless I
misunderstand you;))
Eelco
Thanks for your help.
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user