hi,
if no ajax is involved, i suggest reading [0] about wicket:enclosure.
this should do the trick.

cheers,
  gerolf

[0] http://www.systemmobile.com/?page_id=253

On Tue, Feb 26, 2008 at 10:47 AM, Kaspar Fischer <[EMAIL PROTECTED]>
wrote:

> I have just started looking at Wicket and have a basic question.
>
> My page displays an article with meta-data from the database. I
> display the
> meta-data in a box (a <div>...</div>). If no meta-information is
> present,
> I don't want the box (the <div>) to appear at all. Is there a generic,
> Wicket-style way for achieving this?
>
> I struggle with two things here:
>
> * How to do the conditional markup? (For instance, if the article has no
>   author meta-information, I don't want to show "Authors: " in the
> box.)
> * How to avoid empty boxes? (The box component would have to buffer its
>   markup and check, in the end, whether it is nothing but whitespace.)
>
> Thanks for any pointers.
> Kaspar
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to