[jboss-user] [Beginner's Corner] - InputNumberSpinner in ExtendedDataTable events not catched

Junior Joseph do-not-reply at jboss.com
Wed Jun 29 19:39:49 EDT 2011


Junior Joseph [http://community.jboss.org/people/nkjunior] created the discussion

"InputNumberSpinner in ExtendedDataTable events not catched"

To view the discussion, visit: http://community.jboss.org/message/612609#612609

--------------------------------------------------------------
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="#/#" />
                                                </f:facet>
                                                                                </rich:datascroller>
                                        </f:facet>
                                            <h:outputText value="#{deliveryItem.cost*deliveryItem.deliveringQuantity}"/>        
                                    </rich:extendedDataTable>


I need help please.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/612609#612609]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110629/aef94ad4/attachment-0001.html 


More information about the jboss-user mailing list