Return-Path: X-Original-To: apmail-tapestry-users-archive@www.apache.org Delivered-To: apmail-tapestry-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2E4BD9D58 for ; Mon, 2 Apr 2012 23:21:46 +0000 (UTC) Received: (qmail 66075 invoked by uid 500); 2 Apr 2012 23:21:45 -0000 Delivered-To: apmail-tapestry-users-archive@tapestry.apache.org Received: (qmail 66053 invoked by uid 500); 2 Apr 2012 23:21:45 -0000 Mailing-List: contact users-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tapestry users" Delivered-To: mailing list users@tapestry.apache.org Received: (qmail 66045 invoked by uid 99); 2 Apr 2012 23:21:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 23:21:45 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.160.52] (HELO mail-pb0-f52.google.com) (209.85.160.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 23:21:38 +0000 Received: by pbcuo15 with SMTP id uo15so5840384pbc.11 for ; Mon, 02 Apr 2012 16:21:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer:x-gm-message-state; bh=tK8hrNyRmRYpqThegjre338oaW1MHz4zAmobYsYmo2A=; b=ikYPY10ojYeOWPDtAfiDRN0rZRVl+cog3zD8a+Z/Ff25dYqTXUGfF7Pluh4YP+bwKN ct1T88ADLw84dphA+wowVRbdhb5TiCFpDV6ntF8vRqMfxtjZX2XCaunNA6XvKy2ZZTz5 7QFgxOS0J9zaWQyUqPnoVzyQL9MabD8GJlUcEt1ARqoEKQZr2QfRKQEmOqWcexlxVY6c 8ufoEaROn+ds/BnSCdGzKjw9yVOYqAxLN0Sv6NbJ1V9c3GwKFdQCdo6BogiW5EGkUvWo h08ce6H/Om3hkAiZ81Cmd04ZB8xKF33SzcYjPNVVByIXzxEb1zaetXTR5psjmonYGg2V BWfg== Received: by 10.68.201.169 with SMTP id kb9mr23903816pbc.146.1333408878189; Mon, 02 Apr 2012 16:21:18 -0700 (PDT) Received: from [192.168.0.253] ([202.182.147.47]) by mx.google.com with ESMTPS id f7sm14955193pbr.3.2012.04.02.16.21.14 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 Apr 2012 16:21:17 -0700 (PDT) From: Chris Mylonas Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/alternative; boundary=Apple-Mail-46-766867242 Subject: Re: Q? about render phase of grid Date: Tue, 3 Apr 2012 09:21:08 +1000 In-Reply-To: To: "Thiago H. de Paula Figueiredo" , Tapestry users References: Message-Id: X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQm6hlpzcSq4zEA/AfnyTeF73LEuhAiuZPOWaYZEf61Jp/3yNMUMwFLXHctYXAOt8cG0Nnu1 X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-46-766867242 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii >=20 >=20 >> BTW, I'm mucking around with my first component and during = @SetupRender phase I have no data and return false to jump directly to = @CleanupRender - which outputs my div saying "There is no data". >>=20 >> I know this (@CleanupRender) will output all the time when I have = elements to write out in @BeginRender phases, but I'm just slowly = stepping through it all so I understand the render phases a bit better. >=20 > See http://tapestry.apache.org/component-rendering.html and = http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/whati= scalledandwhen. Just an FYI, Inspecting jumpstart, and the component rendering page, I couldn't get = @BeforeRenderBody to fire. @BeforeRenderTemplate boolean beforeRenderTemplate(MarkupWriter writer){ Element cur =3D writer.element("div", = "class","userbackground").addClassName("adifferentbackground"); cur.text("CHRIS! This is your amazing test div - = beforeRenderTemplate"); writer.end(); =09 return true ; } =09 @BeforeRenderBody void beforeRenderBody(MarkupWriter writer){ =09 Element cur =3D writer.element("div", = "class","userbackground").addClassName("adifferentbackground"); cur.text("CHRIS! This is your amazing test div - = beforeRenderBody"); writer.end(); } The component rendering page says "...Generally, your code will use the = SetupRender, BeginRender, AfterRender and CleanupRender phases ... often = just one or two of those..." which I'm happy with. Is the diagram accurate as to this @BeforeRenderBody annotation? For my = case, I'm happy to use beginRender - I just can't seem to follow the = flow to get @BeforeRenderBody to do what is suggested on = https://wiki.apache.org/tapestry/Tapestry5HowToCreateYourOwnComponents = for the tree example. Cheers Chris= --Apple-Mail-46-766867242--