[richfaces-issues] [JBoss JIRA] Created: (RF-7283) rich:dataGrid empty cell generates invalid XML

Jeremie Panzer (JIRA) jira-events at lists.jboss.org
Fri May 29 03:17:56 EDT 2009


rich:dataGrid empty cell generates invalid XML 
-----------------------------------------------

                 Key: RF-7283
                 URL: https://jira.jboss.org/jira/browse/RF-7283
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.3.1
         Environment: Jboss 4.2, RedHat 5.2, RF 3.3.1
            Reporter: Jeremie Panzer


I'm using a4j:include navigation and the navigation is working fine as long as I'm not trying to access a page containing a rich:dataGrid component.
The starting page is the one containing the dataGrid and is shown correctly. I have a commandLink pointing to another page, and a back button on that second page.

When using the back button, thus retrieving the dataGrid page through Ajax, I'm getting the following error: 
error[9:04:56,090]: Error parsing XML
error[9:04:56,091]: Parse Error: XML Parsing Error: undefined entity Location: http://genesis1.spacebel.be/genesis-jsf/portlets/serviceordering/index.jsf?javax.portlet.faces.DirectLink=true Line Number 105, Column 61: </div></div></td><td class="dr-table-cell rich-table-cell ">&nbsp;</td></tr></tbody></table></div></div></td></tr></table></td><td id="__serviceordering_WAR_genesisjsf_INSTANCE_g8sA_:_viewRoot:j_id9:j_id10:j_id190" style="display: none;;height:100%"><table border="0" cellpadding="10" cellspacing="0" class="dr-tbpnl-cntnt-pstn rich-tabpanel-content-position" width="100%"><tr><td class="dr-tbpnl-cntnt rich-tabpanel-content " style="; "><div class="dr-tree rich-tree " id="__serviceordering_WAR_genesisjsf_INSTANCE_g8sA_:_viewRoot:j_id9:j_id10:me ------------------------------------------------------------^

It looks like the &nbsp; (which is inserted inside an empty cell) is causing this, because if the size of the collection used to populate the dataGrid is a multiple of the dataGrid number of columns, everything is working fine.

Here's how to reproduce:
index.xhtml
		<a4j:form>
			<a4j:include
				viewId="page1.xhtml" />
		</a4j:form>

page1.xhtml
		<a4j:commandLink action="#{myBean.toSecondPage}"
			value="Go" immediate="true" />

page2.xhtml
	<rich:dataGrid value="#{myBean.elements}" var="element" 
						columns="3">
			<rich:panel><h:outputText value="#{element.id}" /></rich:panel>
	</rich:dataGrid>

and having the myBean.elements collection having less than 3 elements.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list