Author: abelevich
Date: 2011-01-20 07:36:29 -0500 (Thu, 20 Jan 2011)
New Revision: 21113
Modified:
trunk/ui/output/ui/src/main/templates/dropdownmenu.template.xml
trunk/ui/output/ui/src/main/templates/popupPanel.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 12:12:32
UTC (rev 21112)
+++ trunk/ui/output/ui/src/main/templates/dropdownmenu.template.xml 2011-01-20 12:36:29
UTC (rev 21113)
@@ -52,7 +52,7 @@
<cdk:scriptObject name="options">
<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="showEvent"
value="#{getShowEvent(component)}"
defaultValue='"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"/>
Modified: trunk/ui/output/ui/src/main/templates/popupPanel.template.xml
===================================================================
--- trunk/ui/output/ui/src/main/templates/popupPanel.template.xml 2011-01-20 12:12:32 UTC
(rev 21112)
+++ trunk/ui/output/ui/src/main/templates/popupPanel.template.xml 2011-01-20 12:36:29 UTC
(rev 21113)
@@ -73,8 +73,8 @@
</div>
<cdk:scriptObject name="options">
- <cdk:scriptOption name="left"
value="#{getLeftOrDefault(component)}"
defaultValue='String.valueOf("auto")'/>
- <cdk:scriptOption name="top"
value="#{getTopOrDefault(component)}"
defaultValue='String.valueOf("auto")'/>
+ <cdk:scriptOption name="left"
value="#{getLeftOrDefault(component)}"
defaultValue='"auto"'/>
+ <cdk:scriptOption name="top"
value="#{getTopOrDefault(component)}"
defaultValue='"auto"'/>
<cdk:scriptOption attributes="width height minWidth minHeight
maxWidth maxHeight moveable followByScroll left top zindex shadowDepth shadowOpacity
domElementAttachment show keepVisualState autosized resizeable modal overlapEmbedObjects
visualOptions " />
<cdk:scriptOption attributes="onshow onhide onresize onmove
onbeforeshow onbeforehide" wrapper="eventHandler"/>
</cdk:scriptObject>
@@ -86,8 +86,5 @@
</c:if>
</script>
</div>
-
-
-
</cc:implementation>
</cdk:root>
\ No newline at end of file