Author: SergeySmirnov
Date: 2007-05-01 20:04:14 -0400 (Tue, 01 May 2007)
New Revision: 601
Modified:
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/usage.xhtml
Log:
test content for dropdown demo
Modified:
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/usage.xhtml
===================================================================
---
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/usage.xhtml 2007-05-01
01:28:03 UTC (rev 600)
+++
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/usage.xhtml 2007-05-02
00:04:14 UTC (rev 601)
@@ -12,10 +12,92 @@
.optionList {
height:30px;
}
+ .vertical-menu .rich-menu-item-hover,.vertical-menu .rich-menu-group-hover {
+ background-image:none;
+ background-color: transparent !important;
+ }
+
</style>
<p>Description
</p>
+ <a4j:log hotkey="M" />
+ <div class="sample-container">
+ <h:form>
+Output: <h:outputText id="out" value="#{paintData.text}" />
+ <rich:toolBar>
+ <rich:dropDownMenu value="File">
+ <rich:menuItem width="40px" mode="ajax"
value="Open" action="open"/>
+ <rich:menuSeparator id="menuSeparator11"/>
+
+ <rich:menuItem mode="none"
onclick="document.location.href='http://www.exadel.com'">
+ <h:outputLink value="http://www.exadel.com">output
Link</h:outputLink>
+ </rich:menuItem>
+ <rich:menuItem>
+ <h:inputText style="z-index:100000"
value="#{paintData.text}">
+ <a4j:support event="onkeyup" reRender="out" />
+ </h:inputText>
+ </rich:menuItem>
+ </rich:dropDownMenu>
+ <rich:dropDownMenu showDelay="100" hideDelay="100">
+ <f:facet name="label">
+ <h:panelGrid columns="2"
style="vertical-align:middle">
+ <h:graphicImage
value="/richfaces/toolBar/images/palette_edit.gif"/>
+ <h:outputText value="Options" />
+ </h:panelGrid>
+ </f:facet>
+ <rich:menuItem value="Read" />
+ <rich:menuItem value="Print">
+ <f:facet name="icon">
+ <h:graphicImage id="print"
value="/richfaces/toolBar/images/print.gif" />
+ </f:facet>
+ </rich:menuItem>
+ <rich:menuItem value="Remove" />
+ <rich:menuGroup value="Drop Out and Foget About It">
+ <rich:menuItem value="Forever" />
+ <rich:menuGroup value="And Ever">
+ <rich:menuGroup value="And Ever">
+ <rich:menuGroup value="And Ever">
+ <rich:menuGroup value="And Ever">
+ <rich:menuGroup value="And Ever">
+ <rich:menuGroup value="And Ever">
+ <rich:menuItem value="But Never" />
+ </rich:menuGroup>
+ </rich:menuGroup>
+ </rich:menuGroup>
+ </rich:menuGroup>
+ </rich:menuGroup>
+ </rich:menuGroup>
+ </rich:menuGroup>
+ </rich:dropDownMenu>
+ </rich:toolBar>
+ <rich:spacer height="20" />
+ <h:panelGrid class="vertical-menu"
style="background-color:#{a4jSkin.additionalBackgroundColor}"
columns="1" cellspacing="0" cellpadding="0">
+ <rich:dropDownMenu style="border:1px solid
#{a4jSkin.panelBorderColor}" value="Option1"
direction="bottom-right" jointPoint="tr">
+ <rich:menuItem value="Suboption1-1" />
+ <rich:menuItem value="Suboption1-2" />
+ <rich:menuItem value="Suboption1-3" />
+ </rich:dropDownMenu>
+ <rich:dropDownMenu style="border:1px solid
#{a4jSkin.panelBorderColor}" value="Option2"
direction="bottom-right" jointPoint="tr">
+ <rich:menuItem value="Suboption2-1" />
+ <rich:menuItem value="Suboption2-2" />
+ <rich:menuGroup value="Group2"
direction="#{bean.groupDirection}">
+ <rich:menuItem value="SuboptionG2-2-1" />
+ <rich:menuItem value="SuboptionG2-2-2" />
+ </rich:menuGroup>
+
+ <rich:menuItem value="Suboption2-3" />
+ </rich:dropDownMenu>
+ <rich:dropDownMenu style="border:1px solid
#{a4jSkin.panelBorderColor}" value="Option3"
direction="bottom-right" jointPoint="tr">
+ <rich:menuItem value="Suboption3-1" />
+ <rich:menuItem value="Suboption3-2" />
+ <rich:menuItem value="Suboption3-3" />
+ </rich:dropDownMenu>
+
+ </h:panelGrid>
+
+ </h:form>
+ </div>
</ui:define>
<ui:define name="sources">
Show replies by date