From users-return-114763-archive-asf-public=cust-asf.ponee.io@tapestry.apache.org Mon Feb 5 19:40:13 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 9C9F0180647 for ; Mon, 5 Feb 2018 19:40:13 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8C695160C4B; Mon, 5 Feb 2018 18:40:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D4256160C3B for ; Mon, 5 Feb 2018 19:40:12 +0100 (CET) Received: (qmail 35951 invoked by uid 500); 5 Feb 2018 18:40:07 -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 35850 invoked by uid 99); 5 Feb 2018 18:40:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2018 18:40:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D49521A0066 for ; Mon, 5 Feb 2018 18:40:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id KIz7xuFUTKvN for ; Mon, 5 Feb 2018 18:40:03 +0000 (UTC) Received: from mout15.gn-server.de (mout15.gn-server.de [87.238.194.242]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id AB4C85F232 for ; Mon, 5 Feb 2018 18:40:02 +0000 (UTC) Received: from mout14.gn-server.de ([87.238.194.241]) by mout15.gn-server.de with esmtp (Exim 4.84_2) (envelope-from ) id 1eilgI-0005Ix-T3 for users@tapestry.apache.org; Mon, 05 Feb 2018 19:39:55 +0100 Received: from greatweb8.greatnet.de ([178.254.50.116] helo=server8.greatweb.de) by mout14.gn-server.de with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.88) (envelope-from ) id 1eilgI-0007VB-HG for users@tapestry.apache.org; Mon, 05 Feb 2018 19:39:54 +0100 Received: from [192.168.2.112] (p5DC73627.dip0.t-ipconnect.de [93.199.54.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server8.greatweb.de (Postfix) with ESMTPSA id F37B94185B0 for ; Mon, 5 Feb 2018 19:39:53 +0100 (CET) Message-ID: <5A78A4F8.3020509@gormann.de> Date: Mon, 05 Feb 2018 19:39:52 +0100 From: Erich Gormann User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Tapestry users Subject: Re: Grid component customization References: <6936ceb47ab741a3a6edd9c27d643a24.squirrel@webmail.optomus.com> <5A1D1F6F.4040309@gormann.de> <5A759686.9030904@gormann.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score-INT: -2 Hi Thiago, Our HTML designer wants to create a fully responsive website based on Tapestry 5.3.8. So she asked me, if it would be possible, to render some data attributes inside the td tags of the grid. Regards, Erich Am 05.02.2018 18:49, schrieb Thiago H. de Paula Figueiredo: > Hello! > > Well, you can override a component, you can decorate or advise the > ComponentClassResolver service. Specifically, when > the resolveComponentTypeToClassName(String componentType) method is called, > if componentType.equalsIgnoreCase("GridColumns"), then return the fully > qualified class name of your GridColumns replacement component. Otherwise, > let it return normally. That's basically how ComponentSubstitutor is > implemented inside Tapestry itself. > > Just curious: what customizations do you want to do? > > On Sat, Feb 3, 2018 at 9:01 AM, Erich Gormann wrote: > >> Dear Thiago, >> >> first thanks for this solution, but can you please propose a solution >> which works under Tapestry 5.3.8? This would be great. >> >> Anyway, I tried to migrate our applications to 5.4.3 yesterday and nearly >> succeeded, but only nearly, due to problems with the removed javassist lib. >> ut this would be another topic in this support list. >> >> Thanks and Best Regards >> Erich >> >> >> Am 28.11.2017 16:32, schrieb Thiago H. de Paula Figueiredo: >> >>> On Tue, Nov 28, 2017 at 6:33 AM, Erich Gormann >>> wrote: >>> >>> Dear all, >>>> Hi! >>> >>> I wanted to customize the GridColumns component, which is embedded inside >>>> the Grid component, by trying different approaches. >>>> >>>> Finally I failed, because it was neither possible by a request filter >>>> replacing the GridColumns component at runtime with my customized one, >>>> >>> This wasn't expected to work, but I'm curious in how you tried to do it. >>> :) >>> >>> >>> nor did it work to use an own template for the Grid component pointing to >>>> my customized version of GridColumns. >>>> >>>> What is the best way to do this? The GridColumns component is a private >>>> component inside the Grid and I wonder how to replace it. >>>> >>>> Contribute to the ComponentOverride distributed configuration, which is a >>> Map, the key being the component or page or mixin class to >>> be >>> replaced, the value being the replacement. >>> >>> Here's an example from Tapestry's test suite: >>> >>> @Contribute(ComponentReplacer.class) >>> public static void >>> overridePageAndComponentAndMixin(MappedConfiguration >>> configuration) { >>> configuration.add(OverridenPage.class, OverridePage.class); >>> configuration.add(OverridenComponent.class, >>> OverrideComponent.class); >>> configuration.add(OverridenMixin.class, OverrideMixin.class); >>> } >>> >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >> For additional commands, e-mail: users-help@tapestry.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org For additional commands, e-mail: users-help@tapestry.apache.org