I have a FormComponentPanel (called EntityLink) that holds an image, a
hyperlink (a BookmarkablePageLink) and a hidden text field holding the
serializable value of the reference.
Initially I want the form is in read-only mode and so I have disabled
all of its form components. However, I'd
Hi, you can override the isEnable method and implement your rule, like:
new BookmarkablePageLink
{
boolean isEnabled() {
return form.getState() == allowedState;
}
}
or you can add the link higher in the component hierarchy, don't as an form
child.
On Mon, Apr 19, 2010
Hi Pedro,
That was my first instinct, to override isEnabled(), but it turns out
that it is isLinkEnabled() that gets called, in the onComponentTag()
method (ie when rendering).
So, no joy there.
Any other suggestions, anyone?
Dan
On 19/04/2010 20:41, Pedro Santos wrote:
Hi, you can