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 176992 - No guarantee that facelets descriptors in jsf-impl.jar added to a web project as a library will be used in favour of the glassfish's jsf-impl.jar
Summary: No guarantee that facelets descriptors in jsf-impl.jar added to a web project...
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P1 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-17 05:45 UTC by Marek Fukala
Modified: 2009-11-24 05:17 UTC (History)
4 users (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 Marek Fukala 2009-11-17 05:45:01 UTC
If one adds its own implementation of jsf 2.0 to a web project as a library, in runtime the classes are loaded from this jar instead of the default implementation which comes with the webserver. One would expect that the code completion and other jsf editor features would reflect this as well.

However, this is not true, since if there is more facelets libraries descriptors for one library found on the compile classpath, one of them will be choosen in an undefined way.

This may break the case when one upgrades the mojarra jars by putting freshest binaries to the web project as a libraries. The jsf editor support may not use the descriptors from these newer files.
Comment 1 Marek Fukala 2009-11-18 07:21:08 UTC
fixed in web-main#7558dcf47fe0

A change in QuerySupport from parsing.api had to be done, the fix has been proposed by Vita Stejskal, please review that in the changeset. Thanks.
Comment 2 Marek Fukala 2009-11-18 07:22:38 UTC
QE agreed on this issue being fixed to 6.8
Comment 3 Vitezslav Stejskal 2009-11-18 07:33:21 UTC
The change in QuerySupport looks good.
Comment 4 Marek Fukala 2009-11-18 08:58:59 UTC
*** Bug 177088 has been marked as a duplicate of this bug. ***
Comment 5 Quality Engineering 2009-11-19 03:30:56 UTC
Integrated into 'main-golden', will be available in build *200911190201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/7558dcf47fe0
User: Marek Fukala <mfukala@netbeans.org>
Log: #176992 -  No guarantee that facelets descriptors in jsf-impl.jar added to a web project as a library will be used in favour of the glassfish's jsf-impl.jar
Comment 6 Jindrich Sedek 2009-11-24 05:17:33 UTC
verified.
NetBeans IDE 6.8 RC1 (Build 200911222341)