This content has been marked as final.
Show 1 reply
-
1. Re: s:decorate and aroundInvalidField facet
lvhoutte.lvhoutte.hotmail.com Mar 11, 2010 1:54 PM (in response to johndoe)Yes, it is possible. Try to use a border as error styleclass:
<f:facet name="aroundInvalidField"><s:span styleClass="errorborder"/></f:facet>
and in the css:
.errorborder { border: 1px solid red; }
This worked fine for me in IE6, however the result is quite poor when using it in boxed areas such as a panelGroup. The red box is kind of hidden behind the field it has to decorate. You can get is visible by increasing the number of pixels of the border, but this is not very elegant. Therefore, I myself end up using an asterix behind the decorated field (which is not really what you asked for).
Good luck!