From usersgavinpatel@example.net Thu May 01 01:00:53 2008 Return-Path: <usersgavinpatel@example.net> Delivered-To: gavinpatel@example.net Received: (qmail 81256 invoked from network); 1 May 2008 01:00:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2008 01:00:52 -0000 Received: (qmail 40667 invoked by uid 500); 1 May 2008 01:00:51 -0000 Delivered-To: gavinpatel@example.net Received: (qmail 40547 invoked by uid 500); 1 May 2008 01:00:50 -0000 Mailing-List: contact gavinpatel@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:gavinpatel@example.net> List-Unsubscribe: <mailto:gavinpatel@example.net> List-Post: <mailto:gavinpatel@example.net> List-Id: <users.tapestry.apache.org> Reply-To: "Tapestry users" <gavinpatel@example.net> Delivered-To: mailing list gavinpatel@example.net Received: (qmail 40535 invoked by uid 99); 1 May 2008 01:00:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Apr 2008 18:00:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gavinpatel@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO wa-out-1112.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 01:00:04 +0000 Received: by wa-out-1112.google.com with SMTP id j32so726537waf.7 for <gavinpatel@example.net>; Wed, 30 Apr 2008 18:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=cjQeAJ1ZtWgtWeAMxDkOw22/cHd0fPaCk1miW7aj13I=; b=U4XHXLx6nAV+7Ee4j8QnPhg632mR3KvUZtDxHM3TgkHhO61E+1pKVHnYxZG/Kgo0zjWfmlB2jI6B6z4sX6M4sp3B+kNvxZyqI/2RtGyVNNYxyexdEjKi7LSFGIKkBnWR3yN6DoEqXsXue4LCx8/mL/Pg4IR/RdyJFCbsuG6yvtE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=XR9g0J4q6ura8ftsMMRDqjtHONCLLQiaOGqTFe8OZOmMY+apBu439mU0siIU2mfXrag62976TzHdOuJGNFX7ZhgOuUwGyUoQuNjdX5RIo3/ShQXnwqy6s2nppRIUjiV3q7U85E+JcSiURbrGIhIhiWjF0WC7ypm9jGR2crPd9as= Received: by 83.161.120.155 with SMTP id m16mr1484795wam.146.1209603617723; Wed, 30 Apr 2008 18:00:17 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Wed, 30 Apr 2008 18:00:17 -0700 (PDT) Message-ID: <gavinpatel@example.net> Date: Wed, 30 Apr 2008 18:00:17 -0700 From: "Josh Canfield" <gavinpatel@example.net> Sender: gavinpatel@example.net To: "Tapestry users" <gavinpatel@example.net> Subject: Re: T5: OpenQA Maven repository location changed In-Reply-To: <gavinpatel@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <gavinpatel@example.net> <gavinpatel@example.net> X-Google-Sender-Auth: f4754e9a638f3686 X-Virus-Checked: Checked by ClamAV on apache.org Also... the 1.0-beta build appears to be incorrectly deployed for remote-control... hopefully they'll fix it eventually On Wed, Apr 30, 2008 at 4:30 PM, Christian Edward Gruber <gavinpatel@example.net> wrote: > That's not a maven problem, that's a problem with their repository move. > OpenQA put a damned html page up for the move, rather than an http redirect, > the way the spec says they should. (The http spec). It bit us in the ass > today too. :( > > Christian. > > > > On 30-Apr-08, at 15:38 , Joel Wiegman wrote: > > All, > > > > I'm sure someone has called this out already, but I noticed that > > OpenQA's repository (that tapestry-test relies on) has changed > > locations. > > > > Looks like it switched from http://maven.openqa.org to > > http://archiva.openqa.org/repository/releases/ . > > > > I'm guessing this would only get fixed in the next release (5.0.12)? > > > > <Insert Howard Maven rant here> :-) > > > > Joel > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: gavinpatel@example.net > > For additional commands, e-mail: gavinpatel@example.net > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: gavinpatel@example.net > For additional commands, e-mail: gavinpatel@example.net > > -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. --------------------------------------------------------------------- To unsubscribe, e-mail: gavinpatel@example.net For additional commands, e-mail: gavinpatel@example.net From usersgavinpatel@example.net Thu May 01 01:24:55 2008 Return-Path: <usersgavinpatel@example.net> Delivered-To: gavinpatel@example.net Received: (qmail 88864 invoked from network); 1 May 2008 01:24:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2008 01:24:55 -0000 Received: (qmail 57290 invoked by uid 500); 1 May 2008 01:24:52 -0000 Delivered-To: gavinpatel@example.net Received: (qmail 57277 invoked by uid 500); 1 May 2008 01:24:52 -0000 Mailing-List: contact gavinpatel@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:gavinpatel@example.net> List-Unsubscribe: <mailto:gavinpatel@example.net> List-Post: <mailto:gavinpatel@example.net> List-Id: <users.tapestry.apache.org> Reply-To: "Tapestry users" <gavinpatel@example.net> Delivered-To: mailing list gavinpatel@example.net Received: (qmail 57266 invoked by uid 99); 1 May 2008 01:24:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Apr 2008 18:24:52 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 83.161.120.155 is neither permitted nor denied by domain of gavinpatel@example.net) Received: from [83.161.120.155] (HELO smtp2.israfil.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 01:24:00 +0000 Received: from [IPv888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4:1] (mikail.israfil.net [83.161.120.155]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp2.israfil.net (Postfix) with ESMTP id 4EDEDAD4427; Wed, 30 Apr 2008 21:30:25 -0400 (EDT) Message-Id: <gavinpatel@example.net> From: Christian Edward Gruber <gavinpatel@example.net> To: "Tapestry users" <gavinpatel@example.net> In-Reply-To: <gavinpatel@example.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Subject: Re: T5: OpenQA Maven repository location changed Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 30 Apr 2008 21:24:18 -0400 References: <gavinpatel@example.net> <gavinpatel@example.net> <gavinpatel@example.net> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org A transition period where both repos were active wouldn't have hurt either. :( Christian. On 30-Apr-08, at 21:00 , Josh Canfield wrote: > Also... the 1.0-beta build appears to be incorrectly deployed for > remote-control... hopefully they'll fix it eventually > > --------------------------------------------------------------------- To unsubscribe, e-mail: gavinpatel@example.net For additional commands, e-mail: gavinpatel@example.net From usersgavinpatel@example.net Thu May 01 03:48:34 2008 Return-Path: <usersgavinpatel@example.net> Delivered-To: gavinpatel@example.net Received: (qmail 27535 invoked from network); 1 May 2008 03:48:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2008 03:48:34 -0000 Received: (qmail 33570 invoked by uid 500); 1 May 2008 03:48:32 -0000 Delivered-To: gavinpatel@example.net Received: (qmail 33559 invoked by uid 500); 1 May 2008 03:48:32 -0000 Mailing-List: contact gavinpatel@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:gavinpatel@example.net> List-Unsubscribe: <mailto:gavinpatel@example.net> List-Post: <mailto:gavinpatel@example.net> List-Id: <users.tapestry.apache.org> Reply-To: "Tapestry users" <gavinpatel@example.net> Delivered-To: mailing list gavinpatel@example.net Received: (qmail 33548 invoked by uid 99); 1 May 2008 03:48:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Apr 2008 20:48:32 -0700 X-ASF-Spam-Status: No, hits=-6.0 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gavinpatel@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO hkmail2.aig.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 03:47:47 +0000 Received: from xhkgimc02.aig.com (xhkgimc02.aig.com [83.161.120.155]) by HKGPLPPS3.aig.com (8.13.8/8.13.8) with ESMTP id m413lwlo019910 for <gavinpatel@example.net>; Thu, 1 May 2008 11:47:58 +0800 Received: by xhkgimc02.aig.com with Internet Mail Service (5.5.2658.27) id <JLN2D0DH>; Thu, 1 May 2008 11:50:00 +0800 Message-ID: <gavinpatel@example.net> From: "Partogi, Joshua" <gavinpatel@example.net> To: Tapestry users <gavinpatel@example.net> Subject: RE: T5: Why isn't there any validate property for RadioGroup ? Date: Thu, 1 May 2008 11:47:58 +0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2658.27) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8AB3E.2556119F" X-Proofpoint-Virus-Version: vendor=fsecure engine=4.65.7161:2.4.4,1.2.40,4.0.164 definitions=2008-04-30_06:2008-04-29,2008-04-30,2008-04-30 signatures=0 X-Proofpoint-Spam-Details: rule=aighkphase1_notspam policy=aighkphase1 score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=3.1.0-0804140000 definitions=main-0804300227 X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C8AB3E.2556119F Content-Type: text/plain; charset="iso-8859-1" So Howard, Will there be any plans in the future to support validation for RadioGroup? :) Thanks in advance -----Original Message----- From: Howard Lewis Ship [mailto:gavinpatel@example.net] Sent: Wednesday, April 30, 2008 10:56 PM To: Tapestry users Subject: Re: T5: Why isn't there any validate property for RadioGroup ? Because input is so constrained. Even so, I expect to add support for validation, even though only "required" makes sense. Validation is tricker for radio groups, because there is not corresponding client-side element (as there is for <select>) which means that any client-side validation is a special case. For my current project, I had required radio buttons, and implemented it using a mixin (but that wasn't satisfactory because it is relying on client-side validation). IMPORTANT NOTICE: The information in this email (and any attachments) is confidential. If you are not the intended recipient, you must not use or disseminate the information. If you have received this email in error, please immediately notify me by "Reply" command and permanently delete the original and any copies or printouts thereof. Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by American International Group, Inc. or its subsidiaries or affiliates either jointly or severally, for any loss or damage arising in any way from its use. ------_=_NextPart_001_01C8AB3E.2556119F-- From usersgavinpatel@example.net Thu May 01 04:34:14 2008 Return-Path: <usersgavinpatel@example.net> Delivered-To: gavinpatel@example.net Received: (qmail 40759 invoked from network); 1 May 2008 04:34:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2008 04:34:14 -0000 Received: (qmail 52368 invoked by uid 500); 1 May 2008 04:34:08 -0000 Delivered-To: gavinpatel@example.net Received: (qmail 52353 invoked by uid 500); 1 May 2008 04:34:08 -0000 Mailing-List: contact gavinpatel@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:gavinpatel@example.net> List-Unsubscribe: <mailto:gavinpatel@example.net> List-Post: <mailto:gavinpatel@example.net> List-Id: <users.tapestry.apache.org> Reply-To: "Tapestry users" <gavinpatel@example.net> Delivered-To: mailing list gavinpatel@example.net Received: (qmail 52342 invoked by uid 99); 1 May 2008 04:34:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Apr 2008 21:34:08 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gavinpatel@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mx30.mail.ru) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 04:33:23 +0000 Received: from [83.161.120.155] (port=23730 helo=[83.161.120.155]) by mx30.mail.ru with asmtp id 1JrQUB-000IuX-00 for gavinpatel@example.net; Thu, 01 May 2008 08:33:36 +0400 Date: Thu, 1 May 2008 11:32:07 +0700 From: Foror <gavinpatel@example.net> X-Mailer: The Bat! (v2.10.01) Personal Reply-To: Foror <gavinpatel@example.net> X-Priority: 3 (Normal) Message-ID: <gavinpatel@example.net> To: "Tapestry users" <gavinpatel@example.net> Subject: Re: Encoding problem (UTF-8) In-Reply-To: <gavinpatel@example.net> References: <gavinpatel@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam: Not detected X-Virus-Checked: Checked by ClamAV on apache.org j> I develop in Ubuntu and changing all to UTF-8 fixed both problems, but on j> Windows dose not works with the JSONObject. The database is on UTF-8, all j> data is saved ok, the only problem I get is when returning data on a j> JSONObject. Some problem with TextStreamResponse (TAPESTRY-2058). Fix it: class TextStreamResponse ... + private String _charset; // charset get from _contentType(";charset=UTF-8") // or get from tapestry.response-encoding public InputStream getStream() throws IOException { - return new ByteArrayInputStream(_text.getBytes()); + return new ByteArrayInputStream(_text.getBytes(_charset)); } ... return new TextStreamResponse("application/json", jsonObject.toString()); --------------------------------------------------------------------- To unsubscribe, e-mail: gavinpatel@example.net For additional commands, e-mail: gavinpatel@example.net From usersgavinpatel@example.net Thu May 01 07:38:20 2008 Return-Path: <usersgavinpatel@example.net> Delivered-To: gavinpatel@example.net Received: (qmail 8164 invoked from network); 1 May 2008 07:38:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2008 07:38:20 -0000 Received: (qmail 46465 invoked by uid 500); 1 May 2008 07:38:15 -0000 Delivered-To: gavinpatel@example.net Received: (qmail 46449 invoked by uid 500); 1 May 2008 07:38:15 -0000 Mailing-List: contact gavinpatel@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:gavinpatel@example.net> List-Unsubscribe: <mailto:gavinpatel@example.net> List-Post: <mailto:gavinpatel@example.net> List-Id: <users.tapestry.apache.org> Reply-To: "Tapestry users" <gavinpatel@example.net> Delivered-To: mailing list gavinpatel@example.net Received: (qmail 46438 invoked by uid 99); 1 May 2008 07:38:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 00:38:15 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 83.161.120.155 is neither permitted nor denied by domain of gavinpatel@example.net) Received: from [83.161.120.155] (HELO a2s13.a2hosting.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 07:37:19 +0000 Received: from host9-125-dynamic.32-79-r.retail.telecomitalia.it ([83.161.120.155] helo=chris-lewis-computer.local) by a2s13.a2hosting.com with esmtpa (Exim 4.68) (envelope-from <gavinpatel@example.net>) id 1JrTMD-0003wU-5e for gavinpatel@example.net; Thu, 01 May 2008 03:37:34 -0400 Message-ID: <gavinpatel@example.net> Date: Thu, 01 May 2008 09:37:31 +0200 From: Chris Lewis <gavinpatel@example.net> User-Agent: Thunderbird 83.161.120.155 (Macintosh/20080213) MIME-Version: 1.0 To: Tapestry users <gavinpatel@example.net> Subject: Re: page activation + components References: <gavinpatel@example.net> <gavinpatel@example.net> <gavinpatel@example.net> <gavinpatel@example.net> <gavinpatel@example.net> <gavinpatel@example.net> <gavinpatel@example.net> <gavinpatel@example.net> <gavinpatel@example.net> <gavinpatel@example.net> <gavinpatel@example.net> In-Reply-To: <gavinpatel@example.net> Content-Type: multipart/alternative; boundary="------------090007070105080200090404" X-A2hosting-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 1JrTMD-0003wU-5e X-A2hosting-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-A2hosting-MailScanner-SpamCheck: X-A2hosting-MailScanner-From: gavinpatel@example.net X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s13.a2hosting.com X-AntiAbuse: Original Domain - tapestry.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - bellsouth.net X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No --------------090007070105080200090404 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Josh, Yeah that looks like it would do it, working much like what proposed with pagelinks. Given a choice I would use the pagelink based way because architecturally it works the same (news page collects the id via context), but using pagelinks reduces the round-trips and the need to deal with events. Janos if you're still listening ;-), I think we've found the best ways possible to do what you want. The missing piece is that you said your News component was a component and not a page, so in that case use a page property (like Josh said) and in your page's template, testing for a valid newsId, provide the News component with it. These are the best methods we've seen, I just can't figure out why my mind keeps saying there's a better way :-|. chris Josh Canfield wrote: > Here's an app that does what I believe is trying to be done: > > // Page > public class News { > @Property > private Integer _newsId; > public void onActivate(Integer newsId) { > _newsId = newsId; > } > > public Integer onPassivate() { > return _newsId; > } > } > > // Page Template > <?xml version="1.0" encoding="UTF-8" ?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> > <body> > <t:newsQuote newsId="newsId" /> > </body> > </html> > > // Component > public class NewsQuote { > > @Parameter > private Integer _newsId; > > @Inject > private ComponentResources _resources; > > void beginRender(MarkupWriter writer) { > writer.element("ul"); > for (int i = 0; i < 5; ++i) { > writer.element("li"); > Link link = _resources.createActionLink("show", false, i); > writer.element("a", "href", link.toURI()); > writer.write("News number " + i); > writer.end(); > if (_newsId != null && _newsId.equals(i)) { > writer.write(" You picked " + _newsId); > } > writer.end(); > } > writer.end(); > } > > // The Action handler > void onShow(Integer id) { > // stored into the bound parameter, feeding it back into the page > _newsId = id; > } > } > > The url http://localhost:8080/news/4 > > Renders > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <link href="/assets/tapestry/default.css" rel="stylesheet" type="text/css"> > </head> > <body> > <ul> > <li><a href="/news.newsquote:show/0?t:ac=4">News number 0</a></li> > <li><a href="/news.newsquote:show/1?t:ac=4">News number 1</a></li> > <li><a href="/news.newsquote:show/2?t:ac=4">News number 2</a></li> > <li><a href="/news.newsquote:show/3?t:ac=4">News number 3</a></li> > <li><a href="/news.newsquote:show/4?t:ac=4">News number 4</a> You picked 4</li> > </ul> > </body> > </html> > > Josh > > On Wed, Apr 30, 2008 at 2:49 PM, Chris Lewis <gavinpatel@example.net> wrote: > >> I do hope we've missed a simpler way, but I don't think it's surfaced >> yet. Regarding parameters, how would that address the issue? NewsQuote >> displays a collection of items as links that represent selectable items >> (expressed as links). The action must be taken based on the user's >> selection, so a component parameter doesn't apply here. >> The event-based approach seems a theoretical perfect fit, but I can't >> see how to do it without using @Persist (which Janos wants to avoid). >> The only other thing I thought of is to have the NewsQuote component >> generate pagelinks based on the containing page instead of action links. >> This circumvents entirely the need for the events as the value will be >> in the page context, does not not make 2 requests, and ultimately gets >> the job done. It doesn't seem as elegant to me, but does the job and is >> completely decoupled from the page. >> >> Still not sure if we've had our epiphany yet :-) >> >> chris >> >> >> Josh Canfield wrote: >> >>>> I mean really, how is that any simpler than >>>> dealing directly with query parameters? >>>> >>>> >>> Hehe... I have to admit that I was solving a much more complicated >>> problem than the original question, probably brought on by an earlier >>> request about dynamic component rendering... I was shooting for >>> completely decoupled context handling for an unknown assortment of >>> components. Say you have 50 potential portlet components on a page >>> that may get included multiple times and may or may not add to the >>> context of the page, you probably don't want to manage that through >>> individual page properties. >>> >>> Anyway, >>> Isn't the straight forward solution to this problem to use component >>> parameters as Joel pointed out? If your NewsQuote component accepts a >>> newsId parameter, that binding is bi-directional. When the event >>> occurs in the component it calls the setter of the bound parameter, >>> which updates the value in the page and gets put back into the url via >>> context returned by onPassivate. When the value is set during render >>> time the component grabs the news item and renders it, if not it grabs >>> the top five and displays them... >>> >>> Perhaps as Joel pointed out we're just making this too complicated and >>> we should be the ones kicked out! >>> >>> Josh >>> >>> On Wed, Apr 30, 2008 at 1:27 PM, Chris Lewis <gavinpatel@example.net> wrote: >>> >>> >>>> I see how this whole push on/pull off environment will solve the issue, >>>> but it just seems so nasty. I mean really, how is that any simpler than >>>> dealing directly with query parameters? I point at this only to >>>> highlight that perhaps Janos has brought to light a legitimately rough >>>> edge in T5, or else there's a cleaner way to do it and we're all just >>>> missing it. I'm convinced that the event system is the way to go as it >>>> seems a natural fit, but the redirect-after-action part is rendering it >>>> useless without using @Persist! Let me share what I've put together, and >>>> maybe someone will find the missing piece. I have a working test and >>>> I'll abbreviate the code here and assume a few things: >>>> >>>> (coming in another message - i tripped the spam filter :-| ) >>>> >>>> >>>> Josh Canfield wrote: >>>> >>>> >>>>> Are you trying to keep the news id out of the url? Doesn't sound like >>>>> it from your response to not doing the redirect. Since that's the >>>>> case, why not add it to the page context? >>>>> >>>>> I suppose if you were building a portal with several components then >>>>> keeping track of component parameters could get unwieldy. If you were >>>>> showing a news article from the news portlet, and a stock highlight >>>>> from the stock portlet... At that point you're sort of building a >>>>> framework on a framework. >>>>> >>>>> You could build your page such that it accumulated context from it's >>>>> components. Push a ComponentContext object into the Environment >>>>> onActivate, and setupRender in your page (env gets cleared before >>>>> render phase, not sure if there is a better way than doing it in >>>>> both.) Then collect component parameter mappings. onPassivate for your >>>>> page would organize and return these as it's context (you might want >>>>> to sort them to get consistent results) >>>>> >>>>> Your url might look like this: >>>>> >>>>> http://localhost/context/mypage/cc/news/4527/stock/MCD >>>>> >>>>> Then onactivate you init the ComponentContext from the url keying off >>>>> the "cc" to grab the remaining parameters and use them as key/value >>>>> for the components. The your components do something like: >>>>> >>>>> @Environmental >>>>> private ComponentContext _compContext; >>>>> >>>>> void setupRender() { >>>>> Long newsId = _compContext.getLong(_resources.getId()); >>>>> } >>>>> >>>>> void onPickNewsItem(Long id) { >>>>> _compContext.put(_resources.getId(), id); >>>>> } >>>>> >>>>> >>>>> Josh >>>>> >>>>> On Wed, Apr 30, 2008 at 5:23 AM, János Jarecsni >>>>> <gavinpatel@example.net> wrote: >>>>> >>>>> >>>>> >>>>>> Hi Chris, >>>>>> >>>>>> I try to explain :) >>>>>> Say, you have a "NewsQuote" component, which shows a few lines from the 5 >>>>>> latest news. At the and of each quotations, there a "More" link. Now, when >>>>>> the user clicks on this link (an action link, for that matter), the >>>>>> NewsQuote component will set a request scope info saying that the news with >>>>>> ID=4527 is requested. And when it comes to the "News" component (it is able >>>>>> to show the text of a given news in full), it simply looks at this piece of >>>>>> info, and loads the news with id 4527 (or gets it from an app level cache >>>>>> :)) and renders it. >>>>>> >>>>>> Hope it tells something about what I am up to :) >>>>>> >>>>>> thx >>>>>> Janos >>>>>> >>>>>> 2008/4/30 Chris Lewis <gavinpatel@example.net>: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Honestly it's difficult for me to imagine a situation where I'd do that >>>>>>> because it seems to violate a degree of encapsulation that tapestry >>>>>>> imposes as a "freeing law" of the framework. The epicenter of that being >>>>>>> that one should not think in terms of low-level idioms such as request >>>>>>> parameters, and instead replace those with a higher level of application >>>>>>> logic that eclipses them entirely (when possible). That's not to say >>>>>>> that your perspective is flawed, but from the small bit of understanding >>>>>>> I've taken from your posts I can't see why one would do what you want. >>>>>>> The thing that I've been saying is missing here is, what are you trying >>>>>>> to do? I don't mean technically, I mean what is the end result for the >>>>>>> user? Understanding this is critical, but even if I don't your problem >>>>>>> can still be solved by using a session to serve as an arbitrary holder. >>>>>>> If you've settled on this architecture, why not write such a generic >>>>>>> service and move on? >>>>>>> >>>>>>> >>>>>>> >>>>>>> >> -- >> http://thegodcode.net >> >> >> > > > > -- http://thegodcode.net --------------090007070105080200090404-- From usersgavinpatel@example.net Thu May 01 10:17:51 2008 Return-Path: <usersgavinpatel@example.net> Delivered-To: gavinpatel@example.net Received: (qmail 37428 invoked from network); 1 May 2008 10:17:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2008 10:17:50 -0000 Received: (qmail 40220 invoked by uid 500); 1 May 2008 10:17:49 -0000 Delivered-To: gavinpatel@example.net Received: (qmail 39639 invoked by uid 500); 1 May 2008 10:17:47 -0000 Mailing-List: contact gavinpatel@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:gavinpatel@example.net> List-Unsubscribe: <mailto:gavinpatel@example.net> List-Post: <mailto:gavinpatel@example.net> List-Id: <users.tapestry.apache.org> Reply-To: "Tapestry users" <gavinpatel@example.net> Delivered-To: mailing list gavinpatel@example.net Received: (qmail 39621 invoked by uid 99); 1 May 2008 10:17:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 03:17:47 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO hamlet.fsadev.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 10:17:01 +0000 Received: from [83.161.120.155] (3909ds1-aboes.0.fullrate.dk [83.161.120.155]) by hamlet.fsadev.com (Postfix) with ESMTP id 69AA62E881 for <gavinpatel@example.net>; Thu, 1 May 2008 12:17:13 +0200 (CEST) Message-ID: <gavinpatel@example.net> Date: Thu, 01 May 2008 12:17:11 +0200 From: "Filip S. Adamsen" <gavinpatel@example.net> Organization: FSA Development User-Agent: Thunderbird 83.161.120.155 (Windows/20080213) MIME-Version: 1.0 To: Tapestry users <gavinpatel@example.net> Subject: Re: T5: Why isn't there any validate property for RadioGroup ? References: <gavinpatel@example.net> In-Reply-To: <gavinpatel@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Putting an issue in JIRA would be a start. -Filip On 2008-05-01 05:47, Partogi, Joshua wrote: > So Howard, > > Will there be any plans in the future to support validation for RadioGroup? > :) > > Thanks in advance > > -----Original Message----- > From: Howard Lewis Ship [mailto:gavinpatel@example.net] > Sent: Wednesday, April 30, 2008 10:56 PM > To: Tapestry users > Subject: Re: T5: Why isn't there any validate property for RadioGroup ? > > > Because input is so constrained. Even so, I expect to add support for > validation, even though only "required" makes sense. Validation is > tricker for radio groups, because there is not corresponding > client-side element (as there is for <select>) which means that any > client-side validation is a special case. For my current project, I > had required radio buttons, and implemented it using a mixin (but that > wasn't satisfactory because it is relying on client-side validation). > > IMPORTANT NOTICE: > The information in this email (and any attachments) is confidential. If you are not the intended recipient, you must not use or disseminate the information. If you have received this email in error, please immediately notify me by "Reply" command and permanently delete the original and any copies or printouts thereof. Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by American International Group, Inc. or its subsidiaries or affiliates either jointly or severally, for any loss or damage arising in any way from its use. --------------------------------------------------------------------- To unsubscribe, e-mail: gavinpatel@example.net For additional commands, e-mail: gavinpatel@example.net From usersgavinpatel@example.net Thu May 01 11:26:15 2008 Return-Path: <usersgavinpatel@example.net> Delivered-To: gavinpatel@example.net Received: (qmail 64628 invoked from network); 1 May 2008 11:26:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2008 11:26:15 -0000 Received: (qmail 98825 invoked by uid 500); 1 May 2008 11:26:15 -0000 Delivered-To: gavinpatel@example.net Received: (qmail 98808 invoked by uid 500); 1 May 2008 11:26:15 -0000 Mailing-List: contact gavinpatel@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:gavinpatel@example.net> List-Unsubscribe: <mailto:gavinpatel@example.net> List-Post: <mailto:gavinpatel@example.net> List-Id: <users.tapestry.apache.org> Reply-To: "Tapestry users" <gavinpatel@example.net> Delivered-To: mailing list gavinpatel@example.net Received: (qmail 98792 invoked by uid 99); 1 May 2008 11:26:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 04:26:15 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 83.161.120.155 is neither permitted nor denied by domain of gavinpatel@example.net) Received: from [83.161.120.155] (HELO a2s13.a2hosting.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 11:25:20 +0000 Received: from host9-125-dynamic.32-79-r.retail.telecomitalia.it ([83.161.120.155] helo=chris-lewis-computer.local) by a2s13.a2hosting.com with esmtpa (Exim 4.68) (envelope-from <gavinpatel@example.net>) id 1JrWus-0001wz-8u for gavinpatel@example.net; Thu, 01 May 2008 07:25:34 -0400 Message-ID: <gavinpatel@example.net> Date: Thu, 01 May 2008 13:25:26 +0200 From: Chris Lewis <gavinpatel@example.net> User-Agent: Thunderbird 83.161.120.155 (Macintosh/20080213) MIME-Version: 1.0 To: Tapestry users <gavinpatel@example.net> Subject: Re: T5: Ajax update of one form field based on change to another form field? References: <gavinpatel@example.net> In-Reply-To: <gavinpatel@example.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-A2hosting-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 1JrWus-0001wz-8u X-A2hosting-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-A2hosting-MailScanner-SpamCheck: X-A2hosting-MailScanner-From: gavinpatel@example.net X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s13.a2hosting.com X-AntiAbuse: Original Domain - tapestry.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - bellsouth.net X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No Franz Amador wrote: > Hi, all. I asked about this a while ago, and there was no good answer > then, but I'm hoping that there are new options now. I have a bean > that holds information about a database connection. I'm editing it > with BeanEditForm. One of the fields is the database type, an enum > that renders as a dropdown. Another field is the database-server > port. When the user picks a database type from the dropdown, I want > to update the database port to the default value for that database > type (e.g. 1521 for Oracle), while leaving the other fields alone. Is > there a good way to do this? > > I see there's now a zone parameter to BeanEditForm that causes the > specified zone to be updated when the form is submitted. This sounds > promising, but I don't see how to make it work for my case. > > 1) I would need to make the form auto-submit when the user picks a > value from the dropdown. I don't know how to do that, but there must > be a way. > > Why would you need to submit the form when a value is selected from the list? If you know the available DBs before hand, then you know the default ports. Store those as a client-side JSON object and use the select's onchange event. > 2) I would need a way to prevent validation from complaining about > missing or errant fields during the form auto-submit, but to have > validation work normally during a regular form submit (via the submit > button). > > 3) I would need the form to do an Ajax zone update on an auto-submit > (for a zone containing the form itself), but not on a regular form > submit. > > On the whole, I prefer Tapestry 5 to Wicket, but for Ajax, I think > Wicket's approach has some advantages. In Wicket, you can register an > event listener on a component (e.g. an on-change listener on a > dropdown). When the event happens, the listener method gets passed a > list to which it appends components that should be re-rendered. While tapestry's Ajax support is still in the oven, it has @OnEvent which does something similar. > In my > case, I'd append the database-port-field component to the list when > the database-type enum changes value. This approach allows me to > update multiple components anywhere on the page in response to any > event, with no need for a special update-target-wrapper component like > Zone. (You do have to call "setOutputMarkupId(true)" when creating a > component that can be rendered via Ajax.) > > I hope this doesn't come across as a "Wicket is better than Tapestry" > taunt. I've experimented with both at some length, and I find > Tapestry 5 tighter and leaner and faster. However, I really need > richer Ajax tools, and I think the Wicket approach is worth looking > at. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: gavinpatel@example.net > For additional commands, e-mail: gavinpatel@example.net > > > -- http://thegodcode.net --------------------------------------------------------------------- To unsubscribe, e-mail: gavinpatel@example.net For additional commands, e-mail: gavinpatel@example.net From usersgavinpatel@example.net Thu May 01 12:02:06 2008 Return-Path: <usersgavinpatel@example.net> Delivered-To: gavinpatel@example.net Received: (qmail 74822 invoked from network); 1 May 2008 12:02:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2008 12:02:06 -0000 Received: (qmail 23287 invoked by uid 500); 1 May 2008 12:02:01 -0000 Delivered-To: gavinpatel@example.net Received: (qmail 23269 invoked by uid 500); 1 May 2008 12:02:01 -0000 Mailing-List: contact gavinpatel@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:gavinpatel@example.net> List-Unsubscribe: <mailto:gavinpatel@example.net> List-Post: <mailto:gavinpatel@example.net> List-Id: <users.tapestry.apache.org> Reply-To: "Tapestry users" <gavinpatel@example.net> Delivered-To: mailing list gavinpatel@example.net Received: (qmail 23258 invoked by uid 99); 1 May 2008 12:02:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 05:02:01 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gavinpatel@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO wf-out-1314.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 12:01:14 +0000 Received: by wf-out-1314.google.com with SMTP id 28so743516wfc.26 for <gavinpatel@example.net>; Thu, 01 May 2008 05:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; bh=k4VRx55grvF7oeaOv+BqraB20Djp4cXgpjrI7yartpk=; b=CVuHj9vreHLofMK2BEufDfFT5RaKge2x/SMOivf3CqzRcP0SWNL0O8h0eWusZHwhUNRqmgt5+7/DNTccAHnH/GiKr6euqdn+HWMcoO8yQ8fuB+nVQK53VxbM5wU1gvHztFAYTcyh9wAVbvfKB2oTg2K4yPOK9X1rVsYpgvs1Yp8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; b=k0Y+28bp2Ts1OTZZSOdB7mxqsC9iBH+Tz9cTIAtJySrOmFyrKmeqs0utOrQFcOOZHkILv42tHM43BO0dIg0mr7hhmIrP4FOq3SzfJ/+RSxbcL/t5lR5NEWiHgeVT8J2GDQbgvJIktotzT1REFUfrcgQ424pIHpJpABug9s+CgLo= Received: by 83.161.120.155 with SMTP id c17mr761299wff.83.1209643288422; Thu, 01 May 2008 05:01:28 -0700 (PDT) Received: from ?83.161.120.155? ( [83.161.120.155]) by mx.google.com with ESMTPS id 30sm4645294wfa.17.283.161.120.155.01.24 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 May 2008 05:01:27 -0700 (PDT) Message-Id: <gavinpatel@example.net> From: Geoff Callender <gavinpatel@example.net> To: Tapestry users <gavinpatel@example.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Subject: [ANN] JumpStart 3.6: Wizards, Conversations, and more Date: Thu, 1 May 2008 22:01:01 +1000 X-Mailer: Apple Mail (2.915) X-Virus-Checked: Checked by ClamAV on apache.org Hi all, JumpStart 3.6 is now available. It's for Tapestry 5.0.11. New in this release: * Wizards - 3 styles explored: with form fragments, with components, and with separate pages. * Conversations - implemented in the wizards to handle the Back and Reload buttons and sessions shared by new windows. * Conversations List - shows your conversations and lets you jump to them. * Session Display - see what objects are in your session. * Autocomplete Mixin - see it in action. * The Select component - new and better examples. You'll find JumpStart at: http://files.doublenegative.com.au/jumpstart The implementation of conversations is my own invention and has not been used in anger. I'm sure it could be improved, eg. with annotations. I pray that it doesn't have any holes in it, and I look forward to any contributions that will help it along. As always, comments and suggestions are encouraged. Be helpful or brutal - I don't care which - because it all helps to make this stuff more useful. Cheers, Geoff Callender --------------------------------------------------------------------- To unsubscribe, e-mail: gavinpatel@example.net For additional commands, e-mail: gavinpatel@example.net From usersgavinpatel@example.net Thu May 01 12:53:49 2008 Return-Path: <usersgavinpatel@example.net> Delivered-To: gavinpatel@example.net Received: (qmail 99687 invoked from network); 1 May 2008 12:53:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2008 12:53:49 -0000 Received: (qmail 62898 invoked by uid 500); 1 May 2008 12:53:47 -0000 Delivered-To: gavinpatel@example.net Received: (qmail 62568 invoked by uid 500); 1 May 2008 12:53:46 -0000 Mailing-List: contact gavinpatel@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:gavinpatel@example.net> List-Unsubscribe: <mailto:gavinpatel@example.net> List-Post: <mailto:gavinpatel@example.net> List-Id: <users.tapestry.apache.org> Reply-To: "Tapestry users" <gavinpatel@example.net> Delivered-To: mailing list gavinpatel@example.net Received: (qmail 62557 invoked by uid 99); 1 May 2008 12:53:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 05:53:46 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO web86612.mail.ird.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 May 2008 12:52:51 +0000 Received: (qmail 69260 invoked by uid 60001); 1 May 2008 12:53:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=D5MJh7OPGOSr2kZToa3q+aI20S8SOhmWx4YqUy/iP60DvQ5xzEvoobITUMf9rrPTtJHaRkMncsHp2PwFDzVCP9Xtk6z4HoG8e+L8XFZb0aT7GRfjtNKeP6t0A1Z3BfUtpWU+neytXv4SVIH4uZXKQCUMDaBf16GbjlCuP10AFS4=; X-YMail-OSG: HkYZ27IVM1k6h7al.wMihO15.m7jp8QzBv_c6huQEKD4KtbVu_Oa7Pj3I8OxWRiNuJ.L4KwzFRczBuv85NrpHY8324lbtegIbBHskSIlGqvxIqQ2.jHU3QfKHM4- Received: from [83.161.120.155] by web86612.mail.ird.yahoo.com via HTTP; Thu, 01 May 2008 12:53:11 GMT X-Mailer: YahooMailRC/902.40 YahooMailWebService/0.7.185 Date: Thu, 1 May 2008 12:53:11 +0000 (GMT) From: Toby Hobson <gavinpatel@example.net> Reply-To: Toby Hobson <gavinpatel@example.net> Subject: T5 pagelink problem To: gavinpatel@example.net MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1739113058-1209646391=:68066" Message-ID: <gavinpatel@example.net> X-Virus-Checked: Checked by ClamAV on apache.org --0-1739113058-1209646391=:68066 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I have a strange problem with the pagelink component. I am trying to naviga= te from the start page to the ViewPhoto page but I get an exception:=0A=0A[= ERROR] RequestExceptionHandler Processing of request failed withuncaught ex= ception: Exception in methodcom.thc.web.pages.ViewPhoto.onActivate(java.lan= g.Long) (atViewPhoto.java:18), parameter #1: Coercion of images to typejava= .lang.Long (via String --> Long) failed: For input string:"images"=0Aorg.ap= ache.tapestry.runtime.ComponentEventException: Exception inmethod com.thc.w= eb.pages.ViewPhoto.onActivate(java.lang.Long) (atViewPhoto.java:18), parame= ter #1: Coercion of images to typejava.lang.Long (via String --> Long) fail= ed: For input string:"images"=gavinpatel@example.net= re.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.ja= va:1021)=0A...=0A=0Aand=0A=0A[ERROR] RequestExceptionHandler Processing of = request failed withuncaught exception: Exception in methodcom.thc.web.pages= .ViewPhoto.onActivate(java.lang.Long) (atViewPhoto.java:18), parameter #1: = Coercion of styles to typejava.lang.Long (via String --> Long) failed: For = input string:"styles"=0Aorg.apache.tapestry.runtime.ComponentEventException= : Exception inmethod com.thc.web.pages.ViewPhoto.onActivate(java.lang.Long)= (atViewPhoto.java:18), parameter #1: Coercion of styles to typejava.lang.L= ong (via String --> Long) failed: For input string:"styles"=gavinpatel@example.net= ache.tapestry.internal.structure.ComponentPageElementImpl.triggerContextEve= nt(ComponentPageElementImpl.java:1021=0A=0AI think it's because tapestry is= interpreting the ref to styles/style and images/x.jpg (in layout.tml) as p= arams to the onActivate method. Do I have to use a special tapestry tag for= any hrefs in my templates? The page renders without any problems if I leav= e out the onActivate method.=0A=0AHere's the relevant code=0A=0AStart.tml:= =0A=0A<t:pagelink page=3D"viewPhoto" context=3D"currentPhoto.id">=0A<img al= t=3D"#" src=3D"${currentPhoto.imageResource.resource}" width=3D"64"height= =3D"64" />=0A</t:pagelink>=0A=0AViewPhoto.java:=0A=0Apackage com.thc.web.pa= ges;=0A... =0Apublic class ViewPhoto {=0A =0A private Photo photo;=0A= =0A @Inject=0A private PhotoDao photoDao;=0A =0A private Lo= ng imageId;=0A =0A void onActivate(Long imageId) {=0A this.ima= geId =3D imageId;=0A photo =3D photoDao.findImageById(imageId);=0A = }=0A =0A Long onPassivate() { return imageId }=0A =0A public = Photo getPhoto() {=0A return photo;=0A }=0A=0A public void set= Photo(Photo photo) {=0A this.photo =3D photo;=0A }=0A=0A}=0A=0Ala= yout.tml=0A=0A<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"=0A = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">=0A=0A<head>=0A<meta h= ttp-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8" />=0A<tit= le>Blotterpad</title>=0A<link href=3D"styles/style.css" rel=3D"stylesheet" = type=3D"text/css" />=0A</head>=0A<body>=0A<form action=3D"#">=0A<div id=3D"= container">=0A <div id=3D"header">=0A <t:pagelink page=3D"start"><img a= lt=3D"#" src=3D"images/art_Logo.gif" width=3D"269" height=3D"92" /></t:page= link></div>=0A <div id=3D"login"><a href=3D"#"><img alt=3D"#" src=3D"image= s/btn_home.jpg" width=3D"11" height=3D"10" /></a> | <a href=3D"#"><img alt= =3D"#" src=3D"images/btn_contact.jpg" width=3D"11" height=3D"8" /></a></div= >=0A <div class=3D"clear"></div>=0A <div id=3D"navcontainer">=0A <= div style=3D"float:right;"><img alt=3D"#" src=3D"images/art_navbg_right.jpg= " width=3D"6" height=3D"31" /></div>=0A <div class=3D"menutop">=0A = <ul id=3D"cssdropdown">=0A <li class=3D"mainitems"><a t:type= =3D"pagelink" page=3D"Start" href=3D"#">Home</a></li>=0A <li class= =3D"mainitems"><a t:type=3D"pagelink" page=3D"MyPhotos" href=3D"#">My Photo= s</a></li>=0A <li class=3D"mainitems"><a t:type=3D"pagelink" page= =3D"MyEditions" href=3D"#">My Artwork</a></li>=0A <li class=3D"mai= nitems"><a t:type=3D"pagelink" page=3D"MyFavourites" href=3D"#">My Favorite= s</a></li>=0A <li class=3D"mainitems"><a t:type=3D"pagelink" page= =3D"Search" href=3D"#">Search</a></li>=0A <li class=3D"mainitems">= <a t:type=3D"pagelink" page=3D"MyAccount" href=3D"#">MyAccount</a></li>=0A = </ul>=0A </div>=0A </div>=0A =0A <!-- content here -->= =0A <t:body />=0A =0A <div class=3D"clear"></div>=0A <div class=3D"cl= ear"></div>=0A <div id=3D"footer">=0A <div id=3D"navcontainer2">=0A = <ul id=3D"navlist">=0A <li><a href=3D"#">Home</a></li>=0A = <li><a href=3D"#">Registration</a></li>=0A <li><a href=3D"#">My Gal= leries</a></li>=0A <li><a href=3D"#">My Favourites</a></li>=0A = <li><a href=3D"#">My Editions</a></li>=0A <li><a href=3D"#">My Acc= ount</a></li>=0A <li><a href=3D"#">View photo</a></li>=0A <li= style=3D"border:0px!important;"><a href=3D"#">Contact Us</a></li>=0A = </ul>=0A </div>=0A<p style=3D"padding:10px 0px;"><strong>Blotterpad</s= trong> 2007.All Rights reserved</p>=0A </div>=0A</div>=0A</form>=0A</body>= =0A</html>=0A=0AThe start page generates a link in the form http://myapp/vi= ewphoto/1 as I would expect but when i click on the link i get the exceptio= n=0A=0AThanks!=0A=0A --0-1739113058-1209646391=:68066-- From usersgavinpatel@example.net Thu May 01 13:02:30 2008 Return-Path: <usersgavinpatel@example.net> Delivered-To: gavinpatel@example.net Received: (qmail 5617 invoked from network); 1 May 2008 13:02:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2008 13:02:30 -0000 Received: (qmail 74667 invoked by uid 500); 1 May 2008 13:02:27 -0000 Delivered-To: gavinpatel@example.net Received: (qmail 74655 invoked by uid 500); 1 May 2008 13:02:27 -0000 Mailing-List: contact gavinpatel@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:gavinpatel@example.net> List-Unsubscribe: <mailto:gavinpatel@example.net> List-Post: <mailto:gavinpatel@example.net> List-Id: <users.tapestry.apache.org> Reply-To: "Tapestry users" <gavinpatel@example.net> Delivered-To: mailing list gavinpatel@example.net Received: (qmail 74644 invoked by uid 99); 1 May 2008 13:02:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 06:02:27 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO web86603.mail.ird.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 May 2008 13:01:32 +0000 Received: (qmail 7102 invoked by uid 60001); 1 May 2008 13:01:53 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=d0hIM7Wg+w6O+PRkKm/axSuhfy5piyYoadFsWa5j3aGa9J45kfvs/Ku77QA2tILwXOqHVU791ZFLv8vbP9nlFvOxEXJRTPyozwSjxxbwcE1kO4pi3g+gaH09rgiSUxsRfA39o0ueigUFbhow6vKy0zQr51m59MOOUuY/l1wsF0k=; X-YMail-OSG: 5neHakUVM1mr8SZLNa7YLFcfx30P2lYWMteBQwrpuUwdDPS7_hcpr6bNYOkifvEAlk6jrF8Sd5GVatjjnKbs9tVXHnKZThzOKYJy1ORrKxEsLXXmC2W0EGVpKN8- Received: from [83.161.120.155] by web86603.mail.ird.yahoo.com via HTTP; Thu, 01 May 2008 13:01:53 GMT X-Mailer: YahooMailRC/902.40 YahooMailWebService/0.7.185 Date: Thu, 1 May 2008 13:01:53 +0000 (GMT) From: Toby Hobson <gavinpatel@example.net> Reply-To: Toby Hobson <gavinpatel@example.net> Subject: Re: T5 pagelink problem To: Tapestry users <gavinpatel@example.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-400923875-1209646913=:70106" Message-ID: <gavinpatel@example.net> X-Virus-Checked: Checked by ClamAV on apache.org --0-400923875-1209646913=:70106 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable It seems if i change all the hrefs to /myapp/images/... or /myapp/styles/..= . things work ok. Is there a tapestry version of <c:url /> ?=0A=0AThanks=0A= =0AToby=0A=0A----- Original Message ----=0AFrom: Toby Hobson <toby.hobson@b= tinternet.com>=0ATo: gavinpatel@example.net=0ASent: Thursday, 1 May, 200= 8 1:53:11 PM=0ASubject: T5 pagelink problem=0A=0AI have a strange problem w= ith the pagelink component. I am trying to navigate from the start page to = the ViewPhoto page but I get an exception:=0A=0A[ERROR] RequestExceptionHan= dler Processing of request failed withuncaught exception: Exception in meth= odcom.thc.web.pages.ViewPhoto.onActivate(java.lang.Long) (atViewPhoto.java:= 18), parameter #1: Coercion of images to typejava.lang.Long (via String -->= Long) failed: For input string:"images"=0Aorg.apache.tapestry.runtime.Comp= onentEventException: Exception inmethod com.thc.web.pages.ViewPhoto.onActiv= ate(java.lang.Long) (atViewPhoto.java:18), parameter #1: Coercion of images= to typejava.lang.Long (via String --> Long) failed: For input string:"imag= es"=gavinpatel@example.net= l.triggerContextEvent(ComponentPageElementImpl.java:1021)=0A...=0A=0Aand=0A= =0A[ERROR] RequestExceptionHandler Processing of request failed withuncaugh= t exception: Exception in methodcom.thc.web.pages.ViewPhoto.onActivate(java= .lang.Long) (atViewPhoto.java:18), parameter #1: Coercion of styles to type= java.lang.Long (via String --> Long) failed: For input string:"styles"=0Aor= g.apache.tapestry.runtime.ComponentEventException: Exception inmethod com.t= hc.web.pages.ViewPhoto.onActivate(java.lang.Long) (atViewPhoto.java:18), pa= rameter #1: Coercion of styles to typejava.lang.Long (via String --> Long) = failed: For input string:"styles"=gavinpatel@example.net= ucture.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImp= l.java:1021=0A=0AI think it's because tapestry is interpreting the ref to s= tyles/style and images/x.jpg (in layout.tml) as params to the onActivate me= thod. Do I have to use a special tapestry tag for any hrefs in my templates= ? The page renders without any problems if I leave out the onActivate metho= d.=0A=0AHere's the relevant code=0A=0AStart.tml:=0A=0A<t:pagelink page=3D"v= iewPhoto" context=3D"currentPhoto.id">=0A<img alt=3D"#" src=3D"${currentPho= to.imageResource.resource}" width=3D"64"height=3D"64" />=0A</t:pagelink>=0A= =0AViewPhoto.java:=0A=0Apackage com.thc.web.pages;=0A... =0Apublic class Vi= ewPhoto {=0A =0A private Photo photo;=0A =0A @Inject=0A priv= ate PhotoDao photoDao;=0A =0A private Long imageId;=0A =0A void= onActivate(Long imageId) {=0A this.imageId =3D imageId;=0A p= hoto =3D photoDao.findImageById(imageId);=0A }=0A =0A Long onPassi= vate() { return imageId }=0A =0A public Photo getPhoto() {=0A = return photo;=0A }=0A=0A public void setPhoto(Photo photo) {=0A = this.photo =3D photo;=0A }=0A=0A}=0A=0Alayout.tml=0A=0A<!DOCTYPE html = PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"=0A "http://www.w3.org/TR/xhtml1= /DTD/xhtml1-strict.dtd">=0A=0A<head>=0A<meta http-equiv=3D"Content-Type" co= ntent=3D"text/html; charset=3Dutf-8" />=0A<title>Blotterpad</title>=0A<link= href=3D"styles/style.css" rel=3D"stylesheet" type=3D"text/css" />=0A</head= >=0A<body>=0A<form action=3D"#">=0A<div id=3D"container">=0A <div id=3D"= header">=0A <t:pagelink page=3D"start"><img alt=3D"#" src=3D"images/art_Lo= go.gif" width=3D"269" height=3D"92" /></t:pagelink></div>=0A <div id=3D"lo= gin"><a href=3D"#"><img alt=3D"#" src=3D"images/btn_home.jpg" width=3D"11" = height=3D"10" /></a> | <a href=3D"#"><img alt=3D"#" src=3D"images/btn_conta= ct.jpg" width=3D"11" height=3D"8" /></a></div>=0A <div class=3D"clear"><= /div>=0A <div id=3D"navcontainer">=0A <div style=3D"float:right;"><im= g alt=3D"#" src=3D"images/art_navbg_right.jpg" width=3D"6" height=3D"31" />= </div>=0A <div class=3D"menutop">=0A <ul id=3D"cssdropdown">=0A= <li class=3D"mainitems"><a t:type=3D"pagelink" page=3D"Start" hre= f=3D"#">Home</a></li>=0A <li class=3D"mainitems"><a t:type=3D"page= link" page=3D"MyPhotos" href=3D"#">My Photos</a></li>=0A <li class= =3D"mainitems"><a t:type=3D"pagelink" page=3D"MyEditions" href=3D"#">My Art= work</a></li>=0A <li class=3D"mainitems"><a t:type=3D"pagelink" pa= ge=3D"MyFavourites" href=3D"#">My Favorites</a></li>=0A <li class= =3D"mainitems"><a t:type=3D"pagelink" page=3D"Search" href=3D"#">Search</a>= </li>=0A <li class=3D"mainitems"><a t:type=3D"pagelink" page=3D"My= Account" href=3D"#">MyAccount</a></li>=0A </ul>=0A </div>=0A = </div>=0A =0A <!-- content here -->=0A <t:body />=0A =0A <div cla= ss=3D"clear"></div>=0A <div class=3D"clear"></div>=0A <div id=3D"footer">= =0A <div id=3D"navcontainer2">=0A <ul id=3D"navlist">=0A <= li><a href=3D"#">Home</a></li>=0A <li><a href=3D"#">Registration</a>= </li>=0A <li><a href=3D"#">My Galleries</a></li>=0A <li><a hr= ef=3D"#">My Favourites</a></li>=0A <li><a href=3D"#">My Editions</a>= </li>=0A <li><a href=3D"#">My Account</a></li>=0A <li><a href= =3D"#">View photo</a></li>=0A <li style=3D"border:0px!important;"><a= href=3D"#">Contact Us</a></li>=0A </ul>=0A </div>=0A<p style=3D"= padding:10px 0px;"><strong>Blotterpad</strong> 2007.All Rights reserved</p>= =0A </div>=0A</div>=0A</form>=0A</body>=0A</html>=0A=0AThe start page gene= rates a link in the form http://myapp/viewphoto/1 as I would expect but whe= n i click on the link i get the exception=0A=0AThanks!=0A=0A=0A=0A=0A --0-400923875-1209646913=:70106-- From usersgavinpatel@example.net Thu May 01 13:04:30 2008 Return-Path: <usersgavinpatel@example.net> Delivered-To: gavinpatel@example.net Received: (qmail 6658 invoked from network); 1 May 2008 13:04:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2008 13:04:30 -0000 Received: (qmail 78502 invoked by uid 500); 1 May 2008 13:04:28 -0000 Delivered-To: gavinpatel@example.net Received: (qmail 78486 invoked by uid 500); 1 May 2008 13:04:28 -0000 Mailing-List: contact gavinpatel@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:gavinpatel@example.net> List-Unsubscribe: <mailto:gavinpatel@example.net> List-Post: <mailto:gavinpatel@example.net> List-Id: <users.tapestry.apache.org> Reply-To: "Tapestry users" <gavinpatel@example.net> Delivered-To: mailing list gavinpatel@example.net Received: (qmail 78475 invoked by uid 99); 1 May 2008 13:04:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 06:04:28 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gavinpatel@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO fg-out-1718.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 13:03:41 +0000 Received: by fg-out-1718.google.com with SMTP id e21so775875fga.11 for <gavinpatel@example.net>; Thu, 01 May 2008 06:03:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=eLTaVmb+UJKU50COu5jwdKTNKq7AolDuFm6Q3+kyS6M=; b=WLKogI1hCfaJARu1wdilXPTPL+fobpmCfHkxMfTfp2aMp/vKbcRvjukV3qPBtR3RmTXAQBprQDCTRsN5l7W0+VWbdEf4IjUxYaJfiRLsKca2RT+XzIiOl1G0tYyYSD9nCxgA27Ga5ec9T+tSupNKOu5iq5++43GwLjOU5sLNkpU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=iyl129zfO0ARlv7ny0GLYELwJb6bzYwbr91sStSaRfONRSeUXreaHcSw8x1rDjC0JDxziC+FlGdHgzXDzsoU1eaVbS7po1X/5yV7cwqrZvJESfZMG6D/38D42nBEDSB8igaBRBgYITmpMuS8yocudx0cGwErCnEMH2CSL37v2Vg= Received: by 83.161.120.155 with SMTP id n2mr2084706fgb.51.1209647034840; Thu, 01 May 2008 06:03:54 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Thu, 1 May 2008 06:03:54 -0700 (PDT) Message-ID: <gavinpatel@example.net> Date: Thu, 1 May 2008 14:03:54 +0100 From: "Szemere Szemere" <gavinpatel@example.net> To: "Tapestry users" <gavinpatel@example.net>, "Toby Hobson" <gavinpatel@example.net> Subject: Re: T5 pagelink problem In-Reply-To: <gavinpatel@example.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8302_11903655.1209647034832" References: <gavinpatel@example.net> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_8302_11903655.1209647034832 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline It is generally wise to have your links in the form: ${asset:context:styles/style.css} Then the links will work even if you have parameters that change the relative depth of the URL path. Szemere ------=_Part_8302_11903655.1209647034832-- From usersgavinpatel@example.net Thu May 01 17:26:19 2008 Return-Path: <usersgavinpatel@example.net> Delivered-To: gavinpatel@example.net Received: (qmail 53523 invoked from network); 1 May 2008 17:26:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2008 17:26:19 -0000 Received: (qmail 55252 invoked by uid 500); 1 May 2008 17:26:15 -0000 Delivered-To: gavinpatel@example.net Received: (qmail 54633 invoked by uid 500); 1 May 2008 17:26:14 -0000 Mailing-List: contact gavinpatel@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:gavinpatel@example.net> List-Unsubscribe: <mailto:gavinpatel@example.net> List-Post: <mailto:gavinpatel@example.net> List-Id: <users.tapestry.apache.org> Reply-To: "Tapestry users" <gavinpatel@example.net> Delivered-To: mailing list gavinpatel@example.net Received: (qmail 54622 invoked by uid 99); 1 May 2008 17:26:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 10:26:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gavinpatel@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO an-out-0708.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 17:25:29 +0000 Received: by an-out-0708.google.com with SMTP id d26so348885and.116 for <gavinpatel@example.net>; Thu, 01 May 2008 10:25:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ErMNbcapibw79ffaN20AgWvO/D7BHuFyDLIDp6JQcng=; b=KXfQy+L6EPnikcBxP71GQNXTEvgMQYQ9Auw5uAQtDpH9SrNYYvnQYG5tpuMQTaWVGU/tWFllI6hxMMqTeidECZvywgVkGw2Mbh4GDwWmTlvmXbMMbfh+MKprrhFhPlwDkPiUkD/I5HcD3ydN4M2HWJ/j00I0H6hLpuYfbWykG/I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=enIY0sDCI+e1eABA5sGSvZG0A3S5U5yxYYLUxDX2tr2zmXvdNeSQYnsGUs1634tN4maoY9MFR9Ux+DYAFM3iI1rwVEU3I/WIL3ousg+iW5RjNUYd8r9mleyghUuv3wO3VdqAQtqzC4rCegGLm3y+sYCtQKObyeaTt2hN0LhWPuc= Received: by 83.161.120.155 with SMTP id t17mr3351088anf.15.1209662742864; Thu, 01 May 2008 10:25:42 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Thu, 1 May 2008 10:25:42 -0700 (PDT) Message-ID: <gavinpatel@example.net> Date: Thu, 1 May 2008 10:25:42 -0700 From: "Howard Lewis Ship" <gavinpatel@example.net> To: "Tapestry users" <gavinpatel@example.net> Subject: Re: Question about ApplicationInitializerFilter In-Reply-To: <gavinpatel@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <gavinpatel@example.net> X-Virus-Checked: Checked by ClamAV on apache.org The most common case for this is that the module class defining the service, or the module class containing the contribution to the service, is not being loaded. Please refer to the docs on how to ensure that modules are loaded. On Tue, Apr 29, 2008 at 2:10 AM, Michael Gerzabek <gavinpatel@example.net> wrote: > Hi, > > I've a Service that extends ApplicationInitializerFilter: > > public interface DatabaseUpdateManager extends ApplicationInitializerFilter > { > > public void update() throws SQLException; > } > > I made it a service because I thought then it would be easy to collect > contributions from other modules. > > In my module I declare a bulder with > > public static DatabaseUpdateManager build( > final Logger logger, > final Collection<DatabaseModuleDef> contributions ) { > > return new DatabaseUpdateManagerImpl( logger, contributions ); > } > and contribute to the ApplicationInitializer with > > public static void contributeApplicationInitializer( > OrderedConfiguration<ApplicationInitializerFilter> configuration, > final DatabaseUpdateManager manager ) { > > configuration.add( "DatabaseManager", manager ); > } > > Another module tries to contribute to this class with > > public static void contributeDatabaseManager( > Configuration<DatabaseModuleDef> configuration ) { > > System.out.println( "contributeDatabaseManager()"); > .. contributions .. > } > > But method contributeDatabaseManager(..) is never called. > > What am I missing? > > Thanks in advance > Michael > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: gavinpatel@example.net > For additional commands, e-mail: gavinpatel@example.net > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- To unsubscribe, e-mail: gavinpatel@example.net For additional commands, e-mail: gavinpatel@example.net From usersgavinpatel@example.net Thu May 01 17:50:10 2008 Return-Path: <usersgavinpatel@example.net> Delivered-To: gavinpatel@example.net Received: (qmail 62997 invoked from network); 1 May 2008 17:50:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2008 17:50:10 -0000 Received: (qmail 86429 invoked by uid 500); 1 May 2008 17:50:05 -0000 Delivered-To: gavinpatel@example.net Received: (qmail 86414 invoked by uid 500); 1 May 2008 17:50:05 -0000 Mailing-List: contact gavinpatel@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:gavinpatel@example.net> List-Unsubscribe: <mailto:gavinpatel@example.net> List-Post: <mailto:gavinpatel@example.net> List-Id: <users.tapestry.apache.org> Reply-To: "Tapestry users" <gavinpatel@example.net> Delivered-To: mailing list gavinpatel@example.net Received: (qmail 86403 invoked by uid 99); 1 May 2008 17:50:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 10:50:05 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gavinpatel@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO wr-out-0506.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 17:49:19 +0000 Received: by wr-out-0506.google.com with SMTP id c55so782928wra.11 for <gavinpatel@example.net>; Thu, 01 May 2008 10:49:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=2K1tFdT3ZfbuPqLVNeMAM9BnVG23lBmxGVsjcnSihU0=; b=mJNQVyL6/1UHfDnRldOuDDvNovQUGoRwmTrhRIXeLrHMoTGQW7paQEGWsjQOSQHvliIBwYwvtPbLer7d4cY1yv3bZk4ZN8n7/vSLyaI3/BHja9hl6zmNpCDs4nAaueKPcNbIT97EqZwEZO3Evh4vF6vkH3yEX2pqBK7rbocSBH0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=slYEAO/GOKZ+2y5CsVNgYNJAbiO6OwCbACN1biFYiPnZ6fag96aY+8flQOrRWf8q3iHNOp9ZWOsm7bLTBpWwHaPWO4IjpWkf5hp4bDH8AGby9lk2NNKy8HLi0TLOcej66RzsxtNr8P3AyCEk+61958FLI2XpcFjbWN0T1YpPnWU= Received: by 83.161.120.155 with SMTP id t4mr945698rve.230.1209664172350; Thu, 01 May 2008 10:49:32 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Thu, 1 May 2008 10:49:32 -0700 (PDT) Message-ID: <gavinpatel@example.net> Date: Thu, 1 May 2008 10:49:32 -0700 From: "Franz Amador" <gavinpatel@example.net> To: "Tapestry users" <gavinpatel@example.net> Subject: Re: T5: Ajax update of one form field based on change to another form field? In-Reply-To: <gavinpatel@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <gavinpatel@example.net> <gavinpatel@example.net> X-Virus-Checked: Checked by ClamAV on apache.org On Thu, May 1, 2008 at 4:25 AM, Chris Lewis <gavinpatel@example.net> wrote: > Why would you need to submit the form when a value is selected from the > list? If you know the available DBs before hand, then you know the > default ports. Store those as a client-side JSON object and use the > select's onchange event. > ... > While tapestry's Ajax support is still in the oven, it has @OnEvent > which does something similar [to Wicket]. I don't want to submit the form. It just appeared that that was the only way to use the zone parameter on BeanEditForm to get what I want. It looks like you're proposing two alternatives: 1) Do it all client-side using JavaScript: That would work for this case, since I do know the mapping from DB types to DB ports in advance. I see two flaws, however. The main one is that I have other, similar cases in mind in which I'd need server-side computation to update the form in response to field-change events. Second, I don't know JavaScript well and don't like it, so I'd really rather keep it neatly encapsulated in components that somebody else writes. 2) Use @OnEvent: Do form fields issue events, or is that planned for the future? If they do so now, could you tell me the event name for a drop-down selection-made event, or tell me how to find it for myself? I don't see any mention of events in the code for Select, AbstractField, or Field. Or do I need to use a mix-in? As for Ajax support being still in the oven, I'm really hoping it's coming out soon. --------------------------------------------------------------------- To unsubscribe, e-mail: gavinpatel@example.net For additional commands, e-mail: gavinpatel@example.net From usersgavinpatel@example.net Thu May 01 18:07:57 2008 Return-Path: <usersgavinpatel@example.net> Delivered-To: gavinpatel@example.net Received: (qmail 71773 invoked from network); 1 May 2008 18:07:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with
{'source': 'Apache Software Foundation Public Mail Archives'}