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 154104 - [facelets] Tag completion fails in Maven projects
Summary: [facelets] Tag completion fails in Maven projects
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-28 15:53 UTC by wvreeven
Modified: 2009-08-04 17:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
pom.xml file with dependencies to RichFaces and Seam (16.25 KB, text/plain)
2008-11-28 15:54 UTC, wvreeven
Details
Example xhtml file for which taglib completion doesn't work. (1.76 KB, text/plain)
2008-11-28 15:55 UTC, wvreeven
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wvreeven 2008-11-28 15:53:35 UTC
Tag libs included in pom.xml are not recognised by NetBeans for code completion. I added dependencies to RichFaces and
Seam which ensures that both the RichFaces and Facelets taglibs are included in the project libraries. When I expand the
richfaces-ui-3.2.2.GA.jar library and look in the META-inf dir, I see the tlds for a4j and rich. 

Next I include the taglib definitions in the xhtml file as can be seen in login.xhtml but when I type

<rich:

and then press CTRL-space I get "No suggestions". This already was the case with NetBeans 6.0 and 6.1 and still is the case.
Comment 1 wvreeven 2008-11-28 15:54:23 UTC
Created attachment 74279 [details]
pom.xml file with dependencies to RichFaces and Seam
Comment 2 wvreeven 2008-11-28 15:55:02 UTC
Created attachment 74280 [details]
Example xhtml file for which taglib completion doesn't work.
Comment 3 Milos Kleint 2008-12-04 11:05:31 UTC
i confirm it doesn't work in 7.0 dailies as well. 
The richfaces jar file is correctly on classpath, so I have no idea what could be wrong. reassigning to general web
support for evaluation. Is there something missing in maven support in terms of recognition of tag libraries? 
Comment 4 Jayashri Visvanathan 2008-12-08 20:52:00 UTC
Please reassign if you don't feel html editor issue.
thanks
Comment 5 yabcok 2008-12-16 08:12:59 UTC
it's a facelets plugin bug - https://nbfaceletssupport.dev.java.net/issues/show_bug.cgi?id=49
Comment 6 wvreeven 2008-12-16 10:37:42 UTC
Thanks for responding to this issue. As a matter of fact, the facelets plugin bug you're referring to is independent of
the issue I found. I am using a Maven project and in this project I get no code completion. I switched back to RichFaces
3.2.1.GA as suggested in the JBoss JIRA issue that the facelets plugin issue is referring to, and I still get no code
completion in xhtml files.

FYI, I get no code completion for any JSF tag, be it rich, ui, h or f. Only HTML completion works.
Comment 7 Marek Fukala 2009-08-04 17:49:52 UTC
There is a new facelets/jsf support in 6.8. The plugin shouldn't be used anymore.