You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2008/05/05 12:13:44 UTC
svn commit: r653409 - in
/myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations:
InitView.java PreProcess.java PreRenderView.java
Author: skitching
Date: Mon May 5 03:13:44 2008
New Revision: 653409
URL: http://svn.apache.org/viewvc?rev=653409&view=rev
Log:
Add documentation.
Modified:
myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations/InitView.java
myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations/PreProcess.java
myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations/PreRenderView.java
Modified: myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations/InitView.java
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations/InitView.java?rev=653409&r1=653408&r2=653409&view=diff
==============================================================================
--- myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations/InitView.java (original)
+++ myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations/InitView.java Mon May 5 03:13:44 2008
@@ -25,11 +25,16 @@
import java.lang.annotation.RetentionPolicy;
/**
- * Mark a method as needing to be invoked by the ViewController
- * before ???
+ * Mark a method as needing to be invoked by the ViewController.
+ * <p>
+ * This method will <i>always</i> be called before any other method is invoked
+ * on any backing bean for the current request. It is invoked once for each
+ * request.
* <p>
* This annotation will be ignored unless the class is also marked with the
* ViewController annotation.
+ * <p>
+ * See also: org.apache.myfaces.orchestra.viewController.ViewController
*/
@Target(value = {ElementType.METHOD})
@Retention(value = RetentionPolicy.RUNTIME)
Modified: myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations/PreProcess.java
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations/PreProcess.java?rev=653409&r1=653408&r2=653409&view=diff
==============================================================================
--- myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations/PreProcess.java (original)
+++ myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations/PreProcess.java Mon May 5 03:13:44 2008
@@ -25,11 +25,22 @@
import java.lang.annotation.RetentionPolicy;
/**
- * Marks a method as needing to be invoked by the ViewController
- * before ????.
+ * Marks a method as needing to be invoked by the ViewController.
+ * <p>
+ * This method will be invoked before any "action" callbacks related to buttons,
+ * links, etc. are invoked on backing beans for the current request.
+ * <p>
+ * For JSF, there is an exception: for command components marked as "immediate",
+ * the associated action method is invoked before this callback occurs. If that
+ * method then performs navigation then this callback will not occur at all.
+ * <p>
+ * Note also that for JSF, if validation failures occur then this callback will
+ * not be invoked (as actions are skipped).
* <p>
* This annotation will be ignored unless the class is also marked with the
* ViewController annotation.
+ * <p>
+ * See also: org.apache.myfaces.orchestra.viewController.ViewController
*/
@Target(value = {ElementType.METHOD})
@Retention(value = RetentionPolicy.RUNTIME)
Modified: myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations/PreRenderView.java
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations/PreRenderView.java?rev=653409&r1=653408&r2=653409&view=diff
==============================================================================
--- myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations/PreRenderView.java (original)
+++ myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/annotations/PreRenderView.java Mon May 5 03:13:44 2008
@@ -25,13 +25,16 @@
import java.lang.annotation.RetentionPolicy;
/**
- * Marks a method as needing to be invoked by the ViewController
- * before ???
+ * Marks a method as needing to be invoked by the ViewController.
+ * <p>
+ * This method will be invoked just before starting to render output to the user.
* <p>
* This annotation will be ignored unless the class is also marked with the
* ViewController annotation.
+ * <p>
+ * See also: org.apache.myfaces.orchestra.viewController.ViewController
*/
-@Target(value = {ElementType.METHOD})
+@Target(value = { ElementType.METHOD })
@Retention(value = RetentionPolicy.RUNTIME)
public @interface PreRenderView
{