I would do this with JavaScritpt
div class=PlaceHolder
input type=text wicket:id=userName /
/div
with a behaviors attached to to userName that whenever the field has
errors it finds a parent with class PlaceHolder and adds Error
class. And remove it if not. No need for a component for
and behavior
parameter:
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Elegant-way-to-modify-parent-component-tag-if-child-has-errors-tp4661983p4661985.html
Sent from the Users forum mailing list archive at Nabble.com
would be static field for both child component and behavior
parameter:
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Elegant-way-to-modify-parent-component-tag-if-child-has-errors-tp4661983p4661985.html
Sent from the Users forum mailing list archive