3 Replies Latest reply on Mar 23, 2009 1:53 PM by Nick Belaevski

    rich:dataTable Problem

    eklam Newbie

      Hi,

      I am facing a weird problem using rich:dataTable and a4j:commandButton the mehtod in action is simply not called! I tried h:command button but the problem remains...

      Here is my code:

      <html 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:c="http://java.sun.com/jstl/core"
       xmlns:rich="http://richfaces.org/rich">
       <ui:composition template="/site/extras/template.xhtml">
       <ui:define name="buscar"></ui:define>
       <ui:define name="depoimentos"></ui:define>
       <ui:define name="publicidade"></ui:define>
       <ui:define name="content">
       <h3 class="titr"><a href="/site/restrita/forum/index.xhtml">Fórum</a></h3>
       <a4j:form id="frmListArquivos">
       <a4j:outputPanel ajaxRendered="false"><h:inputHidden id="hdTema" value="#{forumTemaMB.idTemaSelecionado}" /></a4j:outputPanel>
      
      
       <rich:dataTable styleClass="tab-topicos" rows="10" id="repItems" rendered="#{forumTemaMB.listItems != null}" value="#{forumTemaMB.listItems}" var="item">
       <f:facet name="header">
       <rich:columnGroup>
       <rich:column width="845" styleClass="th-tit">
      
       #{forumTemaMB.forumTemaSelecionado.titulo}</rich:column>
       <rich:column width="110">Última Mensagem</rich:column>
       </rich:columnGroup>
       </f:facet>
      
       <rich:column width="670" styleClass="tit tit-novo" style="text-align: left;">
       <a href="/site/restrita/forum/mensagem.xhtml?idTopico=#{item.id}">
       #{item.titulo}
       </a>
       <p>#{item.breveDesc}</p>
       </rich:column>
       <rich:column width="115">
       <h:outputText value="#{item.dataCriacao}">
       <f:convertDateTime pattern="HH:mm - dd/MM/yyyy" />
       </h:outputText>
       <br />
       <a4j:commandButton action="#{forumTemaMB.excluirTopico}" value="hcmd Excluir231" >
      
      
       </a4j:commandButton>
       <h:commandLink immediate="true" action="#{forumTemaMB.editarTopico}" value=" Editar231">
      
       </h:commandLink>
       </rich:column>
      
       </rich:dataTable>
      
       <div id="pneLegenda" class="legenda" rendered="true">
       <span class="tit novo">Novas mensagens</span><br/>
       <span class="tit">Sem novas mensagens</span>
       </div>
       <div class="legenda" style="margin-left: 45px;">
       <rich:datascroller style="width:100%; float: left;" id="listBancoBP" align="center" for="repItems" maxPages="10" renderIfSinglePage="false" reRender="repItems"/>
       </div>
       <div id="pneBtn" class="legenda" style="float:right; margin-right: 65px;">
       <input type="button" onclick="window.location='/site/restrita/forum/postar.xhtml?idTema=#{forumTemaMB.forumTemaSelecionado.id}'" value="Novo Tópico" class="inputbtn" style="width: 100px;"/>
       </div>
       </a4j:form>
      
      
       </ui:define>
       </ui:composition>
      </html>


      I always used code like this and worked ok...

      Thanks in advance!