[
https://jira.jboss.org/jira/browse/RF-7283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsikhon Kuprevich closed RF-7283.
---------------------------------
Assignee: Tsikhon Kuprevich (was: Alexander Dubovsky)
> rich:dataGrid empty cell generates invalid XML
> -----------------------------------------------
>
> Key: RF-7283
> URL: https://jira.jboss.org/jira/browse/RF-7283
> Project: RichFaces
> Issue Type: Bug
> Components: component-tables
> Affects Versions: 3.3.1
> Environment: Jboss 4.2, RedHat 5.2, RF 3.3.1
> Reporter: Jeremie Panzer
> Assignee: Tsikhon Kuprevich
> Fix For: 3.3.2.CR1
>
> Time Spent: 6 hours
> Remaining Estimate: 0 minutes
>
> 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://xxx/index.jsf Line Number 105, Column 61:
> </div></div></td><td class="dr-table-cell rich-table-cell
> "> </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 (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
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues