Author: ilya_shaikovsky
Date: 2008-03-12 07:11:58 -0400 (Wed, 12 Mar 2008)
New Revision: 6743
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
Log:
Columns demo skeleton added
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2008-03-12
09:52:57 UTC (rev 6742)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2008-03-12
11:11:58 UTC (rev 6743)
@@ -30,7 +30,7 @@
private static int DECIMALS = 1;
private static int ROUNDING_MODE = BigDecimal.ROUND_HALF_UP;
- private static List <DemoInventoryItem> allCars = null;
+ private List <DemoInventoryItem> allCars = null;
public DataTableScrollerBean() {
initColumnsHeaders();
@@ -224,16 +224,18 @@
public ArrayList<DemoInventoryItem[]> getModel() {
- ArrayList model = new ArrayList();
- model.add(createCar("Chevrolet","Corvette", 10).toArray());
- model.add(createCar("Ford","Explorer", 10).toArray());
- model.add(createCar("Nissan","Maxima", 10).toArray());
- model.add(createCar("Toyota","Camry", 10).toArray());
- model.add(createCar("GMC","Yukon", 10).toArray());
- model.add(createCar("Infiniti","G35", 10).toArray());
-
+ ArrayList<DemoInventoryItem[]> model = new
ArrayList<DemoInventoryItem[]>();
+ for (int i = 0; i < 9; i++) {
+ DemoInventoryItem[] items = new DemoInventoryItem[6];
+ items[0]=createCar("Chevrolet","Corvette", 1).get(0);
+ items[1]=createCar("Ford","Explorer", 1).get(0);
+ items[2]=createCar("Nissan","Maxima", 1).get(0);
+ items[3]=createCar("Toyota","Camry", 1).get(0);
+ items[4]=createCar("GMC","Yukon", 1).get(0);
+ items[5]=createCar("Infiniti","G35", 1).get(0);
+ model.add(items);
+ }
return model;
- //TODO Columns rendered wrong for such model
}
public ArrayList<Facet> getColumns() {
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
---
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2008-03-12
09:52:57 UTC (rev 6742)
+++
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2008-03-12
11:11:58 UTC (rev 6743)
@@ -69,12 +69,13 @@
portlet= ajaxMisc, Ajax Portlet, /images/ico_common.gif,
/images/cn_AjaxPortlet.gif,
RichFacesComponentsLibrary.html#portlet,
jbossajax4jsf/freezone/docs/tlddoc/a4j/portlet.html,
jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIPortlet.html,
/richfaces/portlet.jsf
effect= richMisc, Effect, /images/ico_common.gif,
/images/cn_Effect.gif,
RichFacesComponentsLibrary.html#effect,
jbossrichfaces/freezone/docs/tlddoc/rich/effect.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIEffect.html,
/richfaces/effect.jsf
contextMenu= richMenu, Context Menu, /images/ico_dropDownMenu.gif,
/images/cn_contextMenu.gif,
RichFacesComponentsLibrary.html\#contextMenu,
jbossrichfaces/freezone/docs/tlddoc/rich/contextMenu.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIContextMenu.html,
/richfaces/contextMenu.jsf
-componentControl=richMisc, Component Control, /images/ico_common.gif,
\t\t/images/cn_componentControl.gif,
RichFacesComponentsLibrary.html\#componentControl,
jbossrichfaces/freezone/docs/tlddoc/rich/componentControl.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIcomponentControl.html,
/richfaces/componentControl.jsf
-orderingList=richSelect, Ordering List, \t \t/images/ico_DataTable.gif,
\t/images/cn_orderingList.gif, RichFacesComponentsLibrary.html\#orderingList,
jbossrichfaces/freezone/docs/tlddoc/rich/orderingList.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIorderingList.html,
\t\t/richfaces/orderingList.jsf
-listShuttle=richSelect, List Shuttle, \t\t \t\t/images/ico_DataTable.gif,
/images/cn_listShuttle.gif, RichFacesComponentsLibrary.html\#listShuttle,
jbossrichfaces/freezone/docs/tlddoc/rich/listShuttle.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIlistShuttle.html,
\t\t/richfaces/listShuttle.jsf
-pickList=richSelect, Pick List, \t\t\t\t\t/images/ico_DataTable.gif,
/images/cn_listShuttle.gif, RichFacesComponentsLibrary.html\#pickList,
jbossrichfaces/freezone/docs/tlddoc/rich/pickList.html,
\t\tjbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIpickList.html,
\t\t\t\t/richfaces/pickList.jsf
-progressBar=richOutputs, Progress Bar, \t\t \t\t/images/ico_DataTable.gif,
/images/cn_listShuttle.gif, RichFacesComponentsLibrary.html\#progressBar,
jbossrichfaces/freezone/docs/tlddoc/rich/progressBar.html,
\t\tjbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIprogressBar.html,
\t/richfaces/progressBar.jsf
-comboBox=richInputs, Combo Box, \t\t/images/ico_ComboBox.gif,
\t\t/images/cn_ComboBox.gif, RichFacesComponentsLibrary.html\#comboBox,
jbossrichfaces/freezone/docs/tlddoc/rich/comboBox.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIcomboBox.html,
\t\t\t\t\t/richfaces/comboBox.jsf
-inplaceInput=richInputs, Inplace Input, \t\t/images/ico_InplaceInput.gif,
\t\t/images/cn_InplaceInput.gif,
RichFacesComponentsLibrary.html\#inplaceInput,
jbossrichfaces/freezone/docs/tlddoc/rich/inplaceInput.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIinplaceInput.html,
\t\t\t\t\t/richfaces/inplaceInput.jsf
-inplaceSelect=richInputs, Inplace Select,
\t\t/images/ico_InplaceSelect.gif, \t\t/images/cn_InplaceSelect.gif,
RichFacesComponentsLibrary.html\#inplaceSelect,
jbossrichfaces/freezone/docs/tlddoc/rich/inplaceSelect.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIinplaceSelect.html,
\t\t\t\t\t/richfaces/inplaceSelect.jsf
-sortingFiltering=richDataIterators, Sorting and Filtering Features,
\t\t/images/ico_DataTable.gif, \t\t/images/cn_DataTable.gif,
RichFacesComponentsLibrary.html\#dataTable,
jbossrichfaces/freezone/docs/tlddoc/rich/dataTable.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIdataTable.html,
\t\t\t\t\t/richfaces/sortingFilteringFeature.jsf
\ No newline at end of file
+componentControl= richMisc, Component Control, /images/ico_common.gif,
\t\t/images/cn_componentControl.gif,
RichFacesComponentsLibrary.html\#componentControl,
jbossrichfaces/freezone/docs/tlddoc/rich/componentControl.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIcomponentControl.html,
/richfaces/componentControl.jsf
+orderingList= richSelect, Ordering List, \t \t/images/ico_DataTable.gif,
\t/images/cn_orderingList.gif, RichFacesComponentsLibrary.html\#orderingList,
jbossrichfaces/freezone/docs/tlddoc/rich/orderingList.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIorderingList.html,
\t\t/richfaces/orderingList.jsf
+listShuttle= richSelect, List Shuttle, \t\t \t\t/images/ico_DataTable.gif,
/images/cn_listShuttle.gif, RichFacesComponentsLibrary.html\#listShuttle,
jbossrichfaces/freezone/docs/tlddoc/rich/listShuttle.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIlistShuttle.html,
\t\t/richfaces/listShuttle.jsf
+pickList= richSelect, Pick List, \t\t\t\t\t/images/ico_DataTable.gif,
/images/cn_listShuttle.gif, RichFacesComponentsLibrary.html\#pickList,
jbossrichfaces/freezone/docs/tlddoc/rich/pickList.html,
\t\tjbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIpickList.html,
\t\t\t\t/richfaces/pickList.jsf
+progressBar= richOutputs, Progress Bar, \t\t \t\t/images/ico_DataTable.gif,
/images/cn_listShuttle.gif, RichFacesComponentsLibrary.html\#progressBar,
jbossrichfaces/freezone/docs/tlddoc/rich/progressBar.html,
\t\tjbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIprogressBar.html,
\t/richfaces/progressBar.jsf
+comboBox= richInputs, Combo Box, \t\t/images/ico_ComboBox.gif,
\t\t/images/cn_ComboBox.gif, RichFacesComponentsLibrary.html\#comboBox,
jbossrichfaces/freezone/docs/tlddoc/rich/comboBox.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIcomboBox.html,
\t\t\t\t\t/richfaces/comboBox.jsf
+inplaceInput= richInputs, Inplace Input,
\t\t/images/ico_InplaceInput.gif, \t\t/images/cn_InplaceInput.gif,
RichFacesComponentsLibrary.html\#inplaceInput,
jbossrichfaces/freezone/docs/tlddoc/rich/inplaceInput.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIinplaceInput.html,
\t\t\t\t\t/richfaces/inplaceInput.jsf
+inplaceSelect= richInputs, Inplace Select,
\t\t/images/ico_InplaceSelect.gif, \t\t/images/cn_InplaceSelect.gif,
RichFacesComponentsLibrary.html\#inplaceSelect,
jbossrichfaces/freezone/docs/tlddoc/rich/inplaceSelect.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIinplaceSelect.html,
\t\t\t\t\t/richfaces/inplaceSelect.jsf
+sortingFiltering= richDataIterators, Sorting and Filtering Features,
\t\t/images/ico_DataTable.gif, \t\t/images/cn_DataTable.gif,
RichFacesComponentsLibrary.html\#dataTable,
jbossrichfaces/freezone/docs/tlddoc/rich/dataTable.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIdataTable.html,
\t\t\t\t\t/richfaces/sortingFilteringFeature.jsf
+columns= richDataIterators, \t\tColumns, \t\t/images/ico_columns.gif,
\t\t/images/cn_Columns.gif, \t\t\tRichFacesComponentsLibrary.html\#columns,
jbossrichfaces/freezone/docs/tlddoc/rich/columns.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIColumns.html,
\t\t\t\t\t/richfaces/columns.jsf
\ No newline at end of file