If you look at DataTable from wicket-extensions, you see this behavior in practise.
So you have components that can be visible based on whether or not other components contain data: A simplified example: ListView lv = new ListView("list", list) {....} Label empty = new Label("message", "No records found") { public boolean isVisible() {return list.size() == 0;}} Martijn On 8/30/06, Che Schneider <[EMAIL PROTECTED]> wrote: > Hi all, > > I still have a little trouble figuring out how to do certain things with > wicket. > At the moment I am stuck with modelling the typical <c:choose><c:when> > construct. > > For example: > I query a database for a company. If an instance is found I want to > display it's information (name, address, etc). If no instance is found I > want to display just a general message like "No company found". > > How do I accomplish this with wicket? > > Thanks a lot, > Che > > ______________________________ > DISCLAIMER: This e-mail message is intended for the addressee(s) or > authorized recipient only. If you are not the addressee, or an authorized > recipient, you are specifically advised that any use, distribution, > publication, copying or repetition of this information is prohibited. If you > have received this information in error, please notify us immediately (+31 > (0)20 50 25 800) and destroy this message. > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wicket-develop mailing list > Wicket-develop@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-develop > -- Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow -- http://wicketframework.org ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop