2 Replies Latest reply on May 25, 2008 11:09 AM by ddzira1

    commandLink  in rich:dataTable not working?

    ddzira1

      not sure whats going on here....sorry if this is a silly question, I am new to richfaces and have been searching for a few hours through forum and documentation.

      In the code below I doesn't seem like either the commandLink action or the a4j:support backing bean actions are called. Any clue what I may be missing?

      
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:h="http://java.sun.com/jsf/html" xmlns:z="http://zecom/custom"
       xmlns:c="http://java.sun.com/jstl/core"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:t="http://myfaces.apache.org/tomahawk"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
      
      <ui:composition template="/common/public/template_customer.xhtml">
      
       <ui:define name="docTitle">ZECOM: Search Product Listing</ui:define>
       <ui:define name="sectionTitle">Search Product Listing</ui:define>
       <ui:define name="body">
      
       <h:form id="searchProductListingForm">
      
       <table>
       <tr>
       <td><rich:dataTable width="483"
       id="searchListingDataTable" rows="7"
       value="#{productSearchData.searchedProductList}"
       var="searchProduct"
       binding="#{publicCompanyData.searchListingDataTable}">
       <f:facet name="header">
       Search Results
       </f:facet>
      
       <h:column>
       <f:facet name="header">Title </f:facet>
      
       <h:commandLink
       action="#{productHandler.processView}" immediate="true">
       <f:setPropertyActionListener
       target="#{productHandler.product.id}"
       value="#{searchProduct.id}" />
       #{searchProduct.title}
       </h:commandLink>
      
       </h:column>
      
       <h:column>
       <f:facet name="header"> Date </f:facet>
       #{searchProduct.prettyCreateDate}
       </h:column>
      
       <h:column>
       <f:facet name="header">Series</f:facet>
       #{searchProduct.series}
       </h:column>
      
       <h:column>
       <f:facet name="header">Speaker</f:facet>
       #{searchProduct.speaker.firstName} #{searchProduct.speaker.lastName}
       </h:column>
      
       <h:column>
       <f:facet name="header">Price </f:facet>
       #{searchProduct.price}
       </h:column>
      
       <h:column>
       <f:facet name="header"> Promo </f:facet>
       #{searchProduct.effectivePromo.code}
       </h:column>
      
       <h:column>
       <f:facet name="header"> Select</f:facet>
       <h:selectBooleanCheckbox
       value="#{searchProduct.selected}"
       binding="#{publicCompanyData.selectBooleanCheckbox}">
       <a4j:support
       action="#{publicCompanyData.searchProductListChange}"
       event="onclick"
       reRender="cbn_showCart, shoppinCartNoItems" />
       </h:selectBooleanCheckbox>
       </h:column>
      
       </rich:dataTable></td>
       </tr>
       <tr>
       <td><rich:datascroller align="center"
       for="searchListingDataTable" maxPages="20"
       page="1" id="searchListingDataTableScroller" />
      
       </td>
       </tr>
       </table>
       <br />
       <table align="center" id="tbl_showCart" style="width: 50%;">
       <tr>
       <td align="center"><h:commandButton
       id="cbn_showCart" styleClass="h-button"
       action="#{homepageHandler.showCart}"
       value="Show Cart"
       disabled="#{not shoppingCart.displayShowShoppingCartButton}" /></td>
       </tr>
       </table>
       </h:form>
       </ui:define>
      </ui:composition>
      </html>