Author: wesleyhales
Date: 2010-01-13 14:03:17 -0500 (Wed, 13 Jan 2010)
New Revision: 1264
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpProducerEditor.java
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpRegistrationDetails.java
Log:
trying to fix issue with UIGrid in producerRegistrationDetails
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpProducerEditor.java
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpProducerEditor.java 2010-01-13
18:40:06 UTC (rev 1263)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpProducerEditor.java 2010-01-13
19:03:17 UTC (rev 1264)
@@ -25,8 +25,10 @@
import org.exoplatform.portal.webui.util.Util;
import org.exoplatform.web.application.ApplicationMessage;
import org.exoplatform.webui.config.annotation.ComponentConfig;
+import org.exoplatform.webui.config.annotation.ComponentConfigs;
import org.exoplatform.webui.config.annotation.EventConfig;
import org.exoplatform.webui.core.UIApplication;
+import org.exoplatform.webui.core.UIGrid;
import org.exoplatform.webui.core.lifecycle.UIFormLifecycle;
import org.exoplatform.webui.event.Event;
import org.exoplatform.webui.event.EventListener;
@@ -40,19 +42,23 @@
* @author Wesley Hales
* @author Chris Laprun
*/
-@ComponentConfig(
- lifecycle = UIFormLifecycle.class,
- template = "app:/groovy/wsrp/webui/component/UIWsrpProducerEditor.gtmpl",
- events = {
- @EventConfig(listeners = UIWsrpProducerEditor.SaveActionListener.class)
- }
-)
+@ComponentConfigs({
+ @ComponentConfig(id = "RegistrationPropertySelector", type = UIGrid.class,
template = "system:/groovy/webui/core/UIGrid.gtmpl"),
+ @ComponentConfig(
+ lifecycle = UIFormLifecycle.class,
+ template =
"app:/groovy/wsrp/webui/component/UIWsrpProducerEditor.gtmpl",
+ events = {
+ @EventConfig(listeners = UIWsrpProducerEditor.SaveActionListener.class)
+ }
+ )
+})
public class UIWsrpProducerEditor extends UIForm
{
private static final String REG_REQUIRED_FOR_DESCRIPTION =
"registrationrequiredforfulldescription";
private static final String STRICT_MODE = "strictmode";
private static final String REQUIRES_REGISTRATION = "requiresregistration";
private static final String REGISTRATION_DETAILS = "registrationdetails";
+ static final String REGISTRATION_PROPERTIES =
"RegistrationPropertySelector";
private ProducerConfigurationService configService;
private UIWsrpRegistrationDetails registrationDetails;
@@ -60,6 +66,15 @@
private UIFormCheckBoxInput strictMode;
private UIFormCheckBoxInput<Boolean> regRequired;
+ private UIGrid registrationProperties;
+
+ public UIGrid getRegistrationProperties() throws Exception
+ {
+ return createUIComponent(UIGrid.class, REGISTRATION_PROPERTIES,
REGISTRATION_PROPERTIES);
+ }
+
+
+
public UIWsrpProducerEditor() throws Exception
{
configService =
Util.getUIPortalApplication().getApplicationComponent(ProducerConfigurationService.class);
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpRegistrationDetails.java
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpRegistrationDetails.java 2010-01-13
18:40:06 UTC (rev 1263)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpRegistrationDetails.java 2010-01-13
19:03:17 UTC (rev 1264)
@@ -63,16 +63,15 @@
* @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
* @version $Revision$
*/
-@ComponentConfigs({
- @ComponentConfig(id = "RegistrationPropertySelector", type = UIGrid.class,
template = "system:/groovy/webui/core/UIGrid.gtmpl"),
- @ComponentConfig(
- lifecycle = UIApplicationLifecycle.class,
- events = {
- @EventConfig(listeners =
UIWsrpRegistrationDetails.AddPropertyActionListener.class),
- @EventConfig(listeners =
UIWsrpRegistrationDetails.EditPropertyActionListener.class),
- @EventConfig(listeners =
UIWsrpRegistrationDetails.DeletePropertyActionListener.class)
- })
-})
+
+@ComponentConfig(
+ lifecycle = UIApplicationLifecycle.class,
+ events = {
+ @EventConfig(listeners =
UIWsrpRegistrationDetails.AddPropertyActionListener.class),
+ @EventConfig(listeners =
UIWsrpRegistrationDetails.EditPropertyActionListener.class),
+ @EventConfig(listeners =
UIWsrpRegistrationDetails.DeletePropertyActionListener.class)
+ })
+
public class UIWsrpRegistrationDetails extends UIFormInputSet
{
private UIFormInputBase<String> policy;
@@ -85,6 +84,7 @@
static final String REGISTRATION_PROPERTIES =
"RegistrationPropertySelector";
static final String REGISTRATION_PROPERTIES_ITERATOR =
"ProducerPropPageIterator";
+
public UIWsrpRegistrationDetails(String name, UIWsrpProducerEditor parent) throws
Exception
{
super(name);
@@ -96,9 +96,10 @@
// validator
validator = new UIFormStringInput(VALIDATOR_CLASS, VALIDATOR_CLASS, null);
addUIFormInput(validator);
-
+ registrationProperties = parent.getRegistrationProperties();
// registration properties
- registrationProperties = addChild(UIGrid.class, REGISTRATION_PROPERTIES,
REGISTRATION_PROPERTIES);
+ //registrationProperties.setComponentConfig(UIGrid.class,REGISTRATION_PROPERTIES);
+ //registrationProperties = createUIComponent(UIGrid.class, null, null);
// add renderer for LocalizedString
ValueRenderer<LocalizedString> renderer = new
ValueRenderer<LocalizedString>()
Show replies by date