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.
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
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
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.
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?
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.
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