You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by gp...@apache.org on 2013/03/31 14:18:51 UTC
svn commit: r1462934 -
/incubator/deltaspike/site/trunk/content/deltaspike/jsf.mdtext
Author: gpetracek
Date: Sun Mar 31 12:18:51 2013
New Revision: 1462934
URL: http://svn.apache.org/r1462934
Log:
updated content
Modified:
incubator/deltaspike/site/trunk/content/deltaspike/jsf.mdtext
Modified: incubator/deltaspike/site/trunk/content/deltaspike/jsf.mdtext
URL: http://svn.apache.org/viewvc/incubator/deltaspike/site/trunk/content/deltaspike/jsf.mdtext?rev=1462934&r1=1462933&r2=1462934&view=diff
==============================================================================
--- incubator/deltaspike/site/trunk/content/deltaspike/jsf.mdtext (original)
+++ incubator/deltaspike/site/trunk/content/deltaspike/jsf.mdtext Sun Mar 31 12:18:51 2013
@@ -317,7 +317,30 @@ This annotation is a custom view-meta-da
}
### Referencing Views via @ViewRef
-[TODO]
+This annotation is currently not functional. It's going to be:
+
+`@ViewRef` allows to restrict e.g. phase-listener methods to specific views.
+Use an existing view-config OR (`ManualView.class` + the view-id string/s) to reference one or many view.
+Furthermore it's possible to use it at the class-level for configuring page-controllers (as an alternative to specifying the (page-)bean in the view-config).
+
+That means e.g.
+
+ :::java
+ @ViewRef(Pages.Page1.class)
+ //...
+ public class PageBean1 implements Serializable
+ {
+ @PreRenderView
+ protected void preRenderView()
+ {
+ //...
+ }
+
+ //...
+ }
+
+leads to the invocation of the pre-render-view logic before page1 gets rendered and
+it won't be called for other pages.
### Configuring a Default Error-View
[TODO]