taylor 2004/11/04 11:49:44
Modified: portals-bridges/library/velocity/macros frameworks-macros.vm
portals-bridges/library/velocity/templates
preferences-form.vm
Log:
*** keyword substitution change ***
Revision Changes Path
1.2 +38 -32
jakarta-jetspeed-2/portals-bridges/library/velocity/macros/frameworks-macros.vm
Index: frameworks-macros.vm
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portals-bridges/library/velocity/macros/frameworks-macros.vm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- frameworks-macros.vm 4 Nov 2004 18:11:46 -0000 1.1
+++ frameworks-macros.vm 4 Nov 2004 19:49:44 -0000 1.2
@@ -1,32 +1,38 @@
-#macro (headerCell $body)
- <td>
- <b>
- $body
- </b>
- </td>
-#end
-
-#macro (entryCell $body)
- <td>
- $body
- </td>
-#end
-
-#macro (form4ColumnCell $label $value $size $id)
- <tr colspan="4" align="right">
- <td width="5%" class="portlet-form-label" align="left"> </td>
- <td nowrap class="portlet-form-field-label" align="right">$!label: </td>
- <td class="portlet-form-input-field" align="left">
- <input id="$!id" type="text" name="$!id" size="$!size" value="$!value">
- </td>
- <td width="5%" class="portlet-form-label" align="left"> </td>
- </tr>
-#end
-
-#macro (Preference $prefs $name)
-#set ($pall = $prefs.get($name))
-#foreach ($x in $pall)
-#set ($extraction = $x)
-#end
-$extraction
-#end
\ No newline at end of file
+#macro (headerCell $body)
+ <td>
+ <b>
+ $body
+ </b>
+ </td>
+#end
+
+#macro (entryCell $body)
+ <td>
+ $body
+ </td>
+#end
+
+#macro (form4ColumnCell $label $value $size $id)
+ <tr colspan="4" align="right">
+ <td width="5%" class="portlet-form-label" align="left"> </td>
+ <td nowrap class="portlet-form-field-label" align="right">$!label: </td>
+ <td class="portlet-form-input-field" align="left">
+ <input id="$!id" type="text" name="$!id" size="$!size" value="$!value">
+ </td>
+ <td width="5%" class="portlet-form-label" align="left"> </td>
+ </tr>
+#end
+
+#macro (Preference $prefs $name)
+#set ($pall = $prefs.get($name))
+#foreach ($x in $pall)
+#set ($extraction = $x)
+#end
+$extraction
+#end
+
+#macro (ViewLink $view)
+#set($vl_result = $renderResponse.createRenderURL())
+$vl_result.setParameter("velocity.view", $view)
+$vl_result
+#end
1.2 +10 -10
jakarta-jetspeed-2/portals-bridges/library/velocity/templates/preferences-form.vm
Index: preferences-form.vm
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portals-bridges/library/velocity/templates/preferences-form.vm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- preferences-form.vm 4 Nov 2004 18:11:46 -0000 1.1
+++ preferences-form.vm 4 Nov 2004 19:49:44 -0000 1.2
@@ -1,10 +1,10 @@
-
-<form action="$renderResponse.createActionURL()" method="post">
-<table>
-#foreach ($pref in $prefs.iterator())
-#form4ColumnCell($MESSAGES.getString('$pref.Name'-displayname) "$pref.Value" "40"
"$pref.Name")
-</table>
-#end
-<input type="submit" name="Save" value="$MESSAGES.getString("save")" />
-</form>
-
+
+<form action="$renderResponse.createActionURL()" method="post">
+<table>
+#foreach ($pref in $prefs.iterator())
+#form4ColumnCell($MESSAGES.getString('$pref.Name'-displayname) "$pref.Value" "40"
"$pref.Name")
+</table>
+#end
+<input type="submit" name="Save" value="$MESSAGES.getString("save")" />
+</form>
+
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]