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 229639 - Composite components doesn't work well with new xmlns.jcp.org namespace
Summary: Composite components doesn't work well with new xmlns.jcp.org namespace
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 7.3.1
Hardware: All All
: P1 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-13 07:39 UTC by Martin Fousek
Modified: 2013-05-15 07:50 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of error with usage of the new NS (132.83 KB, image/png)
2013-05-13 07:39 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2013-05-13 07:39:07 UTC
Created attachment 134345 [details]
screenshot of error with usage of the new NS

Product Version: NetBeans IDE Dev (Build 20130513-026289bd5832)
Java: 1.7.0_09; Java HotSpot(TM) 64-Bit Server VM 23.5-b02
Runtime: Java(TM) SE Runtime Environment 1.7.0_09-b05
System: Linux version 3.2.0-27-generic running on amd64; UTF-8; en_US (nb)

According to the screenshot, composite component doesn't work well with the new JSF2.2 namespaces places at xmlns.jcp.org. I marked this issue as P2 since switching to new namespaces can cause users error in these composite usages. Vlada, Petre feel free to add keyword and increase priority if you would like to see this fixed in NB731.

The workaround for now is to use legacy namespaces started with "http://java.sun.com/jsf/composite" prefix.
Comment 1 Vladimir Riha 2013-05-13 07:54:13 UTC
This would be good to fix for 7.3.1
Comment 2 Martin Fousek 2013-05-13 12:45:42 UTC
Fixed in web-main #e2f6e8bd0602.

I found out that the library import after the action for component creation is not reliable but it works well in the release73 branch where I tried it too - it's probably related to some trunk's parsing issue.
Comment 3 Martin Fousek 2013-05-13 14:07:00 UTC
Marku please could I ask you for the review? 

The changeset do two things:
- register new namespace for composite libs and the old one uses as an legacy one
- for newly created composite components it completed the namespace according to JSF available on classpath (for JSF2.2+ it uses the new xmlns.jcp.org NS)
Comment 4 Quality Engineering 2013-05-14 02:23:27 UTC
Integrated into 'main-golden', will be available in build *201305132300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e2f6e8bd0602
User: Martin Fousek <marfous@netbeans.org>
Log: #229639 - Composite components doesn't work well with new xmlns.jcp.org namespace
Comment 5 Vladimir Riha 2013-05-14 06:44:57 UTC
verified in trunk


Product Version: NetBeans IDE Dev (Build 201305132300)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.2.0-41-generic-pae running on i386; UTF-8; en_US (nb)
Comment 6 Marek Fukala 2013-05-14 07:24:16 UTC
the change looks fine, thanks.
Comment 7 Vladimir Riha 2013-05-14 07:56:29 UTC
Verified, but status should be changed after verification in 7.3.1, sorry for spam
Comment 8 Martin Fousek 2013-05-14 15:07:57 UTC
Transplanted as releases #d42d0185fdf5.
Comment 9 Quality Engineering 2013-05-15 00:20:05 UTC
Integrated into 'releases', will be available in build *201305142200* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/d42d0185fdf5
User: Martin Fousek <marfous@netbeans.org>
Log: #229639 - Composite components doesn't work well with new xmlns.jcp.org namespace
(transplanted from e2f6e8bd0602a547a000c27d4b704681b41414e9)
Comment 10 Vladimir Riha 2013-05-15 07:50:33 UTC
verified

Product Version: NetBeans IDE 7.3.1 (Build 201305142200)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.2.0-41-generic-pae running on i386; UTF-8; en_US (nb)