Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
minhur
Post subject: Ctrl clicking on a custom tag with an include  PostPosted: Jul 30, 2010 - 07:45 PM



Joined: Jun 12, 2009
Posts: 14

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
 
 View user's profile Send private message  
Reply with quote Back to top
minhur
Post subject: RE: Ctrl clicking on a custom tag with an include  PostPosted: Jul 30, 2010 - 07:49 PM



Joined: Jun 12, 2009
Posts: 14

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
 
 View user's profile Send private message  
Reply with quote Back to top
minhur
Post subject: RE: Ctrl clicking on a custom tag with an include  PostPosted: Aug 03, 2010 - 09:59 PM



Joined: Jun 12, 2009
Posts: 14

any thoughts?
 
 View user's profile Send private message  
Reply with quote Back to top
support-shalini
Post subject: RE: Ctrl clicking on a custom tag with an include  PostPosted: Aug 04, 2010 - 07:20 AM
Registered Member
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
 
 View user's profile Send private message  
Reply with quote Back to top
minhur
Post subject: RE: Ctrl clicking on a custom tag with an include  PostPosted: Aug 06, 2010 - 07:24 PM



Joined: Jun 12, 2009
Posts: 14

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.
 
 View user's profile Send private message  
Reply with quote Back to top
minhur
Post subject: RE: Ctrl clicking on a custom tag with an include  PostPosted: Aug 06, 2010 - 07:25 PM



Joined: Jun 12, 2009
Posts: 14

i'm using 8.6 btw
 
 View user's profile Send private message  
Reply with quote Back to top
support-shalini
Post subject: RE: Ctrl clicking on a custom tag with an include  PostPosted: Aug 09, 2010 - 10:39 AM
Registered Member
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
 
 View user's profile Send private message  
Reply with quote Back to top
minhur
Post subject: RE: Ctrl clicking on a custom tag with an include  PostPosted: Aug 11, 2010 - 10:02 PM



Joined: Jun 12, 2009
Posts: 14

Thanks Shalini, does this mean it's being considered as a bug?
perhaps address in a future update?
 
 View user's profile Send private message  
Reply with quote Back to top
minhur
Post subject: RE: Ctrl clicking on a custom tag with an include  PostPosted: Dec 15, 2010 - 03:10 PM



Joined: Jun 12, 2009
Posts: 14

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?
 
 View user's profile Send private message  
Reply with quote Back to top
minhur
Post subject: RE: Ctrl clicking on a custom tag with an include  PostPosted: Apr 22, 2011 - 04:59 PM



Joined: Jun 12, 2009
Posts: 14

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?
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Apr 25, 2011 - 11:23 AM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2339

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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
minhur
Post subject:   PostPosted: Jan 30, 2012 - 11:03 PM



Joined: Jun 12, 2009
Posts: 14

a similar issue to this was fixed recently.
http://myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&p=129126

Are there any plans to fix this any time soon?
 
 View user's profile Send private message  
Reply with quote Back to top
minhur
Post subject:   PostPosted: Feb 03, 2012 - 09:48 PM



Joined: Jun 12, 2009
Posts: 14

was it reproducible? It'd be great if this gets fixed at some point as well.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits