[ http://issues.apache.org/jira/browse/TOMAHAWK-826?page=comments#action_12460284 ] Jeff Bischoff commented on TOMAHAWK-826: ----------------------------------------
Alex, I can't speak to the specifics of using this particular component. However, normally you don't need to use forceId when using the "for" attributes of components from Tomahawk (and other component libraries). Such fields typically use the UIComponent.findComponent() method. [1] A quick look at the source [2] confirms the use of this findComponent method in this component. And yes,as you can see it is in sandbox. Basically, if both components are in the same naming container, than you can just use their simple ids in the for field. Else, you can use a syntax like :MyForm:MySubView:simpleId [1] http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/component/UIComponent.html#findComponent(java.lang.String) [2] http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ifmessage/ > Improve outputLabel component to have a different CSS class in case of an > error > ------------------------------------------------------------------------------- > > Key: TOMAHAWK-826 > URL: http://issues.apache.org/jira/browse/TOMAHAWK-826 > Project: MyFaces Tomahawk > Issue Type: Improvement > Reporter: Alex Savitsky > Priority: Minor > Attachments: HtmlFlaggableLabelRenderer.java > > > Currently, the only visual cue for validation errors is to display validation > messages using <t:messages />. However, quite often there's a different > requirement for error flagging, namely to identify the field labels (e.g., > make them red) if the field has an error. This behavior cannot be achieved > using available controls, and therefore I propose to enhance an existing > Label control with this functionality. All it would have to do is to set a > specified CSS class (and/or CSS style) on a label component, if the field > referenced with the "for" attribute has an error. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira