. 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:
Kevin Roast
2006-10-25 16:12:27 +00:00
parent 228ddfcdb7
commit 249ddd00c8
14 changed files with 565 additions and 36 deletions

View File

@@ -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");

View File

@@ -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()) );