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?