2 Replies Latest reply on Jul 11, 2007 9:39 AM by lgog@gmail.com

    priblam with commandLink..

    lgog@gmail.com Newbie


      this is the example of the code: if i' use it like thet the commandLink works ok but if i need to use datascroller and wrappe the datatable with form the commandLink do not work..

      <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
      <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
      <%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">





      <f:view>





      <rich:dataTable id="mmm" var="waitingList" rows="1" value="#{waitinglistview.waitingList}" binding="#{waitinglistview.dataTable}" >
      <f:facet name="header">
      <rich:columnGroup>
      <h:column>
      <h:outputText value="id" />
      </h:column>
      <h:column>
      <h:outputText value="first" />
      </h:column>
      <h:column>
      <h:outputText value="last" />
      </h:column>
      <h:column>
      <h:outputText value="email" />
      </h:column>
      </rich:columnGroup>
      </f:facet>




      <rich:column>
      <h:outputText value="#{waitingList.muzicstartickets.ticketid}"></h:outputText>
      </rich:column>
      <rich:column>
      <h:outputText value="#{waitingList.id.firstname}"></h:outputText>
      </rich:column>
      <rich:column>
      <h:outputText value="#{waitingList.id.lastname}"></h:outputText>
      </rich:column>
      <rich:column>
      <h:outputText value="#{waitingList.id.email}"></h:outputText>
      </rich:column>
      <rich:column>


      <a4j:form>
      <a4j:commandLink action="#{waitinglistview.deleteFromWaitingList}" >delete</a4j:commandLink>

      </a4j:form>

      </rich:column>






      </rich:dataTable>



      </f:view>