mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. Fix up for several merge issues in UI classes
. Framework for new SelectList component git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4221 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -154,7 +154,7 @@ public class ImagePickerRadioRenderer extends BaseRenderer
|
||||
{
|
||||
UIListItem item = new UIListItem();
|
||||
item.setValue(iconName);
|
||||
item.getAttributes().put("image", iconPath);
|
||||
item.setImage(iconPath);
|
||||
renderItem(context, out, imagePicker, item, onclick);
|
||||
}
|
||||
}
|
||||
@@ -324,7 +324,7 @@ public class ImagePickerRadioRenderer extends BaseRenderer
|
||||
out.write("</td><td align='center'>");
|
||||
|
||||
// get the image and make sure there is one!
|
||||
String image = (String)item.getAttributes().get("image");
|
||||
String image = item.getImage();
|
||||
if (image == null)
|
||||
{
|
||||
throw new IllegalStateException("All child items must specify an image");
|
||||
|
@@ -336,7 +336,7 @@ public class ModeListRenderer extends BaseRenderer
|
||||
else
|
||||
{
|
||||
// else show the image set for the individual item
|
||||
String image = (String)item.getAttributes().get("image");
|
||||
String image = item.getImage();
|
||||
if (image != null)
|
||||
{
|
||||
out.write( Utils.buildImageTag(context, image, item.getTooltip()) );
|
||||
|
Reference in New Issue
Block a user