voyent
ace:column sortby  XML
Forum Index -> General Help
Author Message
lelouvenice

Joined: 29/Jan/2019 14:04:51
Messages: 2
Offline


Code:
 <ace:dataTable id="mealOrderDataTable"
                            binding="#{dispatchingOrdersResquest.mealOrderDataTable}"
                            value="#{dispatchingOrders.mealOrderLazyDataModel}" 
                            var="mealOrder"
                            lazy="true"
                            singleSort="true"
                            paginator="true"
                            paginatorPosition="bottom"
                            rows="#{dispatchingOrders.mealOrderLazyDataModel.pageSize}"
                            styleClass="slimDataTable noWrapDataTable"
                            rowStyleClass="#{dispatchingOrders.currentMealOrderRowStyleClass}"
                            >
   <ace:column headerText="#{msg.p_do_meal_order_origin_airport_code}"
                             sortBy="#{'ORIGIN_AIRPORT_CODE'}"
                             style="width: 40px; text-align: center">
                     <h:outputText value="#{!empty mealOrder.originAirportCode ? mealOrder.originAirportCode : '–'}"
                                   style="text-align: center; font-weight: bold"/>
                 </ace:column>
 </ace:dataTable>


Can someone tell me what kind of sorting mechanism in this code? Why inside sortby is not #{mealOrder.originAirportCode } but #{'ORIGIN_AIRPORT_CODE'} ? Is 'ORIGIN_AIRPORT_CODE' a string?
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team