Mantis - Resin
Viewing Issue Advanced Details
1479 minor always 11-28-06 19:03 11-29-06 09:39
stevejf7  
ferg  
normal  
closed 3.0.21  
fixed  
none    
none 3.0.23  
0001479: .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" %>

Any thoughts on why this might be?
package adf;

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


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

Notes
(0001607)
ferg   
11-29-06 09:39   
jsp/1068

thanks for all the details. this was a great bug report.