For help with installation, bugs reports or feature requests, please head over to our new forums.
	
Genuitec Community on GitHub
- This topic has 12 replies, 3 voices, and was last updated 13 years, 9 months ago by minhur. 
- 
		AuthorPosts
- 
		
			
				
 minhurMemberI’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: <%@ 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. <%@ 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 <%@ 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.tagIs 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.
 [/b]Maybe there’s an alternative to achieve the same effect? 
 I’m open to suggestions.Thanks July 30, 2010 at 1:49 pm #310230
 minhurMemberas an added note, ctrl+clicking works correctly when child.tag doesn’t have any includes. <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 August 3, 2010 at 3:59 pm #310297
 minhurMemberany thoughts? August 4, 2010 at 1:20 am #310302
 support-shaliniMemberminhur, 
 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?August 6, 2010 at 1:24 pm #310376
 minhurMemberare 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:<div>include.jsp</div>then create a /WEB-INF/tags/foo.tag file: <%@ include file="/WEB-INF/pages/include.jsp"%> <div>Foo.tag</div>modify index.jsp to this: <%@ 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.August 6, 2010 at 1:25 pm #310377
 minhurMemberi’m using 8.6 btw August 9, 2010 at 4:39 am #310413
 support-shaliniMemberminhur, 
 Thank you for the steps.
 I have raised a PR for this issue with the dev team.August 11, 2010 at 4:02 pm #310518
 minhurMemberThanks Shalini, does this mean it’s being considered as a bug? 
 perhaps address in a future update?December 15, 2010 at 9:10 am #313289
 minhurMemberI 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?April 22, 2011 at 10:59 am #316252
 minhurMemberI’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?April 25, 2011 at 5:23 am #316275
 Brian FernandesModeratorminhur, 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. January 30, 2012 at 5:03 pm #322811
 minhurMembera similar issue to this was fixed recently. 
 https://www.genuitec.com/forums/topic/ctrl-clicking-on-custom-tag-is-not-working-with-latest-me9/#post-322810Are there any plans to fix this any time soon? February 3, 2012 at 3:48 pm #322951
 minhurMemberwas it reproducible? It’d be great if this gets fixed at some point as well. 
- 
		AuthorPosts

