Author: mvitenkov
Date: 2008-09-26 09:27:16 -0400 (Fri, 26 Sep 2008)
New Revision: 10574
Modified:
trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTable.jsp
trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableProperty.jsp
Log:
Modified:
trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTable.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTable.jsp 2008-09-26
13:27:01 UTC (rev 10573)
+++
trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTable.jsp 2008-09-26
13:27:16 UTC (rev 10574)
@@ -34,8 +34,7 @@
width: 100%;
height: 100%;
}
-</style>
-
+</style>
<rich:extendedDataTable id="demoTable"
value="#{extendedDataTableBean.dataModel}" var="patient"
style="margin: 0 auto;"
@@ -48,16 +47,11 @@
selection="#{extendedDataTableBean.selection}" rowKeyVar="rkvar"
tableState="#{extendedDataTableBean.tableState}"
binding="#{extendedDataTableControlBean.extDTable}"
- onclick="#{event.onclick}"
- ondblclick="#{event.ondblclick}"
- onkeydown="#{event.onkeydown}"
- onkeypress="#{event.onkeypress}"
- onkeyup="#{event.onkeyup}"
- onmousedown="#{event.onmousedown}"
- onmousemove="#{event.onmousemove}"
- onmouseout="#{event.onmouseout}"
- onmouseover="#{event.onmouseover}"
- onmouseup="#{event.onmouseup}"
+ onclick="#{event.onclick}" ondblclick="#{event.ondblclick}"
+ onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}"
onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}"
onRowClick="#{event.onRowClick}"
onRowDblClick="#{event.onRowDblClick}"
onRowMouseDown="#{event.onRowMouseDown}"
@@ -65,7 +59,11 @@
onRowMouseOut="#{event.onRowMouseOut}"
onRowMouseOver="#{event.onRowMouseOver}"
onRowMouseUp="#{event.onRowMouseUp}"
- onselectionchange="alert('onselectionchange works!')">
+ onselectionchange="#{event.onselectionchange}"
+ border="#{extendedDataTableControlBean.border}"
+ cellpadding="#{extendedDataTableControlBean.cellpadding}"
+ cellspacing="#{extendedDataTableControlBean.cellspacing}"
+ dir="#{extendedDataTableControlBean.dir}">
<rich:column id="firstName" headerClass="dataTableHeader"
width="25%"
label="#{msg['patient.firstName']}" sortable="true"
sortBy="#{patient.firstName}" filterBy="#{patient.firstName}"
@@ -74,7 +72,7 @@
<h:outputText value="#{msg['patient.firstName']}" />
</f:facet>
<h:outputText id="text" value="#{patient.firstName}">
- <rich:toolTip value="sasasasasasa"/>
+ <rich:toolTip value="sasasasasasa" />
</h:outputText>
</rich:column>
<rich:column id="lastName" headerClass="dataTableHeader"
width="25%"
Modified:
trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableProperty.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableProperty.jsp 2008-09-26
13:27:01 UTC (rev 10573)
+++
trunk/test-applications/jsp/src/main/webapp/ExtendedDataTable/ExtendedDataTableProperty.jsp 2008-09-26
13:27:16 UTC (rev 10574)
@@ -4,79 +4,113 @@
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="extendedDataTablePropertySubviewID">
-
- <h:panelGrid columns="2">
- <h:outputLabel value="#{msg['table.width']}"
for="tableWidthInput" />
- <h:inputText
- id="tableWidthInput"
- value="#{extendedDataTableControlBean.width}" />
- <h:outputLabel value="#{msg['table.height']}"
for="tableHeightInput" />
- <h:inputText
- id="tableHeightInput"
- value="#{extendedDataTableControlBean.height}" />
- <h:outputLabel value="#{msg['table.patientsNumber']}"
for="tablePatientsNumberInput" />
- <h:inputText
- id="tablePatientsNumberInput"
- value="#{extendedDataTableBean.patientsNumber}" />
- <h:outputLabel value="#{msg['table.sortMode']}"
for="tableSortModeSelect" />
- <h:selectOneMenu
- id="tableSortModeSelect"
- value="#{extendedDataTableControlBean.sortMode}"
- >
- <f:selectItems
value="#{extendedDataTableControlBean.sortModeSelectItems}"/>
- </h:selectOneMenu>
- <h:outputLabel value="#{msg['table.selectionMode']}"
for="tableSelectionModeSelect" />
- <h:selectOneMenu
- id="tableSelectionModeSelect"
- value="#{extendedDataTableControlBean.selectionMode}"
- >
- <f:selectItems
value="#{extendedDataTableControlBean.selectionModeSelectItems}"/>
- </h:selectOneMenu>
- <h:outputText value="#{msg['table.paginated']}"/>
- <h:selectBooleanCheckbox
- id="paginatedCheckbox"
- value="#{extendedDataTableControlBean.paginated}" />
- <h:outputLabel value="#{msg['table.rowsNumber']}"
for="tableRowsNumberInput" />
- <h:inputText
- id="tableRowsNumberInput"
- value="#{extendedDataTableControlBean.rowsNumber}" />
-
- <h:commandButton value="binding"
actionListener="#{extendedDataTableControlBean.checkBinding}"/>
- <h:outputText
value="#{extendedDataTableControlBean.bindLabel}" id="bindLabel"/>
- </h:panelGrid>
- <br/>
- <h:commandButton value="add test"
action="#{extendedDataTableControlBean.addExtDTable}"></h:commandButton>
- <a4j:commandButton value="#{msg['table.update']}"
reRender="mainPanel">
- </a4j:commandButton>
- <a4j:commandButton
value="#{msg['table.testComponentState']}"
- action="stateTest"
- >
- </a4j:commandButton>
- <br/>
-
- <rich:spacer height="5px" width="100%">
- </rich:spacer>
- <rich:dataTable id="selectedPatients"
value="#{extendedDataTableBean.selectedItems}"
var="selectedPatient">
- <f:facet name="header">
- <h:outputText
value="#{msg['table.selectedPatients']}" />
- </f:facet>
- <rich:column id="selectedFirstName"
- headerClass="dataTableHeader"
- label="#{msg['patient.firstName']}">
- <f:facet name="header">
- <h:outputText
value="#{msg['patient.firstName']}" />
- </f:facet>
- <h:outputText value="#{selectedPatient.firstName}" />
- </rich:column>
- <rich:column id="selectedLastName"
- headerClass="dataTableHeader"
- label="#{msg['patient.lastName']}">
- <f:facet name="header">
- <h:outputText value="#{msg['patient.lastName']}"
/>
- </f:facet>
- <h:outputText value="#{selectedPatient.lastName}" />
- </rich:column>
- </rich:dataTable>
- <rich:messages>
- </rich:messages>
+
+ <h:panelGrid columns="2">
+ <h:outputLabel value="#{msg['table.width']}"
for="tableWidthInput" />
+ <h:inputText id="tableWidthInput"
+ value="#{extendedDataTableControlBean.width}">
+ <a4j:support event="onchange"
reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:outputLabel value="#{msg['table.height']}"
for="tableHeightInput" />
+ <h:inputText id="tableHeightInput"
+ value="#{extendedDataTableControlBean.height}">
+ <a4j:support event="onchange"
reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:outputLabel value="#{msg['table.patientsNumber']}"
+ for="tablePatientsNumberInput" />
+ <h:inputText id="tablePatientsNumberInput"
+ value="#{extendedDataTableBean.patientsNumber}">
+ <a4j:support event="onchange"
reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:outputLabel value="#{msg['table.sortMode']}"
+ for="tableSortModeSelect" />
+ <h:selectOneMenu id="tableSortModeSelect"
+ value="#{extendedDataTableControlBean.sortMode}">
+ <f:selectItems
+ value="#{extendedDataTableControlBean.sortModeSelectItems}" />
+ <a4j:support event="onchange"
reRender="demoTable"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputLabel value="#{msg['table.selectionMode']}"
+ for="tableSelectionModeSelect" />
+ <h:selectOneMenu id="tableSelectionModeSelect"
+ value="#{extendedDataTableControlBean.selectionMode}">
+ <f:selectItems
+ value="#{extendedDataTableControlBean.selectionModeSelectItems}" />
+ <a4j:support event="onchange"
reRender="demoTable"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="#{msg['table.paginated']}" />
+ <h:selectBooleanCheckbox id="paginatedCheckbox"
+ value="#{extendedDataTableControlBean.paginated}"
onclick="submit()" />
+
+ <h:outputLabel value="#{msg['table.rowsNumber']}"
+ for="tableRowsNumberInput" />
+ <h:inputText id="tableRowsNumberInput"
+ value="#{extendedDataTableControlBean.rowsNumber}">
+ <a4j:support event="onchange"
reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:commandButton value="binding"
+ actionListener="#{extendedDataTableControlBean.checkBinding}" />
+ <h:outputText value="#{extendedDataTableControlBean.bindLabel}"
+ id="bindLabel" />
+
+ <h:outputText value="border" />
+ <h:inputText value="#{extendedDataTableControlBean.border}">
+ <a4j:support event="onchange"
reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="cellpadding" />
+ <h:inputText value="#{extendedDataTableControlBean.cellpadding}">
+ <a4j:support event="onchange"
reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="cellspacing" />
+ <h:inputText value="#{extendedDataTableControlBean.cellspacing}">
+ <a4j:support event="onchange"
reRender="demoTable"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="dir" />
+ <h:selectOneRadio value="#{extendedDataTableControlBean.dir}">
+ <f:selectItem itemLabel="RTL" itemValue="RTL" />
+ <f:selectItem itemLabel="LTR" itemValue="LTR" />
+ <a4j:support event="onchange"
reRender="demoTable"></a4j:support>
+ </h:selectOneRadio>
+
+ </h:panelGrid>
+ <br />
+ <h:commandButton value="add test"
+ action="#{extendedDataTableControlBean.addExtDTable}"></h:commandButton>
+ <a4j:commandButton value="#{msg['table.update']}"
reRender="mainPanel">
+ </a4j:commandButton>
+ <br />
+
+ <rich:spacer height="5px" width="100%">
+ </rich:spacer>
+ <rich:dataTable id="selectedPatients"
+ value="#{extendedDataTableBean.selectedItems}"
var="selectedPatient">
+ <f:facet name="header">
+ <h:outputText value="#{msg['table.selectedPatients']}" />
+ </f:facet>
+ <rich:column id="selectedFirstName"
headerClass="dataTableHeader"
+ label="#{msg['patient.firstName']}">
+ <f:facet name="header">
+ <h:outputText value="#{msg['patient.firstName']}" />
+ </f:facet>
+ <h:outputText value="#{selectedPatient.firstName}" />
+ </rich:column>
+ <rich:column id="selectedLastName"
headerClass="dataTableHeader"
+ label="#{msg['patient.lastName']}">
+ <f:facet name="header">
+ <h:outputText value="#{msg['patient.lastName']}" />
+ </f:facet>
+ <h:outputText value="#{selectedPatient.lastName}" />
+ </rich:column>
+ </rich:dataTable>
+ <rich:messages>
+ </rich:messages>
</f:subview>
\ No newline at end of file