Return-Path: Delivered-To: apmail-shale-commits-archive@locus.apache.org Received: (qmail 50429 invoked from network); 31 Jul 2006 09:36:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Jul 2006 09:36:59 -0000 Received: (qmail 61311 invoked by uid 500); 31 Jul 2006 09:36:59 -0000 Delivered-To: apmail-shale-commits-archive@shale.apache.org Received: (qmail 61271 invoked by uid 500); 31 Jul 2006 09:36:59 -0000 Mailing-List: contact commits-help@shale.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@shale.apache.org Delivered-To: mailing list commits@shale.apache.org Received: (qmail 61262 invoked by uid 99); 31 Jul 2006 09:36:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 02:36:59 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 02:36:58 -0700 Received: from ajax.apache.org (localhost [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id A5519D49BD for ; Mon, 31 Jul 2006 10:36:37 +0100 (BST) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: commits@shale.apache.org Date: Mon, 31 Jul 2006 09:36:37 -0000 Message-ID: <20060731093637.24871.61513@ajax.apache.org> Subject: [Shale Wiki] Update of "ViewController" by ReneZanner X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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''