facebook

.tagf files

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

    Marcus Beyer
    Member

    .jsp files are associated with the JSP designer. fine.
    .tag files are associated with the JSP designer. fine.

    .jspf files (JSP fragments) are associated with the JSP designer. fine.
    .tagf files (tag fragments) are not associated with the JSP designer. bad.

    And if force a .tagf file to be openend with the JSP designer (or with the “classic JSP editor”), it reports strange problems like tag not closing on line

    <%@ tag language="java" pageEncoding="UTF-8" %>

    And I get strange colors (wrong syntax highlighting) on the code …

    Can I do something about this? I think it’s an ugly workaround to rename all my .tagf files to .jspf …

    #247501 Reply

    Riyad Kalla
    Member

    What you need to do is navigate to Window > Prefs > General > Content Types > Text > MyEclipse JSP Content Types > click Add and add *.tagf, hit OK and reopen your file. You should be cooking with oil.

    #247512 Reply

    Marcus Beyer
    Member

    Great! Thank you!

    But why is “Default encoding” ISO-8859-1 and not equal to the setting in Window > Prefs > General > Editors > Text file encoding? (in my case UTF-8)

    #247521 Reply

    Riyad Kalla
    Member

    Not sure, it might be set by the plugin, I’ll check.

    #247800 Reply

    Marcus Beyer
    Member

    @support-rkalla wrote:

    Not sure, it might be set by the plugin, I’ll check.

    What did you find out?

    Even worse, the setting that I did (“UTF-8” is ignored! The properties of my JSP files say “Default (determined from content: ISO-8859-1), even if I create new ones. Tag files the same.

    Please help!

    #247801 Reply

    Riyad Kalla
    Member

    Use the pageEncoding attribute:

    <%@ page pageEncoding=”UTF-8″ %>

    at the top of your page

    #247803 Reply

    Marcus Beyer
    Member

    Thank you. I see. The problem is: This does not work for .tag and .tagf. There you have:

    <%@ tag language=”java” pageEncoding=”UTF-8″ %>

    And this is obviously not parsed by MyEclipse 🙁

    #247810 Reply

    Riyad Kalla
    Member

    Right, support for this hasn’t been added yet. We appologize for the issue, I have filed this as a bug.

    #247839 Reply

    Marcus Beyer
    Member

    ah. Where can I find the bug report?

    #247853 Reply

    Riyad Kalla
    Member

    We track our bugs privately because we don’t use the bug tracker only for MyEclipse, there are other TODO items in it. You can usually just check the release notes, we itemize most of the bugs fixed in each release there.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: .tagf files

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