Stripes

Provide support for rendering required fields in a different style or with a marker using the action bean's validation metadata.

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Tag Library
  • Labels:
    None

Description

Typically, required fields in an HTML form are rendered differently (appended with an red asterisk or with a different CSS style) in order to warn the user in advance.

This should be done by the tag library dynamically using the action bean's validation metadata.

It could be implemented in a number of ways; for instance, all input tags could accept a "requiredFiledStyle" or, more conveniently, that style could be configured centrally in the web application descriptor; the tag library could be expanded with a <stripes:ifFieldRequired> tag nestable inside any input tag that would render its body; the label tag could add an asterisk by default if the field is required , etc.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    24/Jun/10 9:42 AM
    Updated:
    24/Jun/10 9:42 AM