shale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Shale Wiki] Update of "ViewController" by ReneZanner
Date Mon, 31 Jul 2006 09:36:37 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Shale Wiki" for change notification.

The following page has been changed by ReneZanner:
http://wiki.apache.org/shale/ViewController

New page:
== View Controller ==

=== When to use init(), preprocess() and prerender() ===

  In [http://www.nabble.com/Re%3A-Shale-AbstractViewController-for-Dummies-p4073019.html this
thread], Craig suggests asking yourself the following questions:
   1. Do I need the results of this computation in order to process a form submit?
   1. Do I need the results of this computation in order to render the page?

  Then, based on your answers,
   * Use init() for ''(1) and (2)''
   * Use preprocess() for ''(1) only''
   * Use prerender() for ''(2) only''

Mime
View raw message