Author: ishabalov
Date: 2007-07-13 22:08:04 -0400 (Fri, 13 Jul 2007)
New Revision: 1625
Added:
trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-group.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
trunk/samples/richfaces-demo/src/main/webapp/css/common.css
trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml
Log:
Added components grouping
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java 2007-07-13
18:45:48 UTC (rev 1624)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java 2007-07-14
02:08:04 UTC (rev 1625)
@@ -5,6 +5,7 @@
public class ComponentDescriptor {
private String id;
private String name;
+ private String group;
private String captionImage;
private String iconImage;
private String devGuideLocation;
@@ -89,4 +90,12 @@
return fc.getExternalContext().getRequestContextPath()+getDemoLocation();
}
+ public String getGroup() {
+ return group;
+ }
+
+ public void setGroup(String group) {
+ this.group = group;
+ }
+
}
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java 2007-07-13
18:45:48 UTC (rev 1624)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java 2007-07-14
02:08:04 UTC (rev 1625)
@@ -17,6 +17,7 @@
public class ComponentNavigator {
private List components = null;
private ComponentDescriptor currentComponent;
+ private List componentGroups = null;
public ComponentDescriptor getCurrentComponent() {
String id = getComponentParam();
@@ -53,6 +54,53 @@
this.currentComponent = currentComponent;
}
+ public List getComponentGroups() {
+ return componentGroups;
+ }
+ public void setComponentGroups(List componentGroups) {
+ this.componentGroups = componentGroups;
+ }
+
+ private List getFilteredComponents(String group) {
+ List ret = new ArrayList();
+ Iterator it = getComponents().iterator();
+ while (it.hasNext()) {
+ ComponentDescriptor desc = (ComponentDescriptor) it.next();
+ if (desc.getGroup().equals(group)) {
+ ret.add(desc);
+ }
+ }
+ return ret;
+ }
+
+ public List getRichDragDropComponents() {
+ return getFilteredComponents("richDragDrop");
+ }
+ public List getRichDataIterators() {
+ return getFilteredComponents("richDataIterators");
+ }
+ public List getRichMenu() {
+ return getFilteredComponents("richMenu");
+ }
+ public List getRichInputs() {
+ return getFilteredComponents("richInputs");
+ }
+ public List getRichOutputs() {
+ return getFilteredComponents("richOutputs");
+ }
+ public List getAjaxSupport() {
+ return getFilteredComponents("ajaxSupport");
+ }
+ public List getAjaxResources() {
+ return getFilteredComponents("ajaxResources");
+ }
+ public List getAjaxOutput() {
+ return getFilteredComponents("ajaxOutput");
+ }
+ public List getAjaxMisc() {
+ return getFilteredComponents("ajaxMisc");
+ }
+
public List getComponents() {
if (components==null) {
loadComponents();
@@ -91,6 +139,7 @@
desc.setId(e.getKey().toString().trim());
StringTokenizer toc = new StringTokenizer(e.getValue().toString(),",");
// #id=name,captionImage,iconImage,devGuideLocation,tldDocLocation,javaDocLocation
+ desc.setGroup(toc.nextToken().trim());
desc.setName(toc.nextToken().trim());
desc.setIconImage(toc.nextToken().trim());
desc.setCaptionImage(toc.nextToken().trim());
@@ -104,7 +153,7 @@
public int compare(Object o1, Object o2) {
ComponentDescriptor d1 = (ComponentDescriptor)o1;
ComponentDescriptor d2 = (ComponentDescriptor)o2;
- return d1.getId().compareTo(d2.getId());
+ return d1.getName().compareTo(d2.getName());
}});
setComponents(temp);
setCurrentComponent((ComponentDescriptor) temp.get(0));
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 2007-07-13
18:45:48 UTC (rev 1624)
+++
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-07-14
02:08:04 UTC (rev 1625)
@@ -1,24 +1,58 @@
# list of components in comma-separated format
#id=name,iconImage,captionImage,devGuideLocation,tldDocLocation,javaDocLocation
-panel= Panel, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
-separator= Separator, /images/ico_separator.gif,
/images/cn_separator.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/separator.jsf
-spacer= Spacer, /images/ico_spacer.gif,
/images/cn_spacer.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/spacer.jsf
-tabPanel= Tab Panel, /images/ico_tabpanel.gif,
/images/cn_tabpanel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/tabPanel.jsf
-inputNumberSlider= Input Number Slider, /images/ico_slider.gif,
/images/cn_slider.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/inputNumberSlider.jsf
-inputNumberSpinner= Input Number Spinner, /images/ico_spinner.gif,
/images/cn_spinner.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/inputNumberSpinner.jsf
-dataFilterSlider= Data Filter Slider, /images/ico_DataFilterSlider.gif,
/images/cn_DataFilterSlider.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dataFilterSlider.jsf
-dataTable= Data Table, /images/ico_DataTable.gif,
/images/cn_DataTable.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dataTable.jsf
-gmap= Google Map, /images/ico_GoogleMap.gif,
/images/cn_GoogleMap.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/gmap.jsf
-paint2d= Paint2D, /images/ico_Paint2D.gif,
/images/cn_Paint2D.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/paint2D.jsf
-toolBar= Tool Bar, /images/ico_ToolBar.gif,
/images/cn_ToolBar.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/toolBar.jsf
-simpleTogglePanel= Simple Toggle Panel, /images/ico_SimpleTogglePanel.gif,
/images/cn_SimpleTogglePanel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/simpleTogglePanel.jsf
-dragIndicator= Drag Indicator, /images/ico_DragIndicator.gif,
/images/cn_DragIndicator.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dragSupport.jsf
-dragSupport= Drag Support, /images/ico_DragSupport.gif,
/images/cn_DragSupport.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dragSupport.jsf
-dropSupport= Drop Support, /images/ico_DropSupport.gif,
/images/cn_DropSupport.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dragSupport.jsf
-panelBar= Panel Bar, /images/ico_PanelBar.gif,
/images/cn_PanelBar.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panelBar.jsf
-tree= Tree, /images/ico_Tree.gif,
/images/cn_tree.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/tree.jsf
-modalPanel= Modal Panel, /images/ico_ModalPanel.gif,
/images/cn_ModalPanel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/modalPanel.jsf
-togglePanel= Toggle Panel, /images/ico_TogglePanel.gif,
/images/cn_TogglePanel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/togglePanel.jsf
-suggestionBox= Suggestion Box, /images/ico_SuggestionBox.gif,
/images/cn_SuggestionBox.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/suggestionBox.jsf
-dataTableScroller= Data Table Scroller, /images/ico_DataTableScroller.gif,
/images/cn_DataTableScroller.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dataTableScroller.jsf
-dropDownMenu= Drop Down Menu, /images/ico_dropDownMenu.gif,
/images/cn_DropDownMenu.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dropDownMenu.jsf
+panel= richOutputs, Panel, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+separator= richOutputs, Separator,
/images/ico_separator.gif, /images/cn_separator.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/separator.jsf
+spacer= richOutputs, Spacer, /images/ico_spacer.gif,
/images/cn_spacer.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/spacer.jsf
+tabPanel= richOutputs, Tab Panel, /images/ico_tabpanel.gif,
/images/cn_tabpanel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/tabPanel.jsf
+inputNumberSlider= richInputs, Input Number Slider, /images/ico_slider.gif,
/images/cn_slider.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/inputNumberSlider.jsf
+inputNumberSpinner= richInputs, Input Number Spinner, /images/ico_spinner.gif,
/images/cn_spinner.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/inputNumberSpinner.jsf
+dataFilterSlider= richDataIterators, Data Filter Slider,
/images/ico_DataFilterSlider.gif, /images/cn_DataFilterSlider.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dataFilterSlider.jsf
+dataTable= richDataIterators, Data Table, /images/ico_DataTable.gif,
/images/cn_DataTable.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dataTable.jsf
+column= richDataIterators, Column, /images/ico_DataTable.gif,
/images/cn_DataTable.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dataTable.jsf
+columnGroup= richDataIterators, Column Group, /images/ico_DataTable.gif,
/images/cn_DataTable.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dataTable.jsf
+dataDefinitionList= richDataIterators, Data Definition List,
/images/ico_DataTable.gif, /images/cn_DataTable.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dataTable.jsf
+dataGrid= richDataIterators, Data Grid, /images/ico_DataTable.gif,
/images/cn_DataTable.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dataTable.jsf
+dataList= richDataIterators, Data List, /images/ico_DataTable.gif,
/images/cn_DataTable.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dataTable.jsf
+dataOrderedList= richDataIterators, Data Ordered List, /images/ico_DataTable.gif,
/images/cn_DataTable.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dataTable.jsf
+gmap= richOutputs, Google Map, /images/ico_GoogleMap.gif,
/images/cn_GoogleMap.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/gmap.jsf
+paint2d= richOutputs, Paint2D, /images/ico_Paint2D.gif,
/images/cn_Paint2D.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/paint2D.jsf
+toolBar= richOutputs, Tool Bar, /images/ico_ToolBar.gif,
/images/cn_ToolBar.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/toolBar.jsf
+simpleTogglePanel= richOutputs, Simple Toggle Panel,
/images/ico_SimpleTogglePanel.gif, /images/cn_SimpleTogglePanel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/simpleTogglePanel.jsf
+dragIndicator= richDragDrop, Drag Indicator,
/images/ico_DragIndicator.gif, /images/cn_DragIndicator.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dragSupport.jsf
+dragSupport= richDragDrop, Drag Support,
/images/ico_DragSupport.gif, /images/cn_DragSupport.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dragSupport.jsf
+dropSupport= richDragDrop, Drop Support,
/images/ico_DropSupport.gif, /images/cn_DropSupport.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dragSupport.jsf
+dndParam= richDragDrop, Drag-Drop Parameter,
/images/ico_DropSupport.gif, /images/cn_DropSupport.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dragSupport.jsf
+panelBar= richOutputs, Panel Bar, /images/ico_PanelBar.gif,
/images/cn_PanelBar.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panelBar.jsf
+tree= richOutputs, Tree, /images/ico_Tree.gif,
/images/cn_tree.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/tree.jsf
+modalPanel= richOutputs, Modal Panel,
/images/ico_ModalPanel.gif, /images/cn_ModalPanel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/modalPanel.jsf
+togglePanel= richOutputs, Toggle Panel,
/images/ico_TogglePanel.gif, /images/cn_TogglePanel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/togglePanel.jsf
+suggestionBox= richInputs, Suggestion Box,
/images/ico_SuggestionBox.gif, /images/cn_SuggestionBox.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/suggestionBox.jsf
+dataTableScroller= richDataIterators, Data Table Scroller,
/images/ico_DataTableScroller.gif, /images/cn_DataTableScroller.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dataTableScroller.jsf
+dropDownMenu= richMenu, Drop Down Menu,
/images/ico_dropDownMenu.gif, /images/cn_DropDownMenu.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dropDownMenu.jsf
+menuGroup= richMenu, Menu Group,
/images/ico_dropDownMenu.gif, /images/cn_DropDownMenu.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dropDownMenu.jsf
+menuItem= richMenu, Menu Item,
/images/ico_dropDownMenu.gif, /images/cn_DropDownMenu.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dropDownMenu.jsf
+menuSeparator= richMenu, Menu Separator,
/images/ico_dropDownMenu.gif, /images/cn_DropDownMenu.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/dropDownMenu.jsf
+actionparam= ajaxSupport, Action Parameter, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+commandButton= ajaxSupport, Command Button, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+commandLink= ajaxSupport, Command Link, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+form= ajaxSupport, Ajax Form, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+support= ajaxSupport, Ajax Support, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+jsFunction= ajaxSupport, JavaScript Function, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+poll= ajaxSupport, Poll, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+push= ajaxSupport, Push, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+status= ajaxSupport, Status, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+ajaxListener= ajaxSupport, Ajax Listener, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+region= ajaxSupport, Ajax Region, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+loadBundle= ajaxResources, Bundle, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+loadScript= ajaxResources, Script, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+loadStyle= ajaxResources, Style, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+keepAlive= ajaxResources, Keep Alive, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+include= ajaxOutput, Include, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+mediaOutput= ajaxOutput, Media Output, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+outputPanel= ajaxOutput, Output Panel, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+include= ajaxOutput, Include, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+repeat= richDataIterators, Repeat, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+htmlCommandLink= ajaxMisc, Html Command Link, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+log= ajaxMisc, Log, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+page= ajaxMisc, Ajax Page, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
+portlet= ajaxMisc, Ajax Portlet, /images/ico_panel.gif,
/images/cn_panel.gif,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...,
/richfaces/panel.jsf
Modified: trunk/samples/richfaces-demo/src/main/webapp/css/common.css
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/css/common.css 2007-07-13 18:45:48 UTC
(rev 1624)
+++ trunk/samples/richfaces-demo/src/main/webapp/css/common.css 2007-07-14 02:08:04 UTC
(rev 1625)
@@ -142,7 +142,7 @@
background-position : left;
background-repeat : repeat-y;
background-color : transparent;
- padding : 10px 10px 10px 12px;
+ padding : 0px 0px 0px 0px;
}
.panel_menu div{
background-color : transparent;
Added:
trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-group.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-group.xhtml
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-group.xhtml 2007-07-14
02:08:04 UTC (rev 1625)
@@ -0,0 +1,27 @@
+<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/ajax"
+
xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+<ui:composition>
+<table border="0" cellpadding="3" cellspacing="1">
+ <tbody>
+ <a4j:repeat var="component" value="#{components}">
+ <tr class="#{component.current?'active':'unactive'}"
onmouseover="this.className='active'"
onmouseout="this.className='#{component.current?'active':'unactive'}'">
+ <td class="ico"><h:graphicImage
value="#{component.iconImage}" width="16" height="16"
alt="" border="0" /></td>
+ <td class="text" style="padding:0px 0px 0px 10px"
width="100%">
+ <h:outputLink style="display:block;height:20px"
value="#{component.contextRelativeDemoLocation}">
+ <span style="display:block;">
+ #{component.name}
+ </span>
+ <f:param value="#{component.id}" name="c"/>
+ </h:outputLink>
+ </td>
+ </tr>
+ </a4j:repeat>
+ </tbody>
+</table>
+</ui:composition>
+</html>
+
Modified:
trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml 2007-07-13
18:45:48 UTC (rev 1624)
+++
trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml 2007-07-14
02:08:04 UTC (rev 1625)
@@ -6,23 +6,53 @@
xmlns:rich="http://richfaces.ajax4jsf.org/rich">
<ui:composition>
<rich:panel styleClass="panel_menu">
- <table border="0" cellpadding="3" cellspacing="1">
- <tbody>
- <a4j:repeat var="component"
value="#{componentNavigator.components}">
- <tr class="#{component.current?'active':'unactive'}"
onmouseover="this.className='active'"
onmouseout="this.className='#{component.current?'active':'unactive'}'">
- <td class="ico"><h:graphicImage
value="#{component.iconImage}" width="16" height="16"
alt="" border="0" /></td>
- <td class="text" style="padding:0px 0px 0px 10px"
width="100%">
- <h:outputLink style="display:block;height:20px"
value="#{component.contextRelativeDemoLocation}">
- <span style="display:block;">
- #{component.name}
- </span>
- <f:param value="#{component.id}" name="c"/>
- </h:outputLink>
- </td>
- </tr>
- </a4j:repeat>
- </tbody>
- </table>
+<rich:panelBar selectedPanel="#{componentNavigator.currentComponent.group}"
height="500" width="100%">
+ <rich:panelBarItem id="ajaxSupport" label="Ajax Support">
+ <ui:include src="/templates/include/components-group.xhtml" >
+ <ui:param name="components"
value="#{componentNavigator.ajaxSupport}" />
+ </ui:include>
+ </rich:panelBarItem>
+ <rich:panelBarItem id="ajaxResources" label="Resources/Beans
Handling">
+ <ui:include src="/templates/include/components-group.xhtml" >
+ <ui:param name="components"
value="#{componentNavigator.ajaxResources}" />
+ </ui:include>
+ </rich:panelBarItem>
+ <rich:panelBarItem id="ajaxOutput" label="Ajax Output">
+ <ui:include src="/templates/include/components-group.xhtml" >
+ <ui:param name="components"
value="#{componentNavigator.ajaxOutput}" />
+ </ui:include>
+ </rich:panelBarItem>
+ <rich:panelBarItem id="ajaxMisc" label="Ajax Miscellaneous">
+ <ui:include src="/templates/include/components-group.xhtml" >
+ <ui:param name="components"
value="#{componentNavigator.ajaxMisc}" />
+ </ui:include>
+ </rich:panelBarItem>
+ <rich:panelBarItem id="richDataIterators" label="Data
Iteration">
+ <ui:include src="/templates/include/components-group.xhtml" >
+ <ui:param name="components"
value="#{componentNavigator.richDataIterators}" />
+ </ui:include>
+ </rich:panelBarItem>
+ <rich:panelBarItem id="richDragDrop" label="Drag-Drop
Support">
+ <ui:include src="/templates/include/components-group.xhtml" >
+ <ui:param name="components"
value="#{componentNavigator.richDragDropComponents}" />
+ </ui:include>
+ </rich:panelBarItem>
+ <rich:panelBarItem id="richMenu" label="Rich Menu">
+ <ui:include src="/templates/include/components-group.xhtml" >
+ <ui:param name="components"
value="#{componentNavigator.richMenu}" />
+ </ui:include>
+ </rich:panelBarItem>
+ <rich:panelBarItem id="richOutputs" label="Rich Output">
+ <ui:include src="/templates/include/components-group.xhtml" >
+ <ui:param name="components"
value="#{componentNavigator.richOutputs}" />
+ </ui:include>
+ </rich:panelBarItem>
+ <rich:panelBarItem id="richInputs" label="Rich Input">
+ <ui:include src="/templates/include/components-group.xhtml" >
+ <ui:param name="components"
value="#{componentNavigator.richInputs}" />
+ </ui:include>
+ </rich:panelBarItem>
+</rich:panelBar>
</rich:panel>
</ui:composition>
</html>