Author: vmolotkov
Date: 2008-09-04 09:06:38 -0400 (Thu, 04 Sep 2008)
New Revision: 10307
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable/examples/simple.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-4361
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable/examples/simple.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable/examples/simple.xhtml 2008-09-04
10:28:08 UTC (rev 10306)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable/examples/simple.xhtml 2008-09-04
13:06:38 UTC (rev 10307)
@@ -1,33 +1,30 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:a4j="http://richfaces.org/a4j"
-
xmlns:rich="http://richfaces.org/rich">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
<ui:composition>
<h:form>
<h:panelGrid columns="2" columnClasses="top,top">
- <rich:extendedDataTable value="#{capitalsBean.capitals}"
var="cap" id="table"
- width="420px" height="400px"
sortMode="#{extendedTableBean.sortMode}"
+ <rich:extendedDataTable value="#{capitalsBean.capitals}"
var="cap" id="table"
+ width="580px" height="400px"
sortMode="#{extendedTableBean.sortMode}"
selectionMode="#{extendedTableBean.selectionMode}">
- <f:facet name="header">
- <h:outputText value="States Capitals"/>
- </f:facet>
<rich:column sortable="false">
<f:facet name="header">
<h:outputText value="Flag"/>
</f:facet>
<h:graphicImage value="#{cap.stateFlag}"/>
</rich:column>
- <rich:column sortable="true" sortBy="#{cap.state}"
filterBy="#{cap.state}" filterEvent="onkeyup">
+ <rich:column sortable="true" sortBy="#{cap.state}"
filterBy="#{cap.state}" filterEvent="onkeyup"
width="170px">
<f:facet name="header">
<h:outputText value="State Name"/>
</f:facet>
<h:outputText value="#{cap.state}"/>
</rich:column>
- <rich:column sortable="true" sortBy="#{cap.name}"
filterBy="#{cap.state}" filterEvent="onkeyup">
+ <rich:column sortable="true" sortBy="#{cap.name}"
filterBy="#{cap.state}" filterEvent="onkeyup"
width="170px">
<f:facet name="header">
<h:outputText value="State Capital"/>
</f:facet>
@@ -48,14 +45,14 @@
<h:outputText value="Sort Mode:"/>
<h:selectOneMenu value="#{extendedTableBean.sortMode}">
<f:selectItem itemLabel="Single" itemValue="single"/>
- <f:selectItem itemLabel="Multy" itemValue="multi"/>
+ <f:selectItem itemLabel="Multi" itemValue="multi"/>
<a4j:support event="onchange" ajaxSingle="true"
reRender="table"/>
</h:selectOneMenu>
<h:outputText value="Selection Mode:"/>
<h:selectOneMenu value="#{extendedTableBean.selectionMode}">
<a4j:support ajaxSingle="true" event="onchange"
reRender="table"/>
<f:selectItem itemLabel="Single" itemValue="single"/>
- <f:selectItem itemLabel="Multy" itemValue="multi"/>
+ <f:selectItem itemLabel="Multi" itemValue="multi"/>
<f:selectItem itemLabel="None" itemValue="none"/>
</h:selectOneMenu>
</h:panelGrid>