Author: abelevich
Date: 2011-01-20 07:12:32 -0500 (Thu, 20 Jan 2011)
New Revision: 21112
Modified:
trunk/ui/output/ui/src/main/templates/dropdownmenu.template.xml
Log:
RF-10097 Inline default values: output components I
- added default value to templates.
Modified: trunk/ui/output/ui/src/main/templates/dropdownmenu.template.xml
===================================================================
--- trunk/ui/output/ui/src/main/templates/dropdownmenu.template.xml 2011-01-20 11:52:09
UTC (rev 21111)
+++ trunk/ui/output/ui/src/main/templates/dropdownmenu.template.xml 2011-01-20 12:12:32
UTC (rev 21112)
@@ -50,10 +50,10 @@
<script type="text/javascript">
<cdk:scriptObject name="options">
- <cdk:scriptOption name="direction"
value="#{getDirection(component).getValue()}"/>
- <cdk:scriptOption name="jointPoint"
value="#{getJointPoint(component).getValue()}"/>
- <cdk:scriptOption name="showEvent"
value="#{getShowEvent(component)}"/>
- <cdk:scriptOption name="mode"
value="#{getMode(component)}"/>
+ <cdk:scriptOption name="direction"
value="#{getDirection(component).getValue()}"
defaultValue="org.richfaces.component.Positioning.DEFAULT.getValue()"/>
+ <cdk:scriptOption name="jointPoint"
value="#{getJointPoint(component).getValue()}"
defaultValue="org.richfaces.component.Positioning.DEFAULT.getValue()"/>
+ <cdk:scriptOption name="showEvent"
value="#{getShowEvent(component)}"
defaultValue='String.valueOf("click")'/>
+ <cdk:scriptOption name="mode"
value="#{getMode(component)}"
defaultValue="org.richfaces.component.Mode.server"/>
<cdk:scriptOption attributes="hideDelay showEvent showDelay
horizontalOffset verticalOffset" />
<cdk:scriptOption attributes="onshow onhide ongroupshow
ongrouphide onitemclick" wrapper="eventHandler"/>
</cdk:scriptObject>
Show replies by date