DataGrid problem
mladen.babic Jul 7, 2007 5:07 AMHi,I have added on my startpage dataGrid component.It works fine when I put value first time,but when I 've tried to put other value it trows me error on page:
XML Parsing Error: mismatched tag. Expected: </tbody>. Location: http://localhost:8080/private.eShop/shop/startpage.elb?cid=1 Line Number 274, Column 462:</script></div><table class="dr-table rich-table standardTable_100" id="j_id176:products" border="0" cellpadding="0" cellspacing="0" width="100%"><colgroup span="component.attributes['columns']"></colgroup><tbody><td class="dr-table-cell rich-table-cell standardTable_ColumnCentered"> </td><td class="dr-table-cell rich-table-cell standardTable_ColumnCentered"> </td><td class="dr-table-cell rich-table-cell standardTable_ColumnCentered"> </td></tr></tbody></table>
Error points to tag.
When i back first value in DataGrid ,it works fine.??!!! Is it possible that is a bug?
This is fragment of my page:
<rich:dataGrid value="#{scrollerList}" var="start" columns="#{categoryHandler.columnSize}" columnClasses="standardTable_ColumnCentered" id="products" styleClass="standardTable_100" width="100%" > <a4j:outputPanel layout="block" style="border:1px solid gray;padding:0px;"> <t:panelGrid columns="2" id="grid_1"> <t:panelGroup> <t:htmlTag value="br"></t:htmlTag> <rich:dragSupport dragIndicator=":indicator" dragType="number" dragValue="#{start.id}"> <a4j:actionparam value="#{start.id}" name="id" /> </rich:dragSupport> <t:commandLink action="#{selected.redirectProduct(start)}" title="#{messages.text62}"> <s:graphicImage value="#{start.firstDocument.data}" width="100" height="100" rendered="#{start.firstDocument ne null}" /> <s:graphicImage value="/images/no_image.png" width="100" height="100" rendered="#{start.firstDocument eq null}" /> </t:commandLink> </t:panelGroup> <t:panelGroup> <t:htmlTag value="br"></t:htmlTag> <t:htmlTag value="b"> <h:outputText value="#{start.name}" /> </t:htmlTag> <t:htmlTag value="br"></t:htmlTag> <h:outputText value="#{messages.oldprice }" rendered="#{start.bigOldPrice}" /> <t:htmlTag value="br" rendered="#{start.bigOldPrice}" /> <t:htmlTag value="del"> <h:outputText style="color:red" value="#{start.oldPrice}" rendered="#{start.bigOldPrice}"> <f:convertNumber type="currency" currencySymbol="?" /> </h:outputText> </t:htmlTag> <t:htmlTag value="br" rendered="#{start.bigOldPrice}" /> <h:outputText value="#{messages.price }" /> <t:htmlTag value="br" /> <h:outputText style="color:green" value="#{start.price}"> <f:convertNumber type="currency" currencySymbol="?" /> </h:outputText> <t:htmlTag value="br" /> <t:commandLink action="#{selected.redirectProduct(start)}" title="#{messages.text62}"> <h:outputText style="color:red" value="#{messages.readmore}"></h:outputText> </t:commandLink> <t:htmlTag value="br"></t:htmlTag> </t:panelGroup> </t:panelGrid>
Best regards,
mb