Make FeedbackPanel occupy zero space when having no messages?

2010-03-18 Thread David Chang
Hello, I am playing with FeedbackPanel. I put it in a page like this:

div wicket:id=feedbackHolder /

I notice that when having no messages, it always take up some space.

How can I make FeedbackPanel occupy zero space when having no messages?

Wicket way? or CSS? 

Any help is really appreciated.

Regards.



  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Make FeedbackPanel occupy zero space when having no messages?

2010-03-18 Thread Matthias Keller

Hi

Just create your own FeedbackPanel subclass and add:

public boolean isVisible () {
return anyMessage();
}

Matt

On 2010-03-18 14:32, David Chang wrote:

Hello, I am playing with FeedbackPanel. I put it in a page like this:

div wicket:id=feedbackHolder /

I notice that when having no messages, it always take up some space.

How can I make FeedbackPanel occupy zero space when having no messages?

Wicket way? or CSS?

Any help is really appreciated.





smime.p7s
Description: S/MIME Cryptographic Signature


SV: Make FeedbackPanel occupy zero space when having no messages?

2010-03-18 Thread Wilhelmsen Tor Iver
 How can I make FeedbackPanel occupy zero space when having no messages?

Override isVisible() to test if there are any messages to show, and call 
setOutputMarkupPlaceholder(true);

- Tor Iver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org