Author: pkawiak
Date: 2008-08-05 06:34:29 -0400 (Tue, 05 Aug 2008)
New Revision: 9910
Added:
trunk/sandbox/samples/extendedDataTable-sample/src/main/java/i18n/messages_en.properties
Modified:
trunk/sandbox/samples/extendedDataTable-sample/src/main/java/i18n/messages_pl.properties
trunk/sandbox/samples/extendedDataTable-sample/src/main/java/org/richfaces/samples/extdt/model/impl/DemoPatientProvider.java
trunk/sandbox/samples/extendedDataTable-sample/src/main/webapp/WEB-INF/faces-config.xml
Log:
developer's demo improvements
Added:
trunk/sandbox/samples/extendedDataTable-sample/src/main/java/i18n/messages_en.properties
===================================================================
---
trunk/sandbox/samples/extendedDataTable-sample/src/main/java/i18n/messages_en.properties
(rev 0)
+++
trunk/sandbox/samples/extendedDataTable-sample/src/main/java/i18n/messages_en.properties 2008-08-05
10:34:29 UTC (rev 9910)
@@ -0,0 +1,16 @@
+demo.title=Extended data table demonstration
+patient.firstName=First name
+patient.id=Id
+patient.lastName=Last name
+patient.admissionDate=Admission date
+table.width=Width
+table.height=Height
+table.update=Update values
+table.sortMode=Sort mode
+table.selectionMode=Selection mode
+table.patientsNumber=Number of patients
+table.testComponentState=Test component state
+table.back=Back
+demo.testPageTitle=Component state test page
+table.paginated=Enable paginator
+table.rowsNumber=Number of rows
Modified:
trunk/sandbox/samples/extendedDataTable-sample/src/main/java/i18n/messages_pl.properties
===================================================================
---
trunk/sandbox/samples/extendedDataTable-sample/src/main/java/i18n/messages_pl.properties 2008-08-05
10:21:12 UTC (rev 9909)
+++
trunk/sandbox/samples/extendedDataTable-sample/src/main/java/i18n/messages_pl.properties 2008-08-05
10:34:29 UTC (rev 9910)
@@ -3,3 +3,14 @@
patient.id=Id
patient.lastName=Last name
patient.admissionDate=Admission date
+table.width=Width
+table.height=Height
+table.update=Update values
+table.sortMode=Sort mode
+table.selectionMode=Selection mode
+table.patientsNumber=Number of patients
+table.testComponentState=Test component state
+table.back=Back
+demo.testPageTitle=Component state test page
+table.paginated=Enable paginator
+table.rowsNumber=Number of rows
Modified:
trunk/sandbox/samples/extendedDataTable-sample/src/main/java/org/richfaces/samples/extdt/model/impl/DemoPatientProvider.java
===================================================================
---
trunk/sandbox/samples/extendedDataTable-sample/src/main/java/org/richfaces/samples/extdt/model/impl/DemoPatientProvider.java 2008-08-05
10:21:12 UTC (rev 9909)
+++
trunk/sandbox/samples/extendedDataTable-sample/src/main/java/org/richfaces/samples/extdt/model/impl/DemoPatientProvider.java 2008-08-05
10:34:29 UTC (rev 9910)
@@ -15,29 +15,30 @@
public class DemoPatientProvider implements DataProvider<DemoPatient>{
private String allFirstNames[] = {
- "Aaron", "Abbott", "Abel",
"Abner",
- "Abraham", "Adam", "Addison",
"Adler",
- "Adley", "Adrian", "Aedan",
"Aiken",
- "Alan", "Alastair", "Albern",
"Albert",
- "Albion", "Alden", "Aldis",
"Aldrich",
- "Alexander","Alfie", "Alfred",
"Algernon",
- "Alston", "Alton", "Alvin",
"Ambrose",
- "Amery", "Amos", "Andrew",
"Angus",
- "Ansel", "Anthony", "Archer",
"Archibald",
- "Arlen", "Arnold", "Arthur",
"Arvel",
- "Atwater", "Atwood", "Aubrey",
"Austin"
+ "Aaron", "Abbott", "Abel",
"Abner",
+ "Abraham", "Adam", "Addison",
"Adler",
+ "Adley", "Adrian", "Aedan",
"Aiken",
+ "Alan", "Alastair", "Albern",
"Albert",
+ "Albion", "Alden", "Aldis",
"Aldrich",
+ "Alexander", "Alfie", "Alfred",
"Algernon",
+ "Alston", "Alton", "Alvin",
"Ambrose",
+ "Amery", "Amos", "Andrew",
"Angus",
+ "Ansel", "Anthony", "Archer",
"Archibald",
+ "Arlen", "Arnold", "Arthur",
"Arvel",
+ "Atwater", "Atwood", "Aubrey",
"Austin",
+ "Małgorzata", "Paweł", "Piotr"
};
private String allLastNames[] = {
- "Brown", "Smith", "Patel",
- "Jones", "Williams", "Johnson",
- "Taylor", "Thomas", "Roberts",
- "Khan", "Lewis", "Jackson",
- "Clarke", "James", "Phillips",
- "Wilson", "Ali", "Mason",
- "Mitchell", "Rose", "Davis",
- "Davies", "Rodriguez", "Cox",
- "Alexander"
+ "Brown", "Smith", "Patel",
+ "Jones", "Williams", "Johnson",
+ "Taylor", "Thomas", "Roberts",
+ "Khan", "Lewis", "Jackson",
+ "Clarke", "James", "Phillips",
+ "Wilson", "Ali", "Mason",
+ "Davies", "Rodriguez", "Cox",
+ "Alexander", "Popiołek", "Buda",
+ "Goławski", "Kawiak", "Mitchel"
};
@@ -59,12 +60,12 @@
private String generateRandomFirstName() {
int rand = Math.abs(random.nextInt());
- return allFirstNames[rand%(allFirstNames.length-1)];
+ return allFirstNames[rand%(allFirstNames.length)];
}
private String generateRandomLastName() {
int rand = Math.abs(random.nextInt());
- return allLastNames[rand%(allLastNames.length-1)];
+ return allLastNames[rand%(allLastNames.length)];
}
/* (non-Javadoc)
Modified:
trunk/sandbox/samples/extendedDataTable-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
trunk/sandbox/samples/extendedDataTable-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-08-05
10:21:12 UTC (rev 9909)
+++
trunk/sandbox/samples/extendedDataTable-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-08-05
10:34:29 UTC (rev 9910)
@@ -26,8 +26,8 @@
</navigation-rule>
<application>
<locale-config>
- <default-locale>pl</default-locale>
- <supported-locale>de</supported-locale>
+ <default-locale>en</default-locale>
+ <supported-locale>pl</supported-locale>
<supported-locale>en</supported-locale>
</locale-config>
<resource-bundle>