Community
Participate
Working Groups
Build Identifier: 20100617-1415 I have a project named "TestComp" in which I am building a JSF 2.0 custom component. TestComp defines a namespace for the taglib named "http://testcomp.com". I have another project named "TestJSF" that is a JSF 2.0 Dynamic Web 3.0 Project that depends on the TestComp project. In other words, TestComp is added as a required project to the Java Build Path of TestJSF. Also, TestComp is added to the Web Deployment Assembly of TestJSF. There's a web page in TestJSF that imports the "http://testcomp.com" namespace and uses the TestComp component. When running the project on Tomcat 7 everything works fine. However, in Eclipse a warning line is placed under xmlns:tc="http://testcomp.com" and Eclipse doesn't recognize the TestComp component in the page: <tc:testcomp... />. However had I written the classes of TestComp in the TestJSF project and added the testcomp.taglib.xml to the WEB-INF of the TestJSF project instead of the META-INF of TestComp, Eclipse had no problem recognizing the namespace. Reproducible: Always Steps to Reproduce: 1. Create a project (Project1) that defines a JSF 2.0 custom component with a namespace like "http://foo.com" 2. Create a Dynamic Web 3.0 Project (Project2) with JSF 2.0 Facet and Mojarra libraries 3. Add Project1 to the build path of Project2 4. Add Project1 to the Web Deployment Assembly of Project 2 5. Create a Facelets XHTML page and try to import http://foo.com 6. Eclipse cannot recognize http://foo.com while the project works fine when deployed to Tomcat 7
Is the part of the Java Build Path where the "http://foo.com" component is defined enabled on the 'Order and Export' tab of the 'Java Build Path' property page of Project1?
(In reply to comment #1) > Is the part of the Java Build Path where the "http://foo.com" component is > defined enabled on the 'Order and Export' tab of the 'Java Build Path' property > page of Project1? Yes, the namespace is defined inside src/META-INF/mytaglib.taglib.xml and the src folder is already selected by Eclipse in the Order and Export tab of the Java Build Path for the project. In fact, its checkbox is checked with a dash mark and it cannot be unchecked.
Target for maintenance release.
This problem haunts me as well, developing a custom facelet taglib. However, I did discover a workaround, which is not ideal, but is suitable for the users of the taglib I'm developing: What i noticed is that tag completion works fine for e.g. PrimeFaces, which is a packaged jar added to the build path. Tried packaging my taglib and added it to build path.. Everything works, just like with Primefaces.
For review
After some research, it has been discovered that this requires significant work, and now (approaching M7) is not the time for this. Pushing out to a future release.
We may not be able to get to this in Juno
Mass update: Moving Target to Juno SR1 release as we are in ramp down phase for Juno.
Triage: Consider fro 3.5
This is too large to take on for 3.5. Since there is (or at least was) user interest, I suggest that we target this for SR1.