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 94058 - hyperlink should not accept static text and image as children.
Summary: hyperlink should not accept static text and image as children.
Status: RESOLVED INVALID
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Pegah Sarram
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-02 19:57 UTC by bugbridge
Modified: 2007-07-11 22:08 UTC (History)
1 user (show)

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-02 19:57:24 UTC
Original status: 1-Dispatched; Suggested Status: NEW




Description:
Currently hyperlink can accept static text and image as its children.
To reproduce:
1. drag and drop a hyperlink from basic section in  palette window to the design
window.
2. drag and drop a static text from basic section in  palette window into the
hyperlink.
3. drag and drop a image from basic section in  palette window into the hyperlink.
observe that both static text and image components are accepted as hyperlink's
children.
Comment 1 Pegah Sarram 2007-07-11 22:08:56 UTC
The component works as designed. Hyperlink can accept text and image as children. In facet, the TLD docs from Project
Woodstock has an example that shows hyperlink does support those children.
 
Example 3: Using the body of a hyperlink to render text

This example shows how to use other components as children of the hyperlink tag.
<webuijsf:hyperlink id="hyperlinktest3" url="http://www.sun.com">
   <webuijsf:image url="myyahoo.gif" />
   <webuijsf:staticText text="more text" />
</webuijsf:hyperlink>