raphael 01/05/31 10:16:38
Added: webapp/WEB-INF/templates/vm/portlets customizer-portlet.vm
Log:
add a generic PortletCustomizer that can customize any portlet properties
based on the regsitry parameter descriptions.
- extend the registry parameter syntax to allow meta-info and security
extensions
- update partially the admin and portet regsitries
- fix a maximization bug that prevented correct maximization of portlets
in nested portlet sets.
Revision Changes Path
1.1
jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/customizer-portlet.vm
Index: customizer-portlet.vm
===================================================================
#set ($config = $portlet.PortletConfig)
<form action="$jlink" method="post">
#if ($action)
<input name="$jlink.ActionKey" type="hidden" value="$action" />
#end
<table width="100%" cellpadding="1" cellspacing="0">
#foreach ( $param in $parameters )
<tr>
<td align="left" nowrap><b>#if ($param.Title) $param.Title #else $param.Name
#end</b></td>
<td>
#if ($param.Type == "boolean")
<select name="$param.Name">
<option #if ($config.getInitParameter($param.Name) == "false") SELECTED
#end>false
<option #if ($config.getInitParameter($param.Name) == "true") SELECTED
#end>true
</select>
#else
<input type="text" name="$param.Name" value="$!param.Value" />
#end
</td>
</tr>
<tr>
<td colspan="2">
#if ($param.Description)
$param.Description
#end
<hr />
</td>
</tr>
#end
<tr>
<td align="right">
#if ($parameters.size() > 0)
<input type="submit" name="eventSubmit_doUpdate" value="Update" />
#end
</td>
<td align="left">
<input type="submit" name="eventSubmit_doCancel" value="Cancel" />
</td>
</tr>
</table>
</form>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]