facebook

Tag file custom tag lib not recognised

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

    ahado
    Member

    In a jsp project I’ve defined a number of tag files under /WEB-INF/tags. The corresponding taglib is defined in the files which use the tags using:

    <%@ taglib tagdir=”/WEB-INF/tags” prefix=”h” %>

    The tags work without problems but the including pages flag them as unknown tags in the MyEclipse editor. Is there any way of preventing this?

    Windows XP SP2
    MyEclipse:
    Version: 4.0.100
    Build id: 20051103-4.1-Milestone1
    Eclipse:
    Version: 3.1.1
    Build id: M20050929-0840

    Thanks

    #242165 Reply

    Riyad Kalla
    Member

    I’ve defined a number of tag files under /WEB-INF/tags

    Do you mean you physically placed the files in that directory or you created web.xml entries for them with the appropriate URIs?

    Please read this: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-31.html#251

    #242787 Reply

    Rick Herrick
    Member

    This is irrelevant to the actual topic. Tag files, as opposed to tag libs, work by placing a JSP snippet in a .tag file, placing that tag file in a directory (in ahado’s initial case, /WEB-INF/tags), then referencing the tag file using the prefix and the tag file name without the .tag extension. Check out http://today.java.net/pub/a/today/2003/11/14/tagfiles.html for a run-down on this.

    Suppose there’s a file called test.tag in the /WEB-INF/tags directory. Then, with ahado’s initial declaration, you’d refer to that like this:

    <h:test/>

    I’m having the same problem. Also, I can’t get MyEclipse to recognize the .tag files as valid JSP. It just displays like a text file. I have jspf, tag, and tagx to the list of JSP fragment extensions, but this makes no difference.

    #242795 Reply

    Riyad Kalla
    Member

    rherrick,
    Thank you for the additional information, the work for supporting .tag files has not been completed yet, sorry for the inconvenience.

    Also to map the .tag extension to the JSP Designer you need to navigate to Window > Preferences > General > Text Editors > File Associations, and add a *.tag mapping to the MyEclipse JSP Designer.

    #243978 Reply

    patrickw
    Member

    support-rkalla,

    i have the same problem as rherrick. our development is currently thinking about to switch from intellij idea to myeclipse.

    one “show-stopper” would be the lack of .tag files support.

    could you please tell me when the support of .tag files will be ready.

    thanx
    patrick

    #243983 Reply

    Riyad Kalla
    Member

    Patrick,
    Full tag support likely won’t make it until the 5.x releases. I would encourage you to use a 30-day trial of MyEclipse to see if the rest of the tool supports your work well and feels like a good fit for your team (you might also find some features you think are really cool that IJ doesn’t have)

    #253270 Reply

    @support-rkalla wrote:

    Patrick,
    Full tag support likely won’t make it until the 5.x releases….

    I’ve installed it… (MyEclipse 5.0 M1) and the problem is the same 😕
    Is it normal ??

    #256301 Reply

    Any news on this item? It doesn’t seem to work in 5.0 GA either.

    #256332 Reply

    Riyad Kalla
    Member

    tagdir is still not supported in 5.0 GA

    #261997 Reply

    Also not supported by version 5.1 !!! 😥
    When do you plan to support this ?
    It’s also a problem for us because we use a lot of .tag files !
    Thanks for your feedback !

    #262024 Reply

    Riyad Kalla
    Member

    I’m sorry for the aggravation, I’ll see what I can find out about this and full JEE 5 support moving forward (I know it’s comming, I just don’t have timelines on paper yet)

    #263543 Reply

    Any news on this item? It’s also becoming a daily annoyance for me 🙁

    #263715 Reply

    Riyad Kalla
    Member

    Tenative dates are for the 6.0 release around March, but not all of JEE 5 will make it into that release, so maybe by 6.1 shortly after.

    #264283 Reply

    @support-rkalla wrote:

    Tenative dates are for the 6.0 release around March, but not all of JEE 5 will make it into that release, so maybe by 6.1 shortly after.

    I’d be happy if you could just implement J2EE 1.4 ;-), tag-files where introduced way back then…

    #274837 Reply

    I’ve just tried the 6.0 GA release.. this problem always occurs !!
    For information this topic was created the 24 November 2005….

Viewing 15 posts - 1 through 15 (of 23 total)
Reply To: Tag file custom tag lib not recognised

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