I would just override isVisible() and set it to return true only when
there are no pricing objects.

On 7/19/05, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> Thanks. I'll check it out after I finish playing golf. :)  I have
> another associated question.
> 
> If there aren't any Pricing objects for a given Track, I want to put a
> message in the page like "You don't have pricing setup yet." The
> problem is that if I put that span tag in the markup:
> 
> <span wicket:id="noPricingMessage">Test</span>
> 
> And don't add the object to the page, Wicket will throw an exception.
> Will calling setVisible(false) get me around this?
> 
> 
> On 7/19/05, Eelco Hillenius <[EMAIL PROTECTED]> 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_idt77&alloc_id492&opclick
> _______________________________________________
> 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_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to