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 93061 - When adding a new xmlns to a page fragment, it doesn't become available for code completion until restarting the IDE
Summary: When adding a new xmlns to a page fragment, it doesn't become available for c...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP Parser (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-23 17:10 UTC by rdelaplante
Modified: 2015-09-17 13:10 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 rdelaplante 2007-01-23 17:10:29 UTC
At the top of my page fragment, there was:

<div style="-rave-layout: grid" xmlns:f="http://java.sun.com/jsf/core"
xmlns:webuijsf="http://www.sun.com/webui/webuijsf">

and I changed it to:

<div style="-rave-layout: grid" xmlns:f="http://java.sun.com/jsf/core"
xmlns:webuijsf="http://www.sun.com/webui/webuijsf"
xmlns:h="http://java.sun.com/jsf/html">


When I would type <h:  then press ctrl-space, it would be busy for a while then
tell me no suggestions.  If I tried <f: ctrl-space, or <webui: ctrl-space it
would give me suggestions.   This made me initially think that using the html
tag library wouldn't work in page fragments. Closing and re-opening the file did
not help.  I had to restart the IDE before the new tag library became available
 in code completion.
Comment 1 Dongmei Cao 2007-10-09 01:06:53 UTC
I think it is a project issue. Reassign it  to potingwu to take a look...
Comment 2 Marek Fukala 2007-10-09 09:41:52 UTC
Looks like jsp parser issue.
Comment 3 Jiri Prox 2008-04-11 01:17:35 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 4 Tomas Mysik 2008-06-19 14:31:11 UTC
Is this still reproducible with the latest daily build please? Thanks a lot.
Comment 5 rdelaplante 2008-06-24 05:27:23 UTC
I don't know since I don't use 6.5 yet. It still happens in 6.1 Patch 1.  I'm working with the facelets plugin. Whenever
I add the facelets xmlns attributes to the html element of xhtml files, it doesn't recognize the tags until I restart
the IDE.
Comment 6 Tomas Mysik 2008-06-24 09:20:34 UTC
OK, thanks, I will try to look at it.
Comment 7 rdelaplante 2008-10-14 08:31:14 UTC
I just tried this with 6.5 build 200810041417 and it seems to be fixed. I created a new Visual Web Project, added a new
Visual Web Page fragment, then tried to use code completion on  <h:  which resulted in nothing.   I added 
xmlns:h="http://java.sun.com/jsf/html" to the div just after the existing xmlns:f="http://java.sun.com/jsf/core", then
tried code completion again.  This time it worked.

What did you change to make this work?  Why can't I get code completion for any JSF tags in my Maven 2 web project that
uses JSF and Facelets?  I use .xhtml files and even though I've added xmlns:h="http://java.sun.com/jsf/html" to the html
element, the <h: doesn't do code completion. 
Comment 8 Tomas Mysik 2008-10-14 09:18:44 UTC
In fact, unfortunately I had no time to look at this issue, sorry; but if it's fixed and you can verify it so feel free to
close this issue.
Ad Maven - I'm afraid that you have to file a new issue against Maven project type, it's completely different from
"standard" Web Project and the issue must be probably solved there.

Thanks a lot for reporting.
Comment 9 Tomas Mysik 2008-10-14 09:18:58 UTC
In fact, unfortunately I had no time to look at this issue, sorry; but if it's fixed and you can verify it so feel free to
close this issue.
Ad Maven - I'm afraid that you have to file a new issue against Maven project type, it's completely different from
"standard" Web Project and the issue must be probably solved there.

Thanks a lot for reporting.
Comment 10 Martin Balin 2015-09-17 13:10:08 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.