Return-Path:
Delivered-To: apmail-tapestry-dev-archive@www.apache.org
Received: (qmail 76621 invoked from network); 16 Feb 2011 16:55:49 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3)
by minotaur.apache.org with SMTP; 16 Feb 2011 16:55:49 -0000
Received: (qmail 57966 invoked by uid 500); 16 Feb 2011 16:55:49 -0000
Delivered-To: apmail-tapestry-dev-archive@tapestry.apache.org
Received: (qmail 57704 invoked by uid 500); 16 Feb 2011 16:55:46 -0000
Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm
Precedence: bulk
List-Help:
List-Unsubscribe:
List-Post:
List-Id:
Reply-To: dev@tapestry.apache.org
Delivered-To: mailing list commits@tapestry.apache.org
Received: (qmail 57666 invoked by uid 99); 16 Feb 2011 16:55:45 -0000
Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Feb 2011 16:55:45 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116)
by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Feb 2011 16:55:44 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116])
by hel.zones.apache.org (Postfix) with ESMTP id 82E0A196EE7
for ; Wed, 16 Feb 2011 16:55:24 +0000 (UTC)
Date: Wed, 16 Feb 2011 16:55:24 +0000 (UTC)
From: "Josh Canfield (JIRA)"
To: commits@tapestry.apache.org
Message-ID: <643749415.236.1297875324532.JavaMail.tomcat@hel.zones.apache.org>
In-Reply-To:
<496737197.20434.1297860897729.JavaMail.tomcat@hel.zones.apache.org>
Subject: [jira] Commented: (TAP5-1445) Add clientId parameter to the Zone
component
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394
[ https://issues.apache.org/jira/browse/TAP5-1445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995384#comment-12995384 ]
Josh Canfield commented on TAP5-1445:
-------------------------------------
As Howard said, this can be accomplished today. You are confusing "t:id" with the parameter "id", which is understandable. The parameter "id" does what you want.
This example code works today:
**** TML ***
Hello! ${zoneId} ${now}
Refresh
**** PAGE ****
@Property
private Integer zoneId;
@Component(id = "myZone")
private Zone zone;
public Block onRefresh(Integer zoneId) {
this.zoneId = zoneId;
return zone.getBody();
}
public String getNow() {
return new Date().toString();
}
*** GENERATED HTML ***
Hello! 1 Wed Feb 16 08:48:35 PST 2011
Refresh
Hello! 2 Wed Feb 16 08:48:35 PST 2011
Refresh
Hello! 3 Wed Feb 16 08:48:35 PST 2011
Refresh
Hello! 4 Wed Feb 16 08:48:35 PST 2011
Refresh
Hello! 5 Wed Feb 16 08:48:35 PST 2011
Refresh
> Add clientId parameter to the Zone component
> --------------------------------------------
>
> Key: TAP5-1445
> URL: https://issues.apache.org/jira/browse/TAP5-1445
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.2.4
> Reporter: Denis Stepanov
> Assignee: Howard M. Lewis Ship
> Priority: Minor
>
> It will solve dynamic zone id problem, when clientId is null it will use the previous approach. Now we are forced to have a copy of the zone component with a similar solution.
> Also, it would be nice if a generated id is available before rendering, in a case when someone calls getClient on a zone before it have been rendered.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira