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 93876 - While importing pages convert id in the javascript also if needed
Summary: While importing pages convert id in the javascript also if needed
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ potingwu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-01 21:57 UTC by bugbridge
Modified: 2007-02-01 21:57 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2007-02-01 21:57:03 UTC
Original status: 5-Cause Known; Suggested Status: NEW


Original submitter: wjprakash

Description:
This is a request from forum customer.

When an HTML page is auto-converted to JSF by the IDE, if there are any elements
with ':' or '-' characters in their "id" attribute, these are changed to use '_'
instead. I had an img element in my page, which was converted to h:graphicImage
and its id was changed as above.

However, the page also had javascript statements that referenced this id, these
were left unchanged. It would be nice if the IDE could scan for js statements
such as "getElementById" and replace the id string here as well.

Evaluation:
Passing to project where the impl is now.

Evaluation (Entry 2):
NetBeans treats Javascript inside the jsp file as pure text. I.e., no ident, no
code-compleation, ...

It's NetBeans limit that has never been implemented.

Evaluation (Entry 3):
This is NB_BUG, please change the component/sub-component appropriately.