Hi Jeremy,

That sounds nice. I think this can be used to implement the wicket:for attribute (to automatically set the 'for' attribute on 'label' tags) in a reasonably elegant way. Though this might not be what you had in mind :)

Regards,
    Erik.



Op 19-02-11 04:17, Jeremy Thomerson wrote:
What does everyone think about the following patch [1] to add two methods to
IBehavior?  Obviously, it's not added directly to IBehavior since that would
be a breaking API change.  It's added to a sub-interface that can optionally
be implemented by IBehaviors and is implemented by AbstractBehavior by
default.

It's for the purpose of allowing behaviors to contribute to things like the
visibility and enabled status of a component, which they can't currently do
in beforeRender because that happens during the render cycle, at which time
such changes are not allowed.

[1] - http://mysticpaste.com/view/8231


--
Sent from my SMTP compliant software
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


Reply via email to