You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ws...@apache.org on 2005/11/27 07:29:30 UTC

svn commit: r349185 - /struts/shale/trunk/xdocs/features-view-controller.xml

Author: wsmoak
Date: Sat Nov 26 22:29:24 2005
New Revision: 349185

URL: http://svn.apache.org/viewcvs?rev=349185&view=rev
Log:
Mention the requirement that the view controller's <managed-bean-name> can be mapped from the view id, and add more links.

Modified:
    struts/shale/trunk/xdocs/features-view-controller.xml

Modified: struts/shale/trunk/xdocs/features-view-controller.xml
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/xdocs/features-view-controller.xml?rev=349185&r1=349184&r2=349185&view=diff
==============================================================================
--- struts/shale/trunk/xdocs/features-view-controller.xml (original)
+++ struts/shale/trunk/xdocs/features-view-controller.xml Sat Nov 26 22:29:24 2005
@@ -162,15 +162,23 @@
         with a <code>ViewController</code> backing bean, you must:</p>
 
         <ul>
-          <li>Implement the <code>ViewController</code> interface.  The
-              most convenient way to do this is likely to be extending the
+          <li>Implement the
+              <a href="shale-core/apidocs/org/apache/shale/view/ViewController.html" target="_blank">
+              <code>ViewController</code></a>
+              interface.  The 
+              most convenient way to do this is likely to be extending the 
               convenience base class (<code>org.apache.shale.view.ViewController</code>).</li>
           <li>As required by the 
               <a href="http://java.sun.com/products/javabeans/" target="_blank">JavaBeans</a>
               specification, provide a no-args public constructor.</li>
-          <li>Declare your backing bean as a managed bean.  In nearly all
-              circumstances, you will want the bean to be placed in
-              request scope.</li>
+          <li>Declare your backing bean as a <code>&lt;managed-bean&gt;</code>, 
+              using a <code>&lt;managed-bean-name&gt;</code> value that can be 
+              mapped from the view identifier.  (See 
+              <a href="shale-core/apidocs/org/apache/shale/view/impl/DefaultViewControllerMapper.html" target="_blank">
+              <code>DefaultViewControllerMapper</code></a> for the details of
+              the default mapping.)
+              In nearly all circumstances, you will want the bean to be placed 
+              in request scope.</li>
           <li>(Optional) Provide public JavaBean properties that may be set
               to customize the functionality provided by this bean.  Typically,
               such properties will be configured based on the managed beans



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org