Author: chris.laprun(a)jboss.com
Date: 2010-01-28 05:43:54 -0500 (Thu, 28 Jan 2010)
New Revision: 1458
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/consumer/UISetPropertyValueForm.java
Log:
- Forgot to commit this change.
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/consumer/UISetPropertyValueForm.java
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/consumer/UISetPropertyValueForm.java 2010-01-28
10:09:29 UTC (rev 1457)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/consumer/UISetPropertyValueForm.java 2010-01-28
10:43:54 UTC (rev 1458)
@@ -29,8 +29,9 @@
import org.exoplatform.webui.core.lifecycle.UIFormLifecycle;
import org.exoplatform.webui.event.Event;
import org.exoplatform.webui.event.EventListener;
-import org.exoplatform.webui.form.UIForm;
import org.exoplatform.webui.form.UIFormStringInput;
+import org.exoplatform.wsrp.webui.component.UIMappedForm;
+import org.gatein.wsrp.consumer.RegistrationProperty;
/**
* @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
@@ -43,10 +44,11 @@
@EventConfig(listeners = UISetPropertyValueForm.SaveActionListener.class),
@EventConfig(listeners = UISetPropertyValueForm.CancelActionListener.class)
})
-public class UISetPropertyValueForm extends UIForm
+public class UISetPropertyValueForm extends UIMappedForm
{
private UIFormStringInput value;
private static final String[] ACTIONS = new String[]{"Save",
"Cancel"};
+ private RegistrationProperty prop;
public UISetPropertyValueForm()
{
@@ -54,6 +56,19 @@
setActions(ACTIONS);
}
+ public void setProperty(RegistrationProperty prop)
+ {
+ this.prop = prop;
+ try
+ {
+ setBackingBean(prop);
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace(); //To change body of catch statement use File | Settings |
File Templates.
+ }
+ }
+
static public class CancelActionListener extends
EventListener<UISetPropertyValueForm>
{
@Override