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 137433 - Namespace isn't added if component is added to a page
Summary: Namespace isn't added if component is added to a page
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: _ potingwu
URL:
Keywords:
: 144218 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-17 14:05 UTC by Roman Mostyka
Modified: 2008-08-19 14:07 UTC (History)
0 users

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 Roman Mostyka 2008-06-17 14:05:54 UTC
1. Create web application with "JSF" framework.
2. Open JSP editor.
3. Remove namespace for html components.
4. DnD JSF Form component from JSF part of Palette.

Result: Following code is added:
"<f:view>
<h:form>
</h:form>
</f:view>"

But namespace for html components isn't added.
In "Editor for JSP File: Code Completion" part of http://wiki.netbeans.org/JsfEditorSupport is written:
"The namespace will automatically be imported into the root tag when you drag-n-drop a component or by using the code
completion to add one."
I added component, which contains html component, but namespace isn't added.
Comment 1 _ potingwu 2008-06-17 17:24:27 UTC
I believe we don't "fix" this import automatically because we default set the namespace and assume it will be there. (P4)

The spec says about the IDE will automatically add namespace for "http://java.sun.com/jsp/jstl/core" and
"http://java.sun.com/jsp/jstl/sql" because they are not default been added.

BTW, these 2 palettes are coming from "JSF Pages from Entity Classes" area.
Comment 2 Matthew Bohm 2008-06-18 01:52:48 UTC
See findJstlPrefix and findSqlPrefix in org.netbeans.modules.web.core.palette.JSPPaletteUtilities for an example.
Comment 3 _ potingwu 2008-08-14 22:57:48 UTC
I will fix this as a general JSF Palette feature.
Comment 4 _ potingwu 2008-08-14 22:58:09 UTC
I'm wait for the approval of adding web.jsf module to the friend-package of org.netbeans.modules.web.jsps.parserapi.
Comment 5 _ potingwu 2008-08-18 18:59:03 UTC
*** Issue 144218 has been marked as a duplicate of this issue. ***
Comment 6 _ potingwu 2008-08-18 22:53:25 UTC
Fixed in the trunk:
    changeset 2b48f7cc6c89 in main
    details: http://hg.netbeans.org/main?cmd=changeset;node=2b48f7cc6c89
Comment 7 Quality Engineering 2008-08-19 06:11:29 UTC
Integrated into 'main-golden', available in build *200808190201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/2b48f7cc6c89
User: potingwu@netbeans.org
Log: Fix Issue#137433, Namespace isn't added if component is added to a page.
Comment 8 Roman Mostyka 2008-08-19 14:07:27 UTC
Verified with build 080819.