Author: andrei_exadel
Date: 2008-04-09 08:46:18 -0400 (Wed, 09 Apr 2008)
New Revision: 7695
Modified:
trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/component/UISimpleTogglePanel.java
Log:
RF-2963
Modified:
trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/component/UISimpleTogglePanel.java
===================================================================
---
trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/component/UISimpleTogglePanel.java 2008-04-09
12:45:19 UTC (rev 7694)
+++
trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/component/UISimpleTogglePanel.java 2008-04-09
12:46:18 UTC (rev 7695)
@@ -22,6 +22,7 @@
package org.richfaces.component;
import javax.faces.component.ActionSource;
+import javax.faces.context.FacesContext;
import org.ajax4jsf.component.AjaxActionComponent;
import org.ajax4jsf.component.AjaxComponent;
@@ -65,18 +66,31 @@
return true;
}
-/* public void setValueBinding(String arg0, ValueBinding arg1) {
- if ("opened".equals(arg0))
- super.setValueBinding("value", arg1);
- super.setValueBinding(arg0, arg1);
- }
+ public void processDecodes(FacesContext context) {
+ if (isOpened()) {
+ super.processDecodes(context);
+ } else {
+ if (context == null) {
+ throw new NullPointerException();
+ }
+ // Skip processing if our rendered flag is false
+ if (!isRendered()) {
+ return;
+ }
+ decode(context);
+ }
+ }
- public ValueBinding getValueBinding(String arg0) {
- if ("opened".equals(arg0))
- return super.getValueBinding("value");
- return super.getValueBinding(arg0);
- }
-*/
+
+
+/*
+ * public void setValueBinding(String arg0, ValueBinding arg1) { if
+ * ("opened".equals(arg0)) super.setValueBinding("value", arg1);
+ * super.setValueBinding(arg0, arg1); }
+ *
+ * public ValueBinding getValueBinding(String arg0) { if
("opened".equals(arg0))
+ * return super.getValueBinding("value"); return super.getValueBinding(arg0);
}
+ */
//public void broadcast(FacesEvent facesEvent) throws AbortProcessingException {
// super.broadcast(facesEvent);
// FacesContext facesContext = FacesContext.getCurrentInstance();
Show replies by date