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.

Bug 94757 - Setting a requiredIndicator attribute on a label yield different results
Summary: Setting a requiredIndicator attribute on a label yield different results
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Gregory Murphy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-06 20:27 UTC by bugbridge
Modified: 2007-02-06 20:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2007-02-06 20:27:25 UTC
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.