Author: pkawiak
Date: 2009-02-16 16:04:37 -0500 (Mon, 16 Feb 2009)
New Revision: 12678
Modified:
trunk/samples/extendedDataTable-sample/src/main/java/org/richfaces/samples/extdt/beans/ExtendedDataTableControlBean.java
trunk/samples/extendedDataTable-sample/src/main/resources/i18n/messages.properties
trunk/samples/extendedDataTable-sample/src/main/resources/i18n/messages_en.properties
trunk/samples/extendedDataTable-sample/src/main/resources/i18n/messages_pl.properties
trunk/samples/extendedDataTable-sample/src/main/webapp/pages/index.jsp
Log:
RF-5086: ExtDt's context menu can now be enabled / disabled via enableContextMenu
parameter. Changes to demo project reflecting that new functionality introduced.
Modified:
trunk/samples/extendedDataTable-sample/src/main/java/org/richfaces/samples/extdt/beans/ExtendedDataTableControlBean.java
===================================================================
---
trunk/samples/extendedDataTable-sample/src/main/java/org/richfaces/samples/extdt/beans/ExtendedDataTableControlBean.java 2009-02-16
21:03:30 UTC (rev 12677)
+++
trunk/samples/extendedDataTable-sample/src/main/java/org/richfaces/samples/extdt/beans/ExtendedDataTableControlBean.java 2009-02-16
21:04:37 UTC (rev 12678)
@@ -14,6 +14,7 @@
String sortMode;
String selectionMode;
Integer rowsNumber;
+ boolean contextMenuEnabled = true;
boolean paginated = false;
public ExtendedDataTableControlBean() {
@@ -91,4 +92,12 @@
this.height = height;
}
+ public boolean isContextMenuEnabled() {
+ return contextMenuEnabled;
+ }
+
+ public void setContextMenuEnabled(boolean contextMenuEnabled) {
+ this.contextMenuEnabled = contextMenuEnabled;
+ }
+
}
Modified:
trunk/samples/extendedDataTable-sample/src/main/resources/i18n/messages.properties
===================================================================
---
trunk/samples/extendedDataTable-sample/src/main/resources/i18n/messages.properties 2009-02-16
21:03:30 UTC (rev 12677)
+++
trunk/samples/extendedDataTable-sample/src/main/resources/i18n/messages.properties 2009-02-16
21:04:37 UTC (rev 12678)
@@ -16,3 +16,4 @@
table.rowsNumber=Number of rows
table.selectedPatients=Selected patients
select=Select
+table.enableContextMenu=Enable context menu
Modified:
trunk/samples/extendedDataTable-sample/src/main/resources/i18n/messages_en.properties
===================================================================
---
trunk/samples/extendedDataTable-sample/src/main/resources/i18n/messages_en.properties 2009-02-16
21:03:30 UTC (rev 12677)
+++
trunk/samples/extendedDataTable-sample/src/main/resources/i18n/messages_en.properties 2009-02-16
21:04:37 UTC (rev 12678)
@@ -16,3 +16,4 @@
table.rowsNumber=Number of rows
table.selectedPatients=Selected patients
select=Select
+table.enableContextMenu=Enable context menu
Modified:
trunk/samples/extendedDataTable-sample/src/main/resources/i18n/messages_pl.properties
===================================================================
---
trunk/samples/extendedDataTable-sample/src/main/resources/i18n/messages_pl.properties 2009-02-16
21:03:30 UTC (rev 12677)
+++
trunk/samples/extendedDataTable-sample/src/main/resources/i18n/messages_pl.properties 2009-02-16
21:04:37 UTC (rev 12678)
@@ -16,3 +16,4 @@
table.rowsNumber=Number of rows
table.selectedPatients=Selected patients
select=Selekt
+table.enableContextMenu=Enable context menu
Modified: trunk/samples/extendedDataTable-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/extendedDataTable-sample/src/main/webapp/pages/index.jsp 2009-02-16
21:03:30 UTC (rev 12677)
+++ trunk/samples/extendedDataTable-sample/src/main/webapp/pages/index.jsp 2009-02-16
21:04:37 UTC (rev 12678)
@@ -61,6 +61,7 @@
sortMode="#{extendedDataTableControlBean.sortMode}"
selectionMode="#{extendedDataTableControlBean.selectionMode}"
selection="#{extendedDataTableBean.selection}"
rowKeyVar="rkvar"
+ enableContextMenu="#{extendedDataTableControlBean.contextMenuEnabled}"
tableState="#{extendedDataTableBean.tableState}">
<rich:column id="firstName" headerClass="dataTableHeader"
width="25%" label="#{msg['patient.firstName']}"
sortable="true"
@@ -120,7 +121,11 @@
<h:outputLabel value="#{msg['table.patientsNumber']}"
for="tablePatientsNumberInput" />
<h:inputText
id="tablePatientsNumberInput"
- value="#{extendedDataTableBean.patientsNumber}" />
+ value="#{extendedDataTableBean.patientsNumber}" />
+ <h:outputLabel value="#{msg['table.enableContextMenu']}"
for="tableEnableContextMenu" />
+ <h:selectBooleanCheckbox
+ id="tableEnableContextMenu"
+ value="#{extendedDataTableControlBean.contextMenuEnabled}"
/>
<h:outputLabel value="#{msg['table.sortMode']}"
for="tableSortModeSelect" />
<h:selectOneMenu
id="tableSortModeSelect"