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 wan
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 on
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 wrote:
> Hi all,
>
> I was wondering if there is a way to change a p
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 wrote:
> 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
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 on