Author: SergeySmirnov
Date: 2007-04-27 22:00:32 -0400 (Fri, 27 Apr 2007)
New Revision: 593
Added:
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu.xhtml
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/source/
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/source/usage.html
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/source/usage.xhtml
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/usage.xhtml
Modified:
trunk/richfaces-samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/source/usage.html
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/source/usage.xhtml
trunk/richfaces-samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml
Log:
drop down menu is added (Initial code)
Modified:
trunk/richfaces-samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
---
trunk/richfaces-samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-04-28
01:59:03 UTC (rev 592)
+++
trunk/richfaces-samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-04-28
02:00:32 UTC (rev 593)
@@ -21,3 +21,4 @@
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_SuggestionBox.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
Added:
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/source/usage.html
===================================================================
---
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/source/usage.html
(rev 0)
+++
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/source/usage.html 2007-04-28
02:00:32 UTC (rev 593)
@@ -0,0 +1 @@
+source code here
\ No newline at end of file
Added:
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/source/usage.xhtml
===================================================================
---
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/source/usage.xhtml
(rev 0)
+++
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/source/usage.xhtml 2007-04-28
02:00:32 UTC (rev 593)
@@ -0,0 +1 @@
+source code here
\ No newline at end of file
Added:
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/usage.xhtml
===================================================================
---
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/usage.xhtml
(rev 0)
+++
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/usage.xhtml 2007-04-28
02:00:32 UTC (rev 593)
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<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="https://ajax4jsf.dev.java.net/ajax"
+
xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <style>
+ .optionList {
+ height:30px;
+ }
+ </style>
+
+ <p>Description
+ </p>
+
+ </ui:define>
+ <ui:define name="sources">
+ Here is a fragment of page sources for the given example:
+ <iframe
src="${facesContext.externalContext.requestContextPath}/richfaces/dropDownMenu/source/usage.html"
class="source_frame"/>
+ </ui:define>
+ </ui:composition>
+</html>
Added:
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu.xhtml
===================================================================
--- trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu.xhtml
(rev 0)
+++
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu.xhtml 2007-04-28
02:00:32 UTC (rev 593)
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<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:rich="http://richfaces.ajax4jsf.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components -
Drop Down Menu Component</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab"
contentClass="content_tab" inactiveTabClass="inactive_tab"
activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/dropDownMenu/usage.xhtml"/>
+ </rich:tab>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
Modified:
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/source/usage.html
===================================================================
---
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/source/usage.html 2007-04-28
01:59:03 UTC (rev 592)
+++
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/source/usage.html 2007-04-28
02:00:32 UTC (rev 593)
@@ -105,7 +105,8 @@
<span class="normal">....</span>
-<span class="normal">suggestionBox bean context:</span>
+<span class="normal">suggestionBox bean context:<br
/></span>
+
<span class="normal">package org.richfaces.demo.sb;</span>
<span class="normal">import
org.richfaces.renderkit.html.SuggestionBoxRenderer;</span>
Modified:
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/source/usage.xhtml
===================================================================
---
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/source/usage.xhtml 2007-04-28
01:59:03 UTC (rev 592)
+++
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/source/usage.xhtml 2007-04-28
02:00:32 UTC (rev 593)
@@ -92,8 +92,9 @@
....
suggestionBox bean context:
-ackage org.richfaces.demo.sb;
+package org.richfaces.demo.sb;
+
import org.richfaces.renderkit.html.SuggestionBoxRenderer;
import java.util.ArrayList;
Modified:
trunk/richfaces-samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml
===================================================================
---
trunk/richfaces-samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml 2007-04-28
01:59:03 UTC (rev 592)
+++
trunk/richfaces-samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml 2007-04-28
02:00:32 UTC (rev 593)
@@ -10,8 +10,8 @@
<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" width="100%">
- <h:outputLink value="#{component.contextRelativeDemoLocation}">
+ <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>