All icon choices when creating spaces are config driven

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2016 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2005-12-09 10:53:35 +00:00
parent d54476150a
commit eff037cdea
13 changed files with 259 additions and 166 deletions

View File

@@ -8,6 +8,7 @@
<list> <list>
<value>alfresco/web-client-config.xml</value> <value>alfresco/web-client-config.xml</value>
<value>alfresco/web-client-config-edit-properties.xml</value> <value>alfresco/web-client-config-edit-properties.xml</value>
<value>alfresco/web-client-config-icons.xml</value>
</list> </list>
</constructor-arg> </constructor-arg>
</bean> </bean>

View File

@@ -0,0 +1,39 @@
<alfresco-config>
<!-- This config file holds all the icons choices displayed -->
<!-- to users when creating various types of spaces in the -->
<!-- client. -->
<!-- NOTE: The conditions in this file are all string based -->
<!-- and will therefore not be found when using Node based -->
<!-- lookups, this also means the cm: can not be presumed. -->
<config evaluator="string-compare" condition="cm:folder">
<icons>
<icon name="space-icon-default" path="/images/icons/space-icon-default.gif" />
<icon name="space-icon-star" path="/images/icons/space-icon-star.gif" />
<icon name="space-icon-doc" path="/images/icons/space-icon-doc.gif" />
<icon name="space-icon-pen" path="/images/icons/space-icon-pen.gif" />
<icon name="space-icon-cd" path="/images/icons/space-icon-cd.gif" />
<icon name="space-icon-image" path="/images/icons/space-icon-image.gif" />
</icons>
</config>
<config evaluator="string-compare" condition="fm:forums">
<icons>
<icon name="forums_large" path="/images/icons/forums_large.gif" />
</icons>
</config>
<config evaluator="string-compare" condition="fm:forum">
<icons>
<icon name="forum_large" path="/images/icons/forum_large.gif" />
</icons>
</config>
<config evaluator="string-compare" condition="fm:topic">
<icons>
<icon name="topic_large" path="/images/icons/topic_large.gif" />
</icons>
</config>
</alfresco-config>

View File

@@ -174,6 +174,7 @@
<override from-view-id="/jsp/browse/browse.jsp" to-view-id="/jsp/forums/topic.jsp" /> <override from-view-id="/jsp/browse/browse.jsp" to-view-id="/jsp/forums/topic.jsp" />
<override from-outcome="browse" to-view-id="/jsp/forums/topic.jsp" /> <override from-outcome="browse" to-view-id="/jsp/forums/topic.jsp" />
<override from-outcome="showSpaceDetails" to-view-id="/jsp/forums/topic-details.jsp" /> <override from-outcome="showSpaceDetails" to-view-id="/jsp/forums/topic-details.jsp" />
<override from-outcome="deleteSpace" to-view-id="/jsp/forums/delete-topic.jsp" />
</navigation> </navigation>
</config> </config>

View File

@@ -17,7 +17,6 @@
*/ */
package org.alfresco.web.bean.wizard; package org.alfresco.web.bean.wizard;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import javax.faces.context.FacesContext; import javax.faces.context.FacesContext;
@@ -32,8 +31,6 @@ import org.alfresco.web.ui.common.component.UIListItem;
*/ */
public class NewForumWizard extends NewSpaceWizard public class NewForumWizard extends NewSpaceWizard
{ {
public static final String FORUM_ICON_DEFAULT = "forum_large";
protected String forumStatus; protected String forumStatus;
protected List<UIListItem> forumIcons; protected List<UIListItem> forumIcons;
@@ -66,31 +63,8 @@ public class NewForumWizard extends NewSpaceWizard
super.init(); super.init();
this.spaceType = ForumModel.TYPE_FORUM.toString(); this.spaceType = ForumModel.TYPE_FORUM.toString();
this.icon = FORUM_ICON_DEFAULT;
this.forumStatus = "0"; this.forumStatus = "0";
} }
/**
* Returns a list of icons to allow the user to select from.
*
* @return A list of icons
*/
@SuppressWarnings("unchecked")
public List<UIListItem> getIcons()
{
// return the various forum icons
if (this.forumIcons == null)
{
this.forumIcons = new ArrayList<UIListItem>(1);
UIListItem item = new UIListItem();
item.setValue(FORUM_ICON_DEFAULT);
item.getAttributes().put("image", "/images/icons/forum_large.gif");
this.forumIcons.add(item);
}
return this.forumIcons;
}
/** /**
* @see org.alfresco.web.bean.wizard.NewSpaceWizard#performCustomProcessing(javax.faces.context.FacesContext) * @see org.alfresco.web.bean.wizard.NewSpaceWizard#performCustomProcessing(javax.faces.context.FacesContext)

View File

@@ -17,7 +17,6 @@
*/ */
package org.alfresco.web.bean.wizard; package org.alfresco.web.bean.wizard;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.alfresco.model.ForumModel; import org.alfresco.model.ForumModel;
@@ -30,8 +29,6 @@ import org.alfresco.web.ui.common.component.UIListItem;
*/ */
public class NewForumsWizard extends NewSpaceWizard public class NewForumsWizard extends NewSpaceWizard
{ {
public static final String FORUMS_ICON_DEFAULT = "forums_large";
protected List<UIListItem> forumsIcons; protected List<UIListItem> forumsIcons;
/** /**
@@ -42,28 +39,5 @@ public class NewForumsWizard extends NewSpaceWizard
super.init(); super.init();
this.spaceType = ForumModel.TYPE_FORUMS.toString(); this.spaceType = ForumModel.TYPE_FORUMS.toString();
this.icon = FORUMS_ICON_DEFAULT;
}
/**
* Returns a list of icons to allow the user to select from.
*
* @return A list of icons
*/
@SuppressWarnings("unchecked")
public List<UIListItem> getIcons()
{
// return the various forums icons
if (this.forumsIcons == null)
{
this.forumsIcons = new ArrayList<UIListItem>(1);
UIListItem item = new UIListItem();
item.setValue(FORUMS_ICON_DEFAULT);
item.getAttributes().put("image", "/images/icons/forums_large.gif");
this.forumsIcons.add(item);
}
return this.forumsIcons;
} }
} }

View File

@@ -33,7 +33,6 @@ import org.alfresco.config.Config;
import org.alfresco.config.ConfigElement; import org.alfresco.config.ConfigElement;
import org.alfresco.config.ConfigService; import org.alfresco.config.ConfigService;
import org.alfresco.model.ContentModel; import org.alfresco.model.ContentModel;
import org.alfresco.model.ForumModel;
import org.alfresco.service.cmr.dictionary.DictionaryService; import org.alfresco.service.cmr.dictionary.DictionaryService;
import org.alfresco.service.cmr.dictionary.TypeDefinition; import org.alfresco.service.cmr.dictionary.TypeDefinition;
import org.alfresco.service.cmr.model.FileExistsException; import org.alfresco.service.cmr.model.FileExistsException;
@@ -63,7 +62,6 @@ import org.springframework.web.jsf.FacesContextUtils;
public class NewSpaceWizard extends AbstractWizardBean public class NewSpaceWizard extends AbstractWizardBean
{ {
public static final String SPACE_ICON_DEFAULT = "space-icon-default"; public static final String SPACE_ICON_DEFAULT = "space-icon-default";
public static final String FORUMS_ICON_DEFAULT = "forums_large";
private static Log logger = LogFactory.getLog(NewSpaceWizard.class); private static Log logger = LogFactory.getLog(NewSpaceWizard.class);
@@ -83,7 +81,9 @@ public class NewSpaceWizard extends AbstractWizardBean
// new space wizard specific properties // new space wizard specific properties
private SearchService searchService; private SearchService searchService;
private NamespaceService namespaceService;
private DictionaryService dictionaryService; private DictionaryService dictionaryService;
private ConfigService configService;
protected String spaceType; protected String spaceType;
protected String icon; protected String icon;
@@ -97,8 +97,6 @@ public class NewSpaceWizard extends AbstractWizardBean
protected boolean saveAsTemplate; protected boolean saveAsTemplate;
protected List<SelectItem> templates; protected List<SelectItem> templates;
protected List<UIListItem> folderTypes; protected List<UIListItem> folderTypes;
protected List<UIListItem> genericIcons;
protected List<UIListItem> forumsIcons;
protected List<UIDescription> folderTypeDescriptions; protected List<UIDescription> folderTypeDescriptions;
// the NodeRef of the node created during finish // the NodeRef of the node created during finish
@@ -683,72 +681,57 @@ public class NewSpaceWizard extends AbstractWizardBean
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public List<UIListItem> getIcons() public List<UIListItem> getIcons()
{ {
// TODO: Drive the list of icons to show for each space type from the config // NOTE: we can't cache this list as it depends on the space type
// this will then remove the dependency on forums from this generic // which the user can change during the advanced space wizard
// class
List<UIListItem> icons = null; List<UIListItem> icons = null;
if (this.spaceType.equals(ForumModel.TYPE_FORUMS.toString())) QName type = QName.createQName(this.spaceType);
String typePrefixForm = type.toPrefixString(this.namespaceService);
Config config = this.configService.getConfig(typePrefixForm);
if (config != null)
{ {
// return the various forum icons ConfigElement iconsCfg = config.getConfigElement("icons");
if (this.forumsIcons == null) if (iconsCfg != null)
{ {
this.forumsIcons = new ArrayList<UIListItem>(2); boolean first = true;
for (ConfigElement icon : iconsCfg.getChildren())
// change default icon to be forums {
this.icon = FORUMS_ICON_DEFAULT; String iconName = icon.getAttribute("name");
String iconPath = icon.getAttribute("path");
UIListItem item = new UIListItem();
item.setValue(FORUMS_ICON_DEFAULT); if (iconName != null && iconPath != null)
item.getAttributes().put("image", "/images/icons/forums_large.gif"); {
this.forumsIcons.add(item); if (first)
{
// if this is the first icon create the list and make
// the first icon in the list the default
icons = new ArrayList<UIListItem>(iconsCfg.getChildCount());
this.icon = iconName;
first = false;
}
UIListItem item = new UIListItem();
item.setValue(iconName);
item.getAttributes().put("image", iconPath);
icons.add(item);
}
}
} }
icons = this.forumsIcons;
} }
else
// if we didn't find any icons display one default choice
if (icons == null)
{ {
// return the generic space icons icons = new ArrayList<UIListItem>(1);
if (this.genericIcons == null) this.icon = SPACE_ICON_DEFAULT;
{
this.genericIcons = new ArrayList<UIListItem>(6);
// change default icon
this.icon = SPACE_ICON_DEFAULT;
UIListItem item = new UIListItem();
item.setValue("space-icon-default");
item.getAttributes().put("image", "/images/icons/space-icon-default.gif");
this.genericIcons.add(item);
item = new UIListItem();
item.setValue("space-icon-star");
item.getAttributes().put("image", "/images/icons/space-icon-star.gif");
this.genericIcons.add(item);
item = new UIListItem();
item.setValue("space-icon-doc");
item.getAttributes().put("image", "/images/icons/space-icon-doc.gif");
this.genericIcons.add(item);
item = new UIListItem();
item.setValue("space-icon-pen");
item.getAttributes().put("image", "/images/icons/space-icon-pen.gif");
this.genericIcons.add(item);
item = new UIListItem();
item.setValue("space-icon-cd");
item.getAttributes().put("image", "/images/icons/space-icon-cd.gif");
this.genericIcons.add(item);
item = new UIListItem();
item.setValue("space-icon-image");
item.getAttributes().put("image", "/images/icons/space-icon-image.gif");
this.genericIcons.add(item);
}
icons = this.genericIcons; UIListItem item = new UIListItem();
item.setValue("space-icon-default");
item.getAttributes().put("image", "/images/icons/space-icon-default.gif");
icons.add(item);
} }
return icons; return icons;
@@ -770,6 +753,14 @@ public class NewSpaceWizard extends AbstractWizardBean
this.searchService = searchService; this.searchService = searchService;
} }
/**
* @param namespaceService The NamespaceService
*/
public void setNamespaceService(NamespaceService namespaceService)
{
this.namespaceService = namespaceService;
}
/** /**
* Sets the dictionary service * Sets the dictionary service
* *
@@ -780,6 +771,16 @@ public class NewSpaceWizard extends AbstractWizardBean
this.dictionaryService = dictionaryService; this.dictionaryService = dictionaryService;
} }
/**
* Sets the config service
*
* @param configService The ConfigService
*/
public void setConfigService(ConfigService configService)
{
this.configService = configService;
}
/** /**
* @return Returns the copyPolicy. * @return Returns the copyPolicy.
*/ */

View File

@@ -47,8 +47,6 @@ import org.apache.commons.logging.LogFactory;
*/ */
public class NewTopicWizard extends NewSpaceWizard public class NewTopicWizard extends NewSpaceWizard
{ {
public static final String TOPIC_ICON_DEFAULT = "topic_large";
private static final Log logger = LogFactory.getLog(NewTopicWizard.class); private static final Log logger = LogFactory.getLog(NewTopicWizard.class);
protected String message; protected String message;
@@ -134,32 +132,9 @@ public class NewTopicWizard extends NewSpaceWizard
super.init(); super.init();
this.spaceType = ForumModel.TYPE_TOPIC.toString(); this.spaceType = ForumModel.TYPE_TOPIC.toString();
this.icon = TOPIC_ICON_DEFAULT;
this.topicType = "0"; this.topicType = "0";
this.message = null; this.message = null;
} }
/**
* Returns a list of icons to allow the user to select from.
*
* @return A list of icons
*/
@SuppressWarnings("unchecked")
public List<UIListItem> getIcons()
{
// return the various forum icons
if (this.topicIcons == null)
{
this.topicIcons = new ArrayList<UIListItem>(2);
UIListItem item = new UIListItem();
item.setValue(TOPIC_ICON_DEFAULT);
item.getAttributes().put("image", "/images/icons/topic_large.gif");
this.topicIcons.add(item);
}
return this.topicIcons;
}
/** /**
* @see org.alfresco.web.bean.wizard.NewSpaceWizard#performCustomProcessing(javax.faces.context.FacesContext) * @see org.alfresco.web.bean.wizard.NewSpaceWizard#performCustomProcessing(javax.faces.context.FacesContext)

View File

@@ -26,6 +26,10 @@ import javax.faces.component.UIInput;
import javax.faces.context.FacesContext; import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter; import javax.faces.context.ResponseWriter;
import org.alfresco.config.Config;
import org.alfresco.config.ConfigElement;
import org.alfresco.config.ConfigService;
import org.alfresco.web.app.Application;
import org.alfresco.web.ui.common.Utils; import org.alfresco.web.ui.common.Utils;
import org.alfresco.web.ui.common.component.UIImagePicker; import org.alfresco.web.ui.common.component.UIImagePicker;
import org.alfresco.web.ui.common.component.UIListItem; import org.alfresco.web.ui.common.component.UIListItem;
@@ -101,6 +105,7 @@ public class ImagePickerRadioRenderer extends BaseRenderer
/** /**
* @see javax.faces.render.Renderer#encodeChildren(javax.faces.context.FacesContext, javax.faces.component.UIComponent) * @see javax.faces.render.Renderer#encodeChildren(javax.faces.context.FacesContext, javax.faces.component.UIComponent)
*/ */
@SuppressWarnings("unchecked")
public void encodeChildren(FacesContext context, UIComponent component) throws IOException public void encodeChildren(FacesContext context, UIComponent component) throws IOException
{ {
if (component.isRendered() == false) if (component.isRendered() == false)
@@ -122,30 +127,64 @@ public class ImagePickerRadioRenderer extends BaseRenderer
ResponseWriter out = context.getResponseWriter(); ResponseWriter out = context.getResponseWriter();
// get the child components // determine whether the options should be pulled from config or
for (Iterator i = imagePicker.getChildren().iterator(); i.hasNext(); /**/) // from the child components
String configSection = (String)attrs.get("configSection");
if (configSection != null && configSection.length() > 0)
{ {
UIComponent child = (UIComponent)i.next(); // render all the icons from the list that appear in the given
if (child instanceof UIListItems) // config section
ConfigService cfgService = Application.getConfigService(context);
Config cfg = cfgService.getConfig(configSection);
if (cfg != null)
{ {
// get the value of the list items component and iterate ConfigElement iconsCfg = cfg.getConfigElement("icons");
// through it's collection if (iconsCfg != null)
Object listItems = ((UIListItems)child).getValue();
if (listItems instanceof Collection)
{ {
Iterator iter = ((Collection)listItems).iterator(); for (ConfigElement icon : iconsCfg.getChildren())
while (iter.hasNext())
{ {
UIListItem item = (UIListItem)iter.next(); String iconName = icon.getAttribute("name");
renderItem(context, out, imagePicker, item, onclick); String iconPath = icon.getAttribute("path");
if (iconName != null && iconPath != null)
{
UIListItem item = new UIListItem();
item.setValue(iconName);
item.getAttributes().put("image", iconPath);
renderItem(context, out, imagePicker, item, onclick);
}
} }
} }
} }
else if (child instanceof UIListItem && child.isRendered() == true) }
else
{
// get the child components
for (Iterator i = imagePicker.getChildren().iterator(); i.hasNext(); /**/)
{ {
// found a valid UIListItem child to render UIComponent child = (UIComponent)i.next();
UIListItem item = (UIListItem)child; if (child instanceof UIListItems)
renderItem(context, out, imagePicker, item, onclick); {
// get the value of the list items component and iterate
// through it's collection
Object listItems = ((UIListItems)child).getValue();
if (listItems instanceof Collection)
{
Iterator iter = ((Collection)listItems).iterator();
while (iter.hasNext())
{
UIListItem item = (UIListItem)iter.next();
renderItem(context, out, imagePicker, item, onclick);
}
}
}
else if (child instanceof UIListItem && child.isRendered() == true)
{
// found a valid UIListItem child to render
UIListItem item = (UIListItem)child;
renderItem(context, out, imagePicker, item, onclick);
}
} }
} }

View File

@@ -49,6 +49,9 @@ public class ImagePickerRadioTag extends HtmlComponentTag
/** the onclick handler */ /** the onclick handler */
private String onclick; private String onclick;
/** the name of the config section to lookup to get the icons */
private String configSection;
/** /**
* @see javax.faces.webapp.UIComponentTag#getComponentType() * @see javax.faces.webapp.UIComponentTag#getComponentType()
*/ */
@@ -77,6 +80,7 @@ public class ImagePickerRadioTag extends HtmlComponentTag
setStringProperty(component, "value", this.value); setStringProperty(component, "value", this.value);
setStringProperty(component, "image", this.image); setStringProperty(component, "image", this.image);
setStringProperty(component, "onclick", this.onclick); setStringProperty(component, "onclick", this.onclick);
setStringProperty(component, "configSection", this.configSection);
setIntProperty(component, "spacing", this.spacing); setIntProperty(component, "spacing", this.spacing);
setIntProperty(component, "columns", this.columns); setIntProperty(component, "columns", this.columns);
} }
@@ -95,6 +99,7 @@ public class ImagePickerRadioTag extends HtmlComponentTag
this.image = null; this.image = null;
this.columns = null; this.columns = null;
this.onclick = null; this.onclick = null;
this.configSection = null;
} }
/** /**
@@ -224,4 +229,20 @@ public class ImagePickerRadioTag extends HtmlComponentTag
{ {
this.onclick = onclick; this.onclick = onclick;
} }
/**
* @return Returns the config section to lookup
*/
public String getConfigSection()
{
return this.configSection;
}
/**
* @param configSection The config section to lookup
*/
public void setConfigSection(String configSection)
{
this.configSection = configSection;
}
} }

View File

@@ -1160,6 +1160,12 @@
<required>false</required> <required>false</required>
<rtexprvalue>true</rtexprvalue> <rtexprvalue>true</rtexprvalue>
</attribute> </attribute>
<attribute>
<name>configSection</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag> </tag>
<tag> <tag>

View File

@@ -262,6 +262,14 @@
<property-name>dictionaryService</property-name> <property-name>dictionaryService</property-name>
<value>#{DictionaryService}</value> <value>#{DictionaryService}</value>
</managed-property> </managed-property>
<managed-property>
<property-name>configService</property-name>
<value>#{configService}</value>
</managed-property>
<managed-property>
<property-name>namespaceService</property-name>
<value>#{NamespaceService}</value>
</managed-property>
</managed-bean> </managed-bean>
<managed-bean> <managed-bean>
@@ -291,6 +299,14 @@
<property-name>browseBean</property-name> <property-name>browseBean</property-name>
<value>#{BrowseBean}</value> <value>#{BrowseBean}</value>
</managed-property> </managed-property>
<managed-property>
<property-name>configService</property-name>
<value>#{configService}</value>
</managed-property>
<managed-property>
<property-name>namespaceService</property-name>
<value>#{NamespaceService}</value>
</managed-property>
</managed-bean> </managed-bean>
<managed-bean> <managed-bean>
@@ -324,6 +340,14 @@
<property-name>searchService</property-name> <property-name>searchService</property-name>
<value>#{SearchService}</value> <value>#{SearchService}</value>
</managed-property> </managed-property>
<managed-property>
<property-name>configService</property-name>
<value>#{configService}</value>
</managed-property>
<managed-property>
<property-name>namespaceService</property-name>
<value>#{NamespaceService}</value>
</managed-property>
</managed-bean> </managed-bean>
<managed-bean> <managed-bean>
@@ -926,6 +950,14 @@
<property-name>searchService</property-name> <property-name>searchService</property-name>
<value>#{SearchService}</value> <value>#{SearchService}</value>
</managed-property> </managed-property>
<managed-property>
<property-name>configService</property-name>
<value>#{configService}</value>
</managed-property>
<managed-property>
<property-name>namespaceService</property-name>
<value>#{NamespaceService}</value>
</managed-property>
</managed-bean> </managed-bean>
<managed-bean> <managed-bean>
@@ -959,6 +991,14 @@
<property-name>searchService</property-name> <property-name>searchService</property-name>
<value>#{SearchService}</value> <value>#{SearchService}</value>
</managed-property> </managed-property>
<managed-property>
<property-name>configService</property-name>
<value>#{configService}</value>
</managed-property>
<managed-property>
<property-name>namespaceService</property-name>
<value>#{NamespaceService}</value>
</managed-property>
</managed-bean> </managed-bean>
<managed-bean> <managed-bean>
@@ -992,6 +1032,14 @@
<property-name>searchService</property-name> <property-name>searchService</property-name>
<value>#{SearchService}</value> <value>#{SearchService}</value>
</managed-property> </managed-property>
<managed-property>
<property-name>configService</property-name>
<value>#{configService}</value>
</managed-property>
<managed-property>
<property-name>namespaceService</property-name>
<value>#{NamespaceService}</value>
</managed-property>
</managed-bean> </managed-bean>
<managed-bean> <managed-bean>
@@ -1025,6 +1073,14 @@
<property-name>searchService</property-name> <property-name>searchService</property-name>
<value>#{SearchService}</value> <value>#{SearchService}</value>
</managed-property> </managed-property>
<managed-property>
<property-name>configService</property-name>
<value>#{configService}</value>
</managed-property>
<managed-property>
<property-name>namespaceService</property-name>
<value>#{NamespaceService}</value>
</managed-property>
</managed-bean> </managed-bean>
<managed-bean> <managed-bean>
@@ -1062,6 +1118,14 @@
<property-name>contentService</property-name> <property-name>contentService</property-name>
<value>#{ContentService}</value> <value>#{ContentService}</value>
</managed-property> </managed-property>
<managed-property>
<property-name>configService</property-name>
<value>#{configService}</value>
</managed-property>
<managed-property>
<property-name>namespaceService</property-name>
<value>#{NamespaceService}</value>
</managed-property>
</managed-bean> </managed-bean>
<managed-bean> <managed-bean>
@@ -1095,6 +1159,14 @@
<property-name>searchService</property-name> <property-name>searchService</property-name>
<value>#{SearchService}</value> <value>#{SearchService}</value>
</managed-property> </managed-property>
<managed-property>
<property-name>configService</property-name>
<value>#{configService}</value>
</managed-property>
<managed-property>
<property-name>namespaceService</property-name>
<value>#{NamespaceService}</value>
</managed-property>
</managed-bean> </managed-bean>
<managed-bean> <managed-bean>

View File

@@ -139,12 +139,7 @@
<table border="0" cellpadding="0" cellspacing="0"><tr><td> <table border="0" cellpadding="0" cellspacing="0"><tr><td>
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %> <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
<a:imagePickerRadio columns="6" spacing="4" value="#{EditSpaceDialog.icon}"> <a:imagePickerRadio columns="6" spacing="4" value="#{EditSpaceDialog.icon}">
<a:listItem value="space-icon-default" image="/images/icons/space-icon-default.gif" /> <a:listItems value="#{EditSpaceDialog.icons}" />
<a:listItem value="space-icon-star" image="/images/icons/space-icon-star.gif" />
<a:listItem value="space-icon-doc" image="/images/icons/space-icon-doc.gif" />
<a:listItem value="space-icon-pen" image="/images/icons/space-icon-pen.gif" />
<a:listItem value="space-icon-cd" image="/images/icons/space-icon-cd.gif" />
<a:listItem value="space-icon-image" image="/images/icons/space-icon-image.gif" />
</a:imagePickerRadio> </a:imagePickerRadio>
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %> <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
</td></tr></table> </td></tr></table>

View File

@@ -149,12 +149,7 @@
<table border="0" cellpadding="0" cellspacing="0"><tr><td> <table border="0" cellpadding="0" cellspacing="0"><tr><td>
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %> <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
<a:imagePickerRadio columns="6" spacing="4" value="#{NewSpaceDialog.icon}"> <a:imagePickerRadio columns="6" spacing="4" value="#{NewSpaceDialog.icon}">
<a:listItem value="space-icon-default" image="/images/icons/space-icon-default.gif" /> <a:listItems value="#{NewSpaceDialog.icons}" />
<a:listItem value="space-icon-star" image="/images/icons/space-icon-star.gif" />
<a:listItem value="space-icon-doc" image="/images/icons/space-icon-doc.gif" />
<a:listItem value="space-icon-pen" image="/images/icons/space-icon-pen.gif" />
<a:listItem value="space-icon-cd" image="/images/icons/space-icon-cd.gif" />
<a:listItem value="space-icon-image" image="/images/icons/space-icon-image.gif" />
</a:imagePickerRadio> </a:imagePickerRadio>
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %> <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
</td></tr></table> </td></tr></table>