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 like the link to be enabled.
Looking at the source code, Wicket calls isLinkEnabled() to determine
how to render the link; this in turn calls isEnabledInHierarchy(). My
problem is the latter is (correctly returning false) but I want the
former to return true. Both methods are final, however.
I'm obviously tackling this incorrectly - so what would be the Wicket way?
Thanks
Dan
--
Dan Haywood
consultant, mentor, developer, author
agile, ddd, oo, java, .net, sybase
MA, MBCS, CITP, CEng
/mail: /[email protected] <mailto:[email protected]>
/phone: /+44 (0)7961 144286
/book: /Domain Driven Design using Naked Objects
<http://pragprog.com/titles/dhnako>
/blog: /http://danhaywood.com
/linked in: /http://uk.linkedin.com/in/dkhaywood
/twitter: /http://twitter.com/dkhaywood
/sybase: /http://sybtraining.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]