| Author |
Message |
|
|
Post subject: Ctrl clicking on a custom tag with an include
Posted: Jul 30, 2010 - 07:45 PM
|
|
Joined: Jun 12, 2009
Posts: 27
|
|
I'm having trouble landing on the correct file when I do a Ctrl+click on a tag name.
I'm basically trying to have two custom .tag files share the same taglib declaration.
meaning, I have a taglib.jsp:
| Code: | <%@ taglib prefix="mytag" tagdir="/WEB-INF/tags/mytag"%>
<%@ taglib prefix="mytag2" tagdir="/WEB-INF/tags/mytag2"%>
<%@ taglib prefix="mytag3" tagdir="/WEB-INF/tags/mytag3"%>
|
with this, the parent file ( parent.tag ) includes it so it doesn't have to do 3 declarations.
| Code: | <%@ include file="/WEB-INF/pages/includes/taglib.jsp"%>
<div>Parent</div>
<mytag:child/>
<mytag2:child2/>
<mytag3:child2/>
|
then the child tag file ( child.tag ) also includes the same jsp file, so it doesn't have to do 3 declarations either
| Code: | <%@ include file="/WEB-INF/pages/includes/taglib.jsp"%>
<div>Child</div>
<mytag:child/>
<mytag2:child2/>
<mytag3:child2/>
|
This works great and I end up with shared set of taglibs, which makes it easier when i need another custom tags.
However, the Ctrl+click (open file under cursor) doesn't seem to play nicely and when I try to jump to the child.tag from parent.tag, the editor opens taglib.jsp instead.
In other words, when i'm under parent.tag, and I hold ctrl and hover over the child, trying to open child.tag, the editor opens up taglib.jsp because it picks up the include file.
<mytag: child/> (Ctrl+Clicking while hover "child" opens taglib.jsp)
The behavior I want is to open child.tag
Is there a way to avoid this behavior?
I'd like to keep the current standard of having variety of tag file share the same taglibs so I have the ability to add a taglib to all those tag files if i need to in the future.
[/code][/b]
Maybe there's an alternative to achieve the same effect?
I'm open to suggestions.
Thanks |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Ctrl clicking on a custom tag with an include
Posted: Jul 30, 2010 - 07:49 PM
|
|
Joined: Jun 12, 2009
Posts: 27
|
|
as an added note, ctrl+clicking works correctly when child.tag doesn't have any includes.
| Code: | <div>Child</div>
<mytag:child/>
<mytag2:child2/>
<mytag3:child2/> |
which makes me wonder if this is a general bug, where ctrl+clicking any custom tag files with an <%@ include %> makes it open the included filed instead of the custom tag |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Ctrl clicking on a custom tag with an include
Posted: Aug 03, 2010 - 09:59 PM
|
|
Joined: Jun 12, 2009
Posts: 27
|
|
|
|
|
 |
|
|
Post subject: RE: Ctrl clicking on a custom tag with an include
Posted: Aug 04, 2010 - 07:20 AM
|
|
Registered Member

Joined: May 18, 2009
Posts: 1532
|
|
minhur,
Sorry for the delayed response. I could not replicate this at my end using ME8.6. Even with the <%@ include %> directive, ctrl+click on the <mytag:child> opens the appropriate .tag file.
What is the version of MyEclipse that you are using? |
_________________ Shalini
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: Ctrl clicking on a custom tag with an include
Posted: Aug 06, 2010 - 07:24 PM
|
|
Joined: Jun 12, 2009
Posts: 27
|
|
are you sure?
i've tried this on a fresh project and I'm experiencing the same issue.
on a fresh web project
try creating a /WEB-INF/pages/include.jsp file:
| Code: |
<div>include.jsp</div>
|
then create a /WEB-INF/tags/foo.tag file:
| Code: |
<%@ include file="/WEB-INF/pages/include.jsp"%>
<div>Foo.tag</div>
|
modify index.jsp to this:
| Code: |
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<html>
<head></head>
<body>
<tags:foo></tags:foo>
</body>
</html>
|
try ctrl+clicking on tags:foo, myeclipse will open include.jsp, not foo.tag
now try removing the <%@ include file="/WEB-INF/pages/include.jsp"%> from foo.tag.
you'll land on foo.tag. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Ctrl clicking on a custom tag with an include
Posted: Aug 06, 2010 - 07:25 PM
|
|
Joined: Jun 12, 2009
Posts: 27
|
|
|
|
|
 |
|
|
Post subject: RE: Ctrl clicking on a custom tag with an include
Posted: Aug 09, 2010 - 10:39 AM
|
|
Registered Member

Joined: May 18, 2009
Posts: 1532
|
|
minhur,
Thank you for the steps.
I have raised a PR for this issue with the dev team. |
_________________ Shalini
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: Ctrl clicking on a custom tag with an include
Posted: Aug 11, 2010 - 10:02 PM
|
|
Joined: Jun 12, 2009
Posts: 27
|
|
Thanks Shalini, does this mean it's being considered as a bug?
perhaps address in a future update? |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Ctrl clicking on a custom tag with an include
Posted: Dec 15, 2010 - 03:10 PM
|
|
Joined: Jun 12, 2009
Posts: 27
|
|
I was hoping this is fixed on beta 9 but it looks like it's still happening.
Any word on if and when this will get addressed? |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Ctrl clicking on a custom tag with an include
Posted: Apr 22, 2011 - 04:59 PM
|
|
Joined: Jun 12, 2009
Posts: 27
|
|
I've upgraded to the latest myeclipse 9 but the issue is still happening.
Is it in the roadmap to fix this at all?
Are there any workaround I can do to jump to the correct file as needed? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 25, 2011 - 11:23 AM
|
|
Moderator


Joined: Aug 21, 2004
Posts: 2515
|
|
minhur,
We do have this issue filed as a bug and it is being investigated right now. If possible it will be fixed in an upcoming maintenance release against MyEclipse 9.
Sorry for the inconvenience caused, I will let you know when we have an update on this. |
_________________ Brian
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jan 30, 2012 - 11:03 PM
|
|
Joined: Jun 12, 2009
Posts: 27
|
|
|
|
|
 |
|
|
Post subject:
Posted: Feb 03, 2012 - 09:48 PM
|
|
Joined: Jun 12, 2009
Posts: 27
|
|
was it reproducible? It'd be great if this gets fixed at some point as well. |
|
|
| |
|
|
|
 |
|
|