facebook

Multi-project tag resolving problem.

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #247776 Reply

    acuretra
    Member

    We have a scenario where we put each component in their own eclipse project (this goes very well with Team Project files), and where MyEclipse merges the libraries in WEB-INF/lib at deployment time.

    I have now found that this causes a problem with looking up tags in JSP pages, notably if I have the following snippet in a JSP-file


    <%@taglib uri=”http://java.sun.com/jsf/html&#8221; prefix=”h”%>
    <%@taglib uri=”http://java.sun.com/jsf/core&#8221; prefix=”f”%>

    <f:loadBundle basename=”jskfs.Messages” var=”Message” />
    <html>
    <body>
    <f:view>
    <h:form id=”helloForm” rendered=”true”>
    …. etc

    The <f:*> and <h:*> tags are marked with a yellow underline, and the message “Unknown tag (whatever)”.

    If I copy the myfaces-all.jar to the WEB-INF/lib folder of the JSP-file project, and reload the JSP file, the messages go away.

    I run the latest version of MyEclipse available through the update manager.

    #247790 Reply

    Riyad Kalla
    Member

    If myfaces-all.jar lives in a dependent Java project that this web project relies on, go the Java project’s build path and be sure to “Export” the myfaces-all.jar file, so the web project can see it and can resolve the tags.

    #247840 Reply

    acuretra
    Member

    Thank you for your quick reply.

    I do that already. The myfaces-all.jar is exported from the project, which is why it took me a while to diagnose this bug.

    It is not located in a WEB-INF/lib directory, that is managed by the smart deploy of myeclipse.

    #247857 Reply

    Riyad Kalla
    Member

    I confirmed this is a bug, I’ll file this ASAP.

    #256796 Reply

    acuretra
    Member

    Could you let me know the bug number, and if it has been fixed yet?

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Multi-project tag resolving problem.

You must be logged in to post in the forum log in