Author: truong.le
Date: 2009-11-23 05:19:24 -0500 (Mon, 23 Nov 2009)
New Revision: 758
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetInfo.java
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetManagement.java
Log:
GTNPORTAL-284: Still show category selector form when select gadget in Gadget item
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetInfo.java
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetInfo.java 2009-11-23
09:52:08 UTC (rev 757)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetInfo.java 2009-11-23
10:19:24 UTC (rev 758)
@@ -65,8 +65,7 @@
public UIGadgetInfo() throws Exception
{
- UICategorySelector categorySelector = addChild(UICategorySelector.class, null,
null);
- categorySelector.setRendered(false);
+ addChild(UICategorySelector.class, null, null);
}
public Gadget getGadget()
@@ -99,8 +98,7 @@
for (ApplicationCategory category : allCategories)
{
- String definitionName = gadget_.getTitle().replace(' ', '_');
- if (appRegService.getApplication(category.getName(), definitionName) != null)
+ if (appRegService.getApplication(category.getName(), gadget_.getName()) !=
null)
{
nameList.add(category.getDisplayName());
}
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetManagement.java
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetManagement.java 2009-11-23
09:52:08 UTC (rev 757)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetManagement.java 2009-11-23
10:19:24 UTC (rev 758)
@@ -128,6 +128,7 @@
uiGadgetInfo = addChild(UIGadgetInfo.class, null, null);
}
uiGadgetInfo.setGadget(selectedGadget_);
+ uiGadgetInfo.getChild(UICategorySelector.class).setRendered(false);
}
public void processRender(WebuiRequestContext context) throws Exception
Show replies by date