click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From med...@apache.org
Subject svn commit: r778267 - in /incubator/click/trunk/click/extras/src/org/apache/click/extras: cayenne/PropertySelect.java control/FormTable.java
Date Mon, 25 May 2009 03:16:08 GMT
Author: medgar
Date: Mon May 25 03:16:08 2009
New Revision: 778267

URL: http://svn.apache.org/viewvc?rev=778267&view=rev
Log:
javadoc updates

Modified:
    incubator/click/trunk/click/extras/src/org/apache/click/extras/cayenne/PropertySelect.java
    incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/cayenne/PropertySelect.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/cayenne/PropertySelect.java?rev=778267&r1=778266&r2=778267&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/cayenne/PropertySelect.java
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/cayenne/PropertySelect.java
Mon May 25 03:16:08 2009
@@ -108,6 +108,19 @@
  * Also note that the CayenneForm is not able to determine whether a property
  * is required, so you must set the PropertySelect required status manually.
  *
+ * <h3>OptionList Caching in Stateful Pages</h3>
+ *
+ * Note the PropertySelect will cache its optionList in a stateful page. If you
+ * need the optionList refreshed in each page view you will need to clear the
+ * option list.  For example:
+ *
+ * <pre class="prettyprint">
+ * public void onDestroy() {
+ *     customerSelect.getOptionList().clear();
+ *     super.onDestroy();
+ * }
+ * </pre>
+ *
  * @see CayenneForm
  * @see QuerySelect
  *

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java?rev=778267&r1=778266&r2=778267&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java
Mon May 25 03:16:08 2009
@@ -411,11 +411,11 @@
     }
 
     /**
-     * Set the list of form table rows. Each row can either be a value object 
+     * Set the list of form table rows. Each row can either be a value object
      * (JavaBean) or an instance of a <tt>Map</tt>.
      * <p/>
-     * <b>Important</b> ensure you set the rowList before control is processed

-     * so posted object changes can be applied. Do not invoke this method via 
+     * <b>Important</b> ensure you set the rowList before control is processed
+     * so posted object changes can be applied. Do not invoke this method via
      * the Page onRender() method, otherwise object updates will not be applied.
      * <p/>
      * Please note the rowList is cleared in table {@link #onDestroy()} method



Mime
View raw message