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 246172 - Netbeans not recognizing JSF composite components on .xhtml files.
Summary: Netbeans not recognizing JSF composite components on .xhtml files.
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-31 18:56 UTC by rapito
Modified: 2016-07-07 08:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (58.66 KB, text/plain)
2014-07-31 18:56 UTC, rapito
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rapito 2014-07-31 18:56:31 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.7.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Comment 1 rapito 2014-07-31 18:56:34 UTC
Created attachment 148451 [details]
IDE log
Comment 2 rapito 2014-07-31 18:58:30 UTC
Netbeans is not recognizing JSF composite components on .xhtml files after last update. Getting annoying error "No library found for namespace http://java.sun.com/jsf/composite/components".
Comment 3 Martin Fousek 2014-08-01 07:57:45 UTC
Sorry it works well to me under common circumstances in NB8.0. Please could you specify closer your projects setup (maven/ant? web project?). Couldn't you attach sample project where it doesn't work to you or steps when it stops working?

Thanks.
Comment 4 rapito 2014-08-01 12:32:43 UTC
(In reply to Martin Fousek from comment #3)
> Sorry it works well to me under common circumstances in NB8.0. Please could
> you specify closer your projects setup (maven/ant? web project?). Couldn't
> you attach sample project where it doesn't work to you or steps when it
> stops working?
> 
> Thanks.

Okay here:

I have a maven web project and I'm using JSF RI 1.0.0.0_2-0-2 for Weblogic 10.0.0.

After the IDE asked me for an update on 7.4 (and I updated it) I couldn't use it anymore so I downloaded 8.0 and updated it, and I'm having the same issue.

I've tried creating a new maven web project and adding JavaServer Faces Framework and the server Library 1.0.0.0_2-0-2. When I tried to refactor a selection on an .xhtml file to a new composite component, There's an error notice on the bottom of the "Insert Component" window that says "Not JSF 2.0" (even though it is, kind of) that won't let me continue.

Everything worked ok before the update. Also on my original project I have three WebPages folders after the update, not sure why...
- Web Pages (WEB-INF)
- Web Pages (resources)
- Web Pages
Comment 5 Martin Fousek 2014-08-04 06:50:19 UTC
Thanks for additional steps, now I'm able to reproduce your issue. I'm going to take a look on that whether we could fix that into the patch.
Comment 6 Martin Fousek 2014-08-04 11:12:44 UTC
Hmm, there doesn't seem to be quick fix which we could include into the ongoing patch release, sorry. I'm targeting this issue to the next release.

In the meantime, as a workaround, you can include this dependency to your pom.xml which will resolve your troubles now:
<dependency>
  <groupId>com.sun.faces</groupId>
  <artifactId>jsf-api</artifactId>
  <version>2.2.7</version>
</dependency>
Comment 7 rapito 2014-08-04 15:12:35 UTC
Thanks a lot!
Where can I see upcoming release dates and versions?
Comment 8 Martin Fousek 2014-08-05 06:13:47 UTC
(In reply to rapito from comment #7)
> Thanks a lot!
> Where can I see upcoming release dates and versions?

Here are dates for NB801 which is too soon for fixing this:
http://wiki.netbeans.org/NetBeans_801

AFAIK, further plan doesn't exist yet - you can check wiki.netbeans.org wikis.
Comment 9 Martin Balin 2016-07-07 08:54:00 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss