4 Replies Latest reply on Jul 1, 2007 3:31 PM by mladen.babic

    Action in subTable doesn't work???

    mladen.babic

      Hi ,

      I have used subtable in page and I have put some buttons in rows,but when i click a button nothing happens.I 've tried same action on parent datatable and it works fine.
      This is a fragment of my page code:

      
      ........
      <ui:define name="body">
       <h:form>
       <rich:dataTable
       headerClass="standardRich_SortHeader" id="users_sub" width="100%"
       var="subuser" rows="20" value="#{departmentUsers}" columnsWidth="0" >
       <f:facet name="header">
       <rich:columnGroup>
       <rich:column rowspan="2" colspan="2">
       <h:outputText value="#{messages.users}" />
       </rich:column>
       <rich:column colspan="2">
       <h:outputText value="#{messages.basketdetail}" />
       </rich:column>
      
       </rich:columnGroup>
       </f:facet>
       <rich:column colspan="5">
       <h:commandButton action="/shop/startpage.xhtml" value="Beck"></h:commandButton>
       <b> <h:outputText
       value="#{subuser.name} - #{subuser.department.name}" /> </b>
       </rich:column>
      
       <rich:subTable var="subbasket" headerClass="standardRich_SortHeader"
       rendered="#{not empty subuser.baskets}" value="#{subuser.baskets}">
       <rich:columnGroup>
       <rich:column >
       <h:outputText value="" />
       </rich:column>
       <rich:column >
       <h:outputText value="#{messages.datecreated}" />
       </rich:column>
       <rich:column>
       <h:outputText value="#{messages.action}" />
       </rich:column>
       <rich:column>
       <h:outputText value="#{messages.price}" />
       </rich:column>
       <rich:column>
       <h:outputText value="#{messages.childCount}" />
       </rich:column>
       </rich:columnGroup>
       <rich:column>
       <rich:spacer />
       </rich:column>
       <rich:column>
       <h:outputText value="#{subbasket.created} - #{messages.stored}"
       style="color:green" rendered="#{subbasket.status ne 'SENT'}" />
       <h:outputText
       value="#{subbasket.created} - #{subbasket.status} #{messages.onwait} "
       style="color:red" rendered="#{subbasket.status eq 'SENT'}" />
       </rich:column>
       <rich:column>
       <h:commandButton action="/shop/startpage.xhtml" value="Beck"></h:commandButton>
       <h:commandLink
       action="#{basketHandlerBean.selectBasket(subbasket)}"
       rendered="#{not empty subbasket.productsBasket}">
      
       <t:graphicImage value="/images/show.gif"></t:graphicImage>
       </h:commandLink>
       <rich:spacer width="10"></rich:spacer>
       <h:commandLink
       action="#{basketHandlerBean.deleteBasketByChief(subbasket)}">
      
       <t:graphicImage value="/images/delete.gif" />
       </h:commandLink>
      
       </rich:column>
       <rich:column>
       <h:outputText value="#{subbasket.totalPrice}">
       <f:convertNumber type="currency" currencySymbol="$"/>
       </h:outputText>
       </rich:column>
       <rich:column>
       <h:outputText value="#{subbasket.currentChildCount}">
       <f:convertNumber />
       </h:outputText>
       </rich:column>
       </rich:subTable>
      
       </rich:dataTable>
      


      Best regards,
      mb