Author: abelevich
Date: 2010-12-27 09:48:05 -0500 (Mon, 27 Dec 2010)
New Revision: 20810
Modified:
trunk/ui/common/ui/src/main/java/org/richfaces/component/UIDataAdaptor.java
trunk/ui/common/ui/src/main/java/org/richfaces/component/UISequence.java
trunk/ui/iteration/ui/src/main/java/org/richfaces/component/AbstractCollapsibleSubTable.java
Log:
https://jira.jboss.org/browse/RF-9937
Modified: trunk/ui/common/ui/src/main/java/org/richfaces/component/UIDataAdaptor.java
===================================================================
--- trunk/ui/common/ui/src/main/java/org/richfaces/component/UIDataAdaptor.java 2010-12-27
13:37:38 UTC (rev 20809)
+++ trunk/ui/common/ui/src/main/java/org/richfaces/component/UIDataAdaptor.java 2010-12-27
14:48:05 UTC (rev 20810)
@@ -69,6 +69,7 @@
import org.ajax4jsf.model.DataVisitor;
import org.ajax4jsf.model.ExtendedDataModel;
import org.ajax4jsf.model.Range;
+import org.richfaces.cdk.annotations.Attribute;
import org.richfaces.context.ExtendedVisitContext;
import org.richfaces.log.Logger;
import org.richfaces.log.RichfacesLogger;
@@ -574,6 +575,7 @@
this.extendedDataModel = extendedDataModel;
}
+ @Attribute
public String getVar() {
return (String) getStateHelper().get(PropertyKeys.var);
}
@@ -582,6 +584,7 @@
getStateHelper().put(PropertyKeys.var, var);
}
+ @Attribute
public String getRowKeyVar() {
return (String) getStateHelper().get(PropertyKeys.rowKeyVar);
}
@@ -590,6 +593,7 @@
getStateHelper().put(PropertyKeys.rowKeyVar, rowKeyVar);
}
+ @Attribute
public String getStateVar() {
return (String) getStateHelper().get(PropertyKeys.stateVar);
}
@@ -616,6 +620,8 @@
* before rendering. By default state is reset if there are no faces messages with
severity error or higher.
* @return
*/
+
+ @Attribute
public boolean isKeepSaved() {
Object value = getStateHelper().eval(PropertyKeys.keepSaved);
Modified: trunk/ui/common/ui/src/main/java/org/richfaces/component/UISequence.java
===================================================================
--- trunk/ui/common/ui/src/main/java/org/richfaces/component/UISequence.java 2010-12-27
13:37:38 UTC (rev 20809)
+++ trunk/ui/common/ui/src/main/java/org/richfaces/component/UISequence.java 2010-12-27
14:48:05 UTC (rev 20810)
@@ -45,6 +45,7 @@
import org.ajax4jsf.model.SequenceDataModel;
import org.ajax4jsf.model.SequenceRange;
import org.ajax4jsf.model.SequenceState;
+import org.richfaces.cdk.annotations.Attribute;
/**
* @author Nick Belaevski
@@ -139,6 +140,7 @@
return getFacesContext().getApplication().createConverter(Integer.class);
}
+ @Attribute
public int getFirst() {
return (Integer) getStateHelper().eval(PropertyKeys.first, 0);
}
@@ -148,6 +150,7 @@
updateState();
}
+ @Attribute
public int getRows() {
return (Integer) getStateHelper().eval(PropertyKeys.rows, 0);
}
@@ -157,6 +160,7 @@
updateState();
}
+ @Attribute
public Object getValue() {
return getStateHelper().eval(PropertyKeys.value);
}
@@ -166,6 +170,7 @@
getStateHelper().put(PropertyKeys.value, value);
}
+ @Attribute
public String getIterationStatusVar() {
return (String) getStateHelper().get(PropertyKeys.iterationStatusVar);
}
Modified:
trunk/ui/iteration/ui/src/main/java/org/richfaces/component/AbstractCollapsibleSubTable.java
===================================================================
---
trunk/ui/iteration/ui/src/main/java/org/richfaces/component/AbstractCollapsibleSubTable.java 2010-12-27
13:37:38 UTC (rev 20809)
+++
trunk/ui/iteration/ui/src/main/java/org/richfaces/component/AbstractCollapsibleSubTable.java 2010-12-27
14:48:05 UTC (rev 20810)
@@ -68,7 +68,8 @@
enum PropertyKeys {
expanded
}
-
+
+ @Attribute
public boolean isExpanded() {
return (Boolean)getStateHelper().eval(PropertyKeys.expanded, true);
}