Example Error at ModifiableDatatable
meneghette Jan 6, 2010 11:21 AMI encountered an error at the Example of ModifiableDatatable the original is:
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"> <style> .rich-filter-input{ width:50px; } </style> <h:form> <a4j:queue requestDelay="100" /> <rich:messages /> <rich:dataTable value="#{hibernateDataModel}" var="row" rows="10" rowKeyConverter="org.jboss.seam.ui.EntityConverter" reRender="datascroller" width="650" rendered="#{componentNavigator.currentComponent.activeTab == 'modifiableDataModel'}"> <rich:columns value="#{hibernateBean.csvFields}" var="field" sortBy="#{field}" filterBy="#{field}" filterEvent="onkeyup" index="index" id="column#{index}" sortOrder="#{dataTableStateHolder.sortOrders[field]}" filterValue="#{dataTableStateHolder.columnFilterValues[field]}"> <f:facet name="header"> <h:outputText value="#{field}" /> </f:facet> <h:outputText value="#{row[field]}" /> </rich:columns> <f:facet name="footer"> <rich:datascroller id="datascroller" /> </f:facet> </rich:dataTable> </h:form> </ui:composition>
and the coorect is: (Its's in green)
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"> <style> .rich-filter-input{ width:50px; } </style> <h:form> <a4j:queue requestDelay="100" /> <rich:messages /> <rich:dataTable value="#{hibernateDataModel}" var="row" rows="10" rowKeyConverter="org.jboss.seam.ui.EntityConverter" reRender="datascroller" width="650" rendered="#{componentNavigator.currentComponent.activeTab == 'modifiableDataModel'}"> <rich:columns value="#{hibernateBean.csvFields}" var="field" sortBy="#{row[field]}" filterBy="#{field}" filterEvent="onkeyup" index="index" id="column#{index}" sortOrder="#{dataTableStateHolder.sortOrders[field]}" filterValue="#{dataTableStateHolder.columnFilterValues[field]}"> <f:facet name="header"> <h:outputText value="#{field}" /> </f:facet> <h:outputText value="#{row[field]}" /> </rich:columns> <f:facet name="footer"> <rich:datascroller id="datascroller" /> </f:facet> </rich:dataTable> </h:form> </ui:composition>
How can I do, to ask to correct ?