Bug 200440 - Static tag validation doesn't check for empty for on h:message
Summary: Static tag validation doesn't check for empty for on h:message
Status: NEW
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Cameron Bateman CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-08-17 20:21 EDT by Cameron Bateman CLA
Modified: 2008-02-06 17:57 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron Bateman CLA 2007-08-17 20:21:50 EDT
The for attribute on the h:message must match the id of the tag (component) that the message is tied to.  Having a wrong or missing id can cause hard-to-debug problems on some rt's.

1) The validator should check at a minimum that the id is not empty.  Better would be that it matches against a valid id in the document and provides the same wizard as 2) on a quick fix.

2) The item creation should prompt the user with a list of existing ids to set (or perhaps a list of components and create a new id on one if it doesn't have one).
Comment 1 Cameron Bateman CLA 2007-08-17 20:35:27 EDT
Ditto outputLabel and other tags that for attributes.
Comment 2 Raghunathan Srinivasan CLA 2008-02-06 17:57:01 EST
Deferred due to lack of resources. Contributions from the community would be welcomed.