Java Reference
In-Depth Information
Notice some of the labels and components are not completely visible in the design
window. This shouldn't be a concern since they will be displayed properly in the
rendered page.
Notice how now each error message matches the label of the appropriate
component. Also notice that since visual web JSF automatically adds an icon to each
label corresponding to a component that failed validation, vertical alignment is
temporarily lost whenever there are validation errors.
Grouping Error Messages with the Message Group
Component
Sometimes it is desirable to display all error messages together (usually at the top
or bottom of the page), instead of next to each component. Visual JSF includes the
Message Group component, which can be used for this purpose.
Using this component is very simple, we only need to drop it into the appropriate
location on our page. After doing this and removing individual Message
components, our design window now looks like this:
 
Search WWH ::




Custom Search