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 82415 - JSF xmlns code completion doesn't work for JSPs found in "Java Class Library" projects
Summary: JSF xmlns code completion doesn't work for JSPs found in "Java Class Library"...
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-10 20:04 UTC by ngriffin7a
Modified: 2014-01-12 23:02 UTC (History)
2 users (show)

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 ngriffin7a 2006-08-10 20:04:11 UTC
I setup a project as a "Java Class Library", but happen to have some JSPs in a 
project subfolder that contain stuff in the header like:

 xmlns:h="http://java.sun.com/jsf/html"

But when I start typing a JSF tag like:

   <h:commandButton 

The code completion reports "no suggestions"

As a workaround, I'm going to re-create the project as a web application.

Thank you,

Neil Griffin
Comment 1 Jiri Prox 2006-08-11 09:00:34 UTC
Reasigning to java/j2seproject

I agree this is anoying but I'm not sure if JSP files are supported in java
libraries.
No datalost or deadlock-> downgrading to P2
Comment 2 Tomas Zezula 2006-09-12 13:53:07 UTC
It's not a matter of the project type but the completion provider. If the JSF
CompletionProvider has a limitation that the project has to be a web project it
should at least warn an user.
Comment 3 Petr Jiricka 2006-09-13 08:15:08 UTC
I don't think this is a supported scenario and I would not call this a bug. It
*might* work if you correctly use the JSF library in your library project. Do
you have the JSF library on classpath and which version. Also, what is the
motivation for doing this in a library project rather than a web project?
Comment 4 Petr Pisl 2006-09-13 10:33:41 UTC
I agree, this is not supported. The main reason is, that the code completion
data are provided by jsp parser. And the jsp parser needs web project to run
correctly.

On the other hand, I'm not against to change the behavior, could you attach your
java library or create simple another one? I will thinking about options what we
can do.
Comment 5 ngriffin7a 2006-10-16 16:58:37 UTC
Sorry for my delay in responding... I think I tried putting the JSF library in 
my classpath, but I don't think it helped.

The motivation for doing this was to have a common library of JSP pages, that 
could be reused among other projects. The library itself was not "runnable", 
in the sense that there was no way/reason to run any of these JSP pages from 
this common library. So creating a web project seemed overkill.

I migrated the code to a web project, and it has been fine ever since. This 
can be closed.

Best Regards,

Neil