0 Replies Latest reply on Sep 11, 2009 2:34 PM by Andy Deighton

    How to decorate a rich:calendar input field

    Andy Deighton Newbie
      Hi all,

      Does anyone know how I can get the input field of a rich:calendar to get decorated red when a validation error occurs?

      All my other fields get the red decoration (because the form is surrounded by s:validateAll).
      I've surrounded my calendar with a s:decorate tag and even added a for=.. attribute to that tag, but to no avail. I get an error message in my rich:messages section, however, so I know validation is definitely taking place.

      I also noticed that at render time, the input field of the calendar gets an ID of the sort "<name of calendar>InputDate". Maybe this means that decoration can't take place because the ID is different from the overall calendar field?

      Thanks in anticipation..

      Andy