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 96987 - TextArea doesn't use label for message box text
Summary: TextArea doesn't use label for message box text
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Dongmei Cao
URL:
Keywords:
Depends on:
Blocks: 96962
  Show dependency tree
 
Reported: 2007-03-01 18:33 UTC by David Botterill
Modified: 2007-10-08 19:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
shows messages of textfields with labels and textarea with separate label. (32.17 KB, image/png)
2007-03-01 18:35 UTC, David Botterill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Botterill 2007-03-01 18:33:13 UTC
I have to use a separate label component for a textarea because I want the label
above the textarea and not beside it.  I've set the "required" attribute on the
textarea but when the textarea gets validated, if it's blank the textarea item
id is used in the message group and not the separate label text.

Steps to reproduce:

1. Add a textfield, type a label, and set to required.
2. Add a textarea and set to required.
3. add a label, set the "for" to the textarea.
4. Add a message group.
5. Run the web app and push the button.
6. Notice the message group shows the label of the textfield but the item id of
the textarea.

This is really messy when you have a textarea buried inside multiple
containments in a form and you get something like this:

form1:center_container:page_border:fixed_contentarea:fixed_contextbox:bottomPanel:txtSummary:
Validation Error: Value is required.

Please see the attached snapshot.
Comment 1 David Botterill 2007-03-01 18:35:06 UTC
Created attachment 39065 [details]
shows messages of textfields with labels and textarea with separate label.
Comment 2 Dongmei Cao 2007-10-08 18:29:06 UTC
I'll take a look
Comment 3 Dongmei Cao 2007-10-08 19:39:37 UTC
The fix needs to be in the component. Filed woodstock bug https://woodstock.dev.java.net/issues/show_bug.cgi?id=814