[ http://issues.apache.org/jira/browse/BEEHIVE-695?page=all ]
Nathan Jantz updated BEEHIVE-695: --------------------------------- Attachment: index2.jsp Attaching repro. > NPE when using datagrid netui-data:pad tag inside a repetaer tag > ---------------------------------------------------------------- > > Key: BEEHIVE-695 > URL: http://issues.apache.org/jira/browse/BEEHIVE-695 > Project: Beehive > Type: Bug > Components: NetUI > Versions: V1 > Environment: Windows XP, JDK 1.5.x, Tomcat 5.0.25 > Reporter: Nathan Jantz > Assignee: Eddie O'Neil > Fix For: V1 > Attachments: index2.jsp > > bash05102005 > I'm getting an NPE when using <netui-data:pad> tag inside a repeater tag. > Here is a repro: > <% pageContext.setAttribute("itemArray", new String[] {"zero", "one", "two", > "three", "four"}); %> > <netui-data:repeater dataSource="pageScope.itemArray"> > <netui-data:pad maxRepeat="2"/> > <netui-data:repeaterItem> > <netui:label value="${container.item}" /> > </netui-data:repeaterItem> > </netui-data:repeater> > Expected Result: > zero one > Actual Error output: > zero one two three four > Page Errors > Error Number Tag Type Error > 1 Pad Message An exception occurred when rendering the endTag of the > tag "Pad" because: java.lang.NullPointerException > 2 Pad Message An exception occurred when rendering the endTag of the > tag "Pad" because: java.lang.NullPointerException > 3 Pad Message An exception occurred when rendering the endTag of the > tag "Pad" because: java.lang.NullPointerException > 4 Pad Message An exception occurred when rendering the endTag of the > tag "Pad" because: java.lang.NullPointerException > 5 Pad Message An exception occurred when rendering the endTag of the > tag "Pad" because: java.lang.NullPointerException > 6 Pad Message An exception occurred when rendering the endTag of the > tag "Pad" because: java.lang.NullPointerException > 7 Pad Message An exception occurred when rendering the endTag of the > tag "Pad" because: java.lang.NullPointerException > 8 Pad Message An exception occurred when rendering the endTag of the > tag "Pad" because: java.lang.NullPointerException > I'm not seeing any stack traces printed to the Tomcat console. I get a > similar result when trying to use the 'minRepeat' attribute as well. > I will attach the actual JSP here shortly. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira