Announcement Announcement Module
Collapse
No announcement yet.
How to use cssErrorClass ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to use cssErrorClass ?

    I have a jsp that goes like this:

    <label for="userName">User Name:</label>
    <form:input path="userName" cssClass="somestyle" cssErrorClass="errorStyle"/>

    Now, if the user does not enter the user name, it is validated and comes back to the same page, but i want the label "User Name:" be displayed in the style of cssErrorClass. I dont see a <form:label> tag, is there any other way to achieve this behaviour ?

    thanks for help.

  • #2
    Hi vasya10

    There is a form label tag.

    (Although there is no way at present to 'link' a label tag to its attendant input element.)

    Cheers
    Rick

    Comment

    Working...
    X