Author: nbelaevski
Date: 2009-05-22 18:50:40 -0400 (Fri, 22 May 2009)
New Revision: 14288
Modified:
branches/community/3.3.X/ui/core/src/main/java/org/ajax4jsf/component/UIAjaxForm.java
Log:
https://jira.jboss.org/jira/browse/RF-5773
Modified:
branches/community/3.3.X/ui/core/src/main/java/org/ajax4jsf/component/UIAjaxForm.java
===================================================================
---
branches/community/3.3.X/ui/core/src/main/java/org/ajax4jsf/component/UIAjaxForm.java 2009-05-22
22:37:17 UTC (rev 14287)
+++
branches/community/3.3.X/ui/core/src/main/java/org/ajax4jsf/component/UIAjaxForm.java 2009-05-22
22:50:40 UTC (rev 14288)
@@ -42,7 +42,7 @@
* @version $Revision: 1.1.2.3 $ $Date: 2007/02/06 16:23:22 $
*
*/
-public abstract class UIAjaxForm extends UIForm implements AjaxComponent, AjaxSource
+public abstract class UIAjaxForm extends UIForm implements AjaxComponent, AjaxSource,
IterationStateHolder
{
public static final String COMPONENT_TYPE = "org.ajax4jsf.Form";
@@ -171,4 +171,11 @@
public abstract void setAjaxSubmit(boolean ajax);
+ public Object getIterationState() {
+ return isSubmitted() ? Boolean.TRUE : Boolean.FALSE;
+ }
+
+ public void setIterationState(Object state) {
+ setSubmitted(Boolean.TRUE.equals(state));
+ }
}