Markup for Disabled Panels and Pages

2009-07-24 Thread Zhubin Salehi
Hi all, I was wondering if there is a way to change a panel's or page's markup or even class when it is disabled. I have two versions of some of my panels and pages: a XXXViewPanel/Page and a XXXEditPanel/Page. The view-only version has labels instead of dropdown menus and text fields. Based

Re: Markup for Disabled Panels and Pages

2009-07-24 Thread Igor Vaynberg
a couple of ways jump to mind. if all you really want is to swap out markup you can do class mypanel extends panel { String getVariant() { if (!isenabled()) { return disabled; } else {return null;}} } and have mypanel_disabled.html which will be used when the panel is disabled. if you want

Markup for Disabled Panels and Pages

2009-07-23 Thread Zhubin Salehi
Hi all, I was wondering if there is a way to change a panel's or page's markup or even class when it is disabled. I have two versions of some of my panels and pages: a XXXViewPanel/Page and a XXXEditPanel/Page. The view-only version has labels instead of dropdown menus and text fields. Based

Re: Markup for Disabled Panels and Pages

2009-07-23 Thread Fernando Wermus
When it is disabled you might want to set invisible it and set visible the another panel? On Thu, Jul 23, 2009 at 10:24 AM, Zhubin Salehi zhubin.sal...@route1.comwrote: Hi all, I was wondering if there is a way to change a panel's or page's markup or even class when it is disabled. I have

RE: Markup for Disabled Panels and Pages

2009-07-23 Thread Zhubin Salehi
PM To: users@wicket.apache.org Subject: Re: Markup for Disabled Panels and Pages When it is disabled you might want to set invisible it and set visible the another panel? On Thu, Jul 23, 2009 at 10:24 AM, Zhubin Salehi zhubin.sal...@route1.comwrote: Hi all, I was wondering if there is a way