Author: tan_pham_dinh
Date: 2009-11-06 00:15:57 -0500 (Fri, 06 Nov 2009)
New Revision: 510
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIAddApplicationForm.java
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_ar.xml
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_en.properties
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_ru.properties
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_uk.properties
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_vi.xml
Log:
GTNPORTAL-199: Problem in UIAddApplicationForm
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIAddApplicationForm.java
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIAddApplicationForm.java 2009-11-06
04:08:34 UTC (rev 509)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIAddApplicationForm.java 2009-11-06
05:15:57 UTC (rev 510)
@@ -257,6 +257,12 @@
UIFormRadioBoxInput uiRadio = uiForm.getUIInput("application");
String displayName = uiForm.getUIStringInput(FIELD_NAME).getValue();
+ if (uiForm.getApplications().size() == 0)
+ {
+ ctx.getUIApplication().addMessage(new
ApplicationMessage("UIAddApplicationForm.msg.appNotExists", null));
+ ctx.addUIComponentToUpdateByAjax(uiOrganizer);
+ return;
+ }
Application tmp =
uiForm.getApplications().get(Integer.parseInt(uiRadio.getValue()));
// check portet name is exist
Modified:
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_ar.xml
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_ar.xml 2009-11-06
04:08:34 UTC (rev 509)
+++
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_ar.xml 2009-11-06
05:15:57 UTC (rev 510)
@@ -133,6 +133,7 @@
</action>
<msg>
<PortletExist>!إن هذه الخدمة في الفئة ، يرجى اختيار واحدة
أخرى</PortletExist>
+ <appNotExists>Please select an application.</appNotExists>
</msg>
<label>
<displayName>#{label.displayName}</displayName>
Modified:
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_en.properties
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_en.properties 2009-11-06
04:08:34 UTC (rev 509)
+++
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_en.properties 2009-11-06
05:15:57 UTC (rev 510)
@@ -72,6 +72,7 @@
UIAddApplicationForm.header.description=Description
UIAddApplicationForm.action.Add=Add
UIAddApplicationForm.msg.PortletExist=This Application is already in category, please
select another one!
+UIAddApplicationForm.msg.appNotExists=Please select an application.
UIAddApplicationForm.action.Cancel=#{word.cancel}
UIAddApplicationForm.label.displayName=#{label.displayName}
UIAddApplicationForm.label.type=Application Type
Modified:
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_ru.properties
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_ru.properties 2009-11-06
04:08:34 UTC (rev 509)
+++
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_ru.properties 2009-11-06
05:15:57 UTC (rev 510)
@@ -72,6 +72,7 @@
UIAddApplicationForm.header.description=Описание
UIAddApplicationForm.action.Add=Добавить
UIAddApplicationForm.msg.PortletExist=Это приложение уже в указанной категории. Выберите
другую категори.
+UIAddApplicationForm.msg.appNotExists=Please select an application.
UIAddApplicationForm.action.Cancel=#{word.cancel}
UIAddApplicationForm.label.displayName=#{label.displayName}
UIAddApplicationForm.label.type=Тип приложения
Modified:
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_uk.properties
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_uk.properties 2009-11-06
04:08:34 UTC (rev 509)
+++
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_uk.properties 2009-11-06
05:15:57 UTC (rev 510)
@@ -72,6 +72,7 @@
UIAddApplicationForm.header.description=Опис
UIAddApplicationForm.action.Add=Додати
UIAddApplicationForm.msg.PortletExist=Це застосування вже є в категорії, будь ласка,
оберіть інше!
+UIAddApplicationForm.msg.appNotExists=Please select an application.
UIAddApplicationForm.action.Cancel=#{word.cancel}
UIAddApplicationForm.label.displayName=#{label.displayName}
UIAddApplicationForm.label.type=Тип застосування
Modified:
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_vi.xml
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_vi.xml 2009-11-06
04:08:34 UTC (rev 509)
+++
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/ApplicationRegistryPortlet_vi.xml 2009-11-06
05:15:57 UTC (rev 510)
@@ -133,6 +133,7 @@
</action>
<msg>
<PortletExist>Ứng dụng này đã tồn tại trong danh mục này, hãy chọn một ứng
dụng khác!</PortletExist>
+ <appNotExists>Vui lòng chọn một ứng dụng.</appNotExists>
</msg>
<label>
<displayName>#{label.displayName}</displayName>