<rich:dataTable problem
ignaciosc Oct 21, 2008 7:52 PMwhen in this code click on the commandButton it re-render png_test2,png_list2, but the <rich:dataTable excecute again the method #{commons.list}, is this a bug?
and if change <rich:dataTable for <t:dataTable , the behavior change, now work good, not excecute again the #{commons.list}
im from Argentina, and not write and speek good the english
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk" %>
<%@taglib prefix="gm" uri="http://wgm.com/gmtld" %>
<t:panelGrid id="png_test1">
<t:column>
<a4j:form ajaxSingle="true" ajaxSubmit="true">
<a4j:commandButton action="#{commons.haceralgo}" limitToList="true" reRender="png_test2,png_list2" value="hacer algo"/>
<t:panelGrid id="png_test2">
<t:outputText value="#{commons.test2}"/>
</t:panelGrid>
<t:panelGrid id="png_list">
<rich:dataTable width="100" rows="10" id="dtt_list" cellpadding="5" value="#{commons.list}" var="item">
<rich:column width="50" >
<f:facet name="header">
<t:outputText value="col1"/>
</f:facet>
<t:outputText forceId="true" value="#{item}"/>
</rich:column>
<rich:column width="50">
<f:facet name="header">
<t:outputText value=""/>
</f:facet>
<a4j:commandButton reRender="png_test2" limitToList="true" action="#{commons.haceralgo}" value="hacer algo" />
</rich:column>
</rich:dataTable>
</t:panelGrid>
</a4j:form>
<a4j:form >
<t:panelGrid id="png_list2">
<t:dataTable width="100" rows="10" id="dtt_list2" cellpadding="5" value="#{commons.list2}" var="item">
<rich:column width="50" >
<f:facet name="header">
<t:outputText value="col1"/>
</f:facet>
<t:outputText forceId="true" value="#{item}"/>
</rich:column>
<rich:column width="50">
<f:facet name="header">
<t:outputText value=""/>
</f:facet>
<a4j:commandButton reRender="png_test2" limitToList="true" action="#{commons.haceralgo}" value="hacer algo" />
</rich:column>
</t:dataTable>
</t:panelGrid>
</a4j:form>
<a4j:form>
<t:panelGrid id="png_otrolist">
<t:dataTable width="100" rows="10" id="otrolist" cellpadding="5" value="#{commons.list3}" var="item">
<rich:column width="50" >
<f:facet name="header">
<t:outputText value="col1"/>
</f:facet>
<t:outputText forceId="true" value="#{item}"/>
</rich:column>
<rich:column width="50">
<f:facet name="header">
<t:outputText value=""/>
</f:facet>
<a4j:commandButton reRender="png_test2" limitToList="true" action="#{commons.haceralgo}" value="hacer algo" />
</rich:column>
</t:dataTable>
</t:panelGrid>
</a4j:form>
</t:column>
</t:panelGrid>