This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Original status: 5-Cause Known; Suggested Status: NEW Original Target Release: mako_dev; Suggested Target Milestone : Dev Description: Reproducable in RC This is from the case in Connect tool for Creator 2 EA 2. The case number is : JSC2-0356 Setting a requiredIndicator attribute on a label yield different results : - with for attribute, the required icon disappears - without the for attribute, the required icon show up but you don't have the click on label to focus the field functionality. Cause: The html code generated with a for attribute specified does not use a label tag, but a span. Correction: Generate a label tag instead of a span when for and requiredIndicator attributes are specified on the label. ERROR MESSAGES ---------------------- No error message STEPS TO DUPLICATE ------------------------- Simply add a label, a field, set the label as required (the icon will appears on the preview) and set the for attribute of the label to the field (the icon will disappears). WORKAROUNDS ------------------- Can manually code the label, but that isn't a very good JSF habit. Evaluation: When the label component emits the required icon, it makes the image element a child of the same span element that wraps the rendered label text. This prevents the designer from recognizing the element span that should be made inline editable. Workaround: Edit label in property sheet.