<ace:dataView value="#
{bean.cars}
"
var="car"
rows="10">
// Column Definitions
<ace:dataViewColumns value="#
{bean.col}
" />
or
<ace:dataViewColumns> // ignore value if children present
<ace:dataColumn value="#
{car.id}" headerText="ID" />
<ace:dataColumn value="#{car.name}" headerText="Name" />
<ace:dataColumn value="#{car.chassis}" headerText="Chassis" />
<ace:dataColumn value="#{car.id}
" />
<ace:dataViewColumns>
// Detail Definition //
<h:panelGrid columns="2">
<f:facet name="header">
<h:outputText value="#
{car.id}
" />
</f:facet>
Name: <h:inputText value="#
{car.name}
" />
Chassis: <h:inputText value="#
{car.chassis}
" />
<f:facet name="footer">
<h:commandButton actionListener="#
{car.setShowChart(not car.showChart)}
"
value="Show/Hide Chart" />
</f:facet>
<h:panelGrid>
<ace:chart value="#
{bean.getPerformanceData(car)}
"
xaxis="#
{bean.xaxis}
"
yaxes="#
{bean.yaxes}
" />
</ace:dataView>
As mentioned above, there is no mixing of the column definition types. If use a programmatic model, the declarative child components are ignored.
Revision: 33378
Author: philip.breau
Date: February-11-13 3:03:10 PM
Message:
MOBI-651 Mobile Data Table prototype
Added : /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/java/org/icemobile/samples/mobileshowcase/view/examples/layout/datatable
Added : /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/java/org/icemobile/samples/mobileshowcase/view/examples/layout/datatable/Car.java
Added : /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/java/org/icemobile/samples/mobileshowcase/view/examples/layout/datatable/DataTableBean.java
Added : /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/java/org/icemobile/samples/mobileshowcase/view/examples/layout/datatable/DataTableData.java
Added : /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/java/org/icemobile/samples/mobileshowcase/view/examples/layout/datatable/VehicleGenerator.java
Modified : /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/java/org/icemobile/samples/mobileshowcase/view/navigation/LayoutAndNavigationMenu.java
Modified : /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/resources/org/icemobile/samples/mobileshowcase/view/resources/messages.properties
Modified : /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/webapp/WEB-INF/includes/content/content-stack.xhtml
Added : /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/webapp/WEB-INF/includes/examples/layout/datatable-desc.xhtml
Added : /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/webapp/WEB-INF/includes/examples/layout/datatable-example.xhtml
Added : /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/webapp/WEB-INF/includes/examples/layout/datatable.xhtml
Added : /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/webapp/resources/components/dataTable.xhtml