mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix to handle edit properties failure when the uifacets aspect has been applied to a content type
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3679 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -40,6 +40,7 @@ warning_inline=This is only recommended for HTML or plain text documents.
|
||||
categories_description=This view allows you to browse and modify the categories hiearchy.
|
||||
new_category_description=Enter information about the new Category then click Create Category.
|
||||
status_message_default=No messages.
|
||||
no_icons_found=No icons found
|
||||
|
||||
# UI Component messages
|
||||
yes=Yes
|
||||
|
@@ -25,6 +25,7 @@ import javax.faces.component.UIComponent;
|
||||
import javax.faces.component.UIInput;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.context.ResponseWriter;
|
||||
import javax.faces.el.PropertyNotFoundException;
|
||||
|
||||
import org.alfresco.config.Config;
|
||||
import org.alfresco.config.ConfigElement;
|
||||
@@ -161,6 +162,8 @@ public class ImagePickerRadioRenderer extends BaseRenderer
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
// get the child components
|
||||
for (Iterator i = imagePicker.getChildren().iterator(); i.hasNext(); /**/)
|
||||
@@ -192,6 +195,16 @@ public class ImagePickerRadioRenderer extends BaseRenderer
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (PropertyNotFoundException pnfe)
|
||||
{
|
||||
// handle the scenario where the bean does not have the
|
||||
// method specified in the value binding expression
|
||||
if (logger.isWarnEnabled())
|
||||
logger.warn("Failed to retrieve icons: " + pnfe.toString());
|
||||
|
||||
out.write(Application.getMessage(context, "no_icons_found"));
|
||||
}
|
||||
}
|
||||
|
||||
// if we are in the middle of a row, close it
|
||||
if (open)
|
||||
|
Reference in New Issue
Block a user