Mantis - Resin
Viewing Issue Advanced Details
1477 minor always 11-28-06 19:02 11-29-06 09:40
stevejf7  
ferg  
normal  
closed 3.0.21  
fixed  
none    
none 3.0.23  
0001477: .tag files don't handle inner classes
I have a .tag file like the following:

<%@ tag body-content="empty" %>
<%@ tag import="adf.Test, adf.Test.InnerClass" %>
<%@ attribute name="input" type="adf.Test.InnerClass" %>
<%@ attribute name="var" rtexprvalue="false" required="true" %>
<%@ variable name-from-attribute="var" alias="component" variable-class="adf.Test.InnerClass" scope="AT_END" %>
<%
    Test test = new Test();
    Test.InnerClass innerClass = test.getInnerClass();
    jspContext.setAttribute("component", innerClass);
%>


this line doesn't seem to work in 3.0.21 or 3.0.19:
<%@ attribute name="input" type="adf.Test.InnerClass" %>

this line, however, works in 3.0.19 but not 3.0.21:
<%@ variable name-from-attribute="var" alias="component" variable-class="adf.Test.InnerClass" scope="AT_END" %>

I've attached a .war with the test webapp files
package adf;

public class Test {
    public InnerClass getInnerClass() {
        return new InnerClass();
    }


    public static class InnerClass {
        public String toString() {
            return "Hello WORLD";
        }
    }
}

Notes
(0001609)
ferg   
11-29-06 09:40   
0001479