Author: jjamrich
Date: 2012-01-16 09:12:30 -0500 (Mon, 16 Jan 2012)
New Revision: 23151
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/rf-11850.xhtml
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/list.xhtml
Log:
RF-11850: add Extended Data Table issue example
Create demonstration example in Metamer for NPE problem on columns resize when 2 EDT
placed on one page.
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/list.xhtml 2012-01-16
14:12:15 UTC (rev 23150)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/list.xhtml 2012-01-16
14:12:30 UTC (rev 23151)
@@ -72,6 +72,12 @@
<metamer:testPageLink id="keepSaved"
outcome="keepSaved" value="Keep Saved">
Page for testing attribute keepSaved of
<b>rich:extendedDataTable</b>.
</metamer:testPageLink>
+
+ <metamer:testPageLink id="rf11850" outcome="rf-11850"
value="RF-11850">
+ Page demonstrating issue <a
href="https://issues.jboss.org/browse/RF-11850">RF-11850<...;.
+ When two <b>rich:extendedDataTable</b> placed on one page, on
resize columns an NPE thrown.
+ </metamer:testPageLink>
+
</ui:define>
</ui:composition>
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/rf-11850.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/rf-11850.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/rf-11850.xhtml 2012-01-16
14:12:30 UTC (rev 23151)
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:c="http://java.sun.com/jsp/jstl/core"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <p><a
href="https://issues.jboss.org/browse/RF-11850">RF-11850<...;:
+ <ol>
+ <li>try to resize columns on one table</li>
+ <li>then try resize a column on another column</li>
+ <li>NPE thrown (in server log)</li>
+ </ol>
+ </p>
+
+ <rich:extendedDataTable id="edt1" var="item"
style="height:300px; width:500px;"
+ value="#{richExtendedDataTableBean.state ?
model.capitals : null}">
+ <rich:column>
+ <f:facet name="header">Header State</f:facet>
+ #{item.state}
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header">Header Name</f:facet>
+ #{item.name}
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header">Header Name 2</f:facet>
+ #{item.name}
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header">Header Name 3</f:facet>
+ #{item.name}
+ </rich:column>
+
+ </rich:extendedDataTable>
+
+ <br/><br/>
+
+ <rich:extendedDataTable id="edt2" var="item"
style="height:300px; width:500px;"
+ value="#{richExtendedDataTableBean.state ?
model.capitals : null}">
+ <rich:column>
+ <f:facet name="header">Header State</f:facet>
+ #{item.state}
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header">Header Name</f:facet>
+ #{item.name}
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header">Header Name 2</f:facet>
+ #{item.name}
+ </rich:column>
+
+ <rich:column>
+ <f:facet name="header">Header Name 3</f:facet>
+ #{item.name}
+ </rich:column>
+
+ </rich:extendedDataTable>
+
+ <br/><br/>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes
value="#{richExtendedDataTableBean.attributes}" id="attributes" />
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file