User Profile additions (for collaboration UI) - various new fields in User Profile screen including use of ajax file picker for Avatar image selection

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7480 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-11-29 15:33:09 +00:00
parent ef78de301d
commit 9a48f004fd
7 changed files with 182 additions and 17 deletions

View File

@@ -355,7 +355,15 @@ public abstract class BaseAjaxItemPicker extends UIInput
ValueBinding vb = getValueBinding("initialSelection");
if (vb != null)
{
this.initialSelectionId = (String)vb.getValue(getFacesContext());
Object objSelection = vb.getValue(getFacesContext());
if (objSelection instanceof NodeRef)
{
this.initialSelectionId = ((NodeRef)objSelection).toString();
}
else
{
this.initialSelectionId = (String)objSelection;
}
}
return this.initialSelectionId;