0 Replies Latest reply on Jul 5, 2011 9:35 AM by Junior Joseph

    InputNumberSpinner in ExtendedDataTable events not catched

    Junior Joseph Newbie
      Hi to the community.
      
      
      
      I  am new to richfaces and I have some problems.
      
      
      Infact, I have a use case of delivery Items I have to validate and for that the user has to input the delivered quantity and the unit cost. I used inputNumberSpinner to let him to it directly from the ExtendedDataTable. The problem I have is that the events of the InputNumberSpinner are not launched (I tried onchange, onblur, onupkey, ondownkey). Here is the code .xhtml :
      
      
      
      
      <rich
      :extendedDataTable
      
      
         id="DeliveryItemListDataTable"
                                              rendered="true"
                                              rows="25"
                                              var="deliveryItem"
                                              rowKeyVar="row"
                                              width="100%"
                                              height="250px"
                                              value="#{deliveryListPanel.deliveryDialog.deliveryItems}"
                                              selection="#{deliveryListPanel.deliveryDialog.selection}"
                                              rowClasses="row-style-impair, row-style-pair"
                                              cellpadding="0"
                                              selectionMode="multi"
                                              selectedClass="row-style-selected"
                                              noDataLabel="#{messages['deliveryitemlist.datalist.nodata']}"
                                              reRender="colItemPC,colItemCommandedQuantity,colItemAlreadyDeliveredQuantity"
                                              frozenColumns="3"
                                              event="selectionchange">
      
      
                                              <rich:column id="colItemNum" width="5%">
                                                  <f:facet name="header">
                                                      <h:panelGroup>
                                                          <h:outputText value="#{messages['estock.deliveryitem.list.colitem.number.title']}"/>
                                                      </h:panelGroup>
                                                  </f:facet>
                                                  <h:outputText value="row" />
      
                                              </rich:column>   
      
      
      
                                              <rich:column id="colItemProduct" width="20%" selfSorted="true">
                                                  <f:facet name="header">
                                                      <h:panelGroup>
                                                          <h:outputText value="#{messages['estock.deliveryitem.list.colitem.product.title']}"/>
                                                      </h:panelGroup>
                                                  </f:facet>
                                                  <h:outputText value="#{deliveryItem.productConditionment.product.designation}" />
                                              </rich:column>                       
      
      
                                               <rich:column id="colItemProductConditionnement" width="20%" selfSorted="true">
                                                  <f:facet name="header">
                                                      <h:panelGroup>
                                                          <h:outputText value="#{messages['estock.deliveryitem.list.colitem.product.conditionnement.title']}"/>
                                                      </h:panelGroup>
                                                  </f:facet>
                                                  <h:outputText value="#{deliveryItem.productConditionment.conditionment.designation}(#{deliveryItem.productConditionment.quantity})" />
                                              </rich:column>
      
      
                                              <rich:column id="colItemCommandedQuantity" width="10%" selfSorted="true">
                                                  <f:facet name="header">
                                                      <h:panelGroup>
                                                          <h:outputText value="#{messages['estock.deliveryitem.list.colitem.Commandedquantity.title']}"/>
                                                      </h:panelGroup>
                                                  </f:facet>
                                                  <h:outputText value="#{deliveryItem.commandQuantity}" />
                                              </rich:column>
      
      
                                              <rich:column id="colItemAlreadyDeliveredQuantity" width="10%">
                                                  <f:facet name="header">
                                                      <h:panelGroup>
                                                          <h:outputText value="#{messages['estock.deliveryitem.list.colitem.AlreadyDeliveredquantity.title']}"/>
                                                      </h:panelGroup>
                                                  </f:facet>
                                                  <h:outputText value="#{deliveryItem.commandAlreadyDeliveredQuantity}" />
                                              </rich:column>
      
      
                                              <rich:column id="colItemDeliveringQuantity" width="15%">
                                                  <f:facet name="header">
                                                      <h:panelGroup>
                                                          <h:outputText value="#{messages['estock.deliveryitem.list.colitem.Deliveringquantity.title']}"/>
                                                      </h:panelGroup>
                                                  </f:facet>
                                                  <h:panelGroup>
                                                       <rich:inputNumberSpinner id="txtDeliveringQuantity" value="#{deliveryItem.deliveringQuantity}" minValue="0" style="width = 50%" step="1" enableManualInput="true" maxValue ="999999999"/>
                                                       <a4j:support event="onblur" render = "colItemProductTotalCost" action = "#{deliveryDialog.totalCostItemsListener}" ajaxSingle="true"/>
                                                  </h:panelGroup>
                                              </rich:column>
      
      
                                              <rich:column id="colItemUnitCost" width="15%">
                                                  <f:facet name="header">
                                                      <h:panelGroup>
                                                          <h:outputText value="#{messages['estock.deliveryitem.list.colitem.Cost.title']}"/>
                                                      </h:panelGroup>
                                                  </f:facet>
                                                  <h:panelGroup>
                                                      <rich:inputNumberSpinner id="txtDeliveryCost" value="#{deliveryItem.cost}" minValue="0" style="width = 50%" step="1" enableManualInput="true" maxValue ="999999999" />
                                                      <a4j:support event="onblur" render = "colItemProductTotalCost"  ajaxSingle="true"/>
                                                  </h:panelGroup>
                                              </rich:column>
      
      
                                              <rich:column id="colItemProductTotalCost" width="15%">
                                                  <f:facet name="header">
                                                      <h:panelGroup>
                                                          <h:outputText value="#{messages['estock.deliveryitem.list.colitem.total.Cost.title']}"/>
                                                      </h:panelGroup>
                                                  </f:facet>
                                                  <h:outputText value="#{deliveryItem.cost*deliveryItem.deliveringQuantity}"/>
                                              </rich:column>
      
      
                                              <f:facet name="footer">
                                                  <rich:datascroller pageIndexVar="pageIndex" pagesVar="allPages">
                                                      <f:facet name="pages">
                                                          <h:outputText value="#{pageIndex}/#{allPages}" />
                                                      </f:facet>
      
      
                                                  </rich:datascroller>
                                              </f:facet>
                                                  <h:outputText value="#{deliveryItem.cost*deliveryItem.deliveringQuantity}"/>       
                                          </rich:extendedDataTable>
       
      
      
      
      
      I need help please.