mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. First part of the Clipboard UI refactoring ready for AVM node support
- Clipboard actions now based on NodeRef not "id" - Added notion of "workspace" and "AVM" specific clipboard items - Clipboard bean supports creating different ClipboardItem types (workspace or avm) . ActionLink parameters are now "toString()"ed rather than assumed String . Optimization to Portal Tree Navigator support git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4924 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -96,16 +96,7 @@ public abstract class BaseRenderer extends Renderer
|
||||
if (child instanceof UIParameter)
|
||||
{
|
||||
final UIParameter param = (UIParameter)child;
|
||||
if (param.getValue() == null || param.getValue() instanceof String)
|
||||
{
|
||||
params.put(param.getName(), (String)param.getValue());
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new ClassCastException("value of parameter " + param.getName() +
|
||||
" is a " + param.getValue().getClass().getName() +
|
||||
". Expected a " + String.class.getName());
|
||||
}
|
||||
params.put(param.getName(), param.getValue() != null ? param.getValue().toString() : null);
|
||||
}
|
||||
}
|
||||
return params;
|
||||
|
Reference in New Issue
Block a user