feedbackpanel has .anyErrorMessage() and .anyMessage() so you can use those

final FeedbackPanel fb=new FeedbackPanel(...) {
   isvisible() { return anyErrorMessage(); }
}

add(new Label(..) { isvisible() { return fb.anyErrorMessage(); }}

-Igor


On 7/22/06, Alexei Sokolov <[EMAIL PROTECTED]> wrote:
How do I show/hide both of them depending on availability of feedback messages?

Alex


On 7/21/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
you can embed the feedbackpanel in another panel that has the header :)

-Igor


On 7/21/06, Alexei Sokolov < [EMAIL PROTECTED]> wrote:
Hello,

What's the best way to create a feedback panel which has a header, i.e. it looks like this:

Please correct the following problems:
- field a is missing
- field b is missing

The problem is it is not possible to set a header for wicket.markup.html.panel.FeedbackPanel.
Maybe I'm missing something, maybe it's been a long week... Please help.

Alex

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to