History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16855
Type: Bug Bug
Status: Open Open
Assignee: Maxim Mossienko
Reporter: Brett Swaim
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Tagfile attributes not autocompleting properly

Created: 10 Jan 08 18:54   Updated: 12 Jan 08 15:24
Component/s: Editor. Code Completion

Build: 7,590
Severity: Medium


 Description  « Hide
If I have a tagfile such as:

view.tag

which contains:

<%@attribute name="redirect" required="true"%>
<%@attribute name="course" type="org.oclc.webjunction.portlet.courses.model.Course" required="true" %>

Hello <%=redirect%>

It works. I can go to a jsp, call this like <cart:view redirect="" course="" /> and the redirect and course show up nice and pretty.

If I do this though:

view.tag

<%@attribute name="redirect" required="true"%>
<%@attribute name="course" type="org.oclc.webjunction.portlet.courses.model.Course" required="true" %>

<%@ include file="init.tag"%>

it won't, it expects the attributes to be in init.tag. If I move them there, it works again.

Herein lies the problem. I do this a lot:

view.tag

<%@ include file="init.tag"%>

init.tag

<%@ include file="/html/common/tags/init-common.tag"%>

and it requires me to put my attributes in common to work! I use common for storing just things that will be used across all my tags, as such I can't be declaring attributes there.

The fix is to allow code completion of attributes from any file, not just the farthest include.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.