Re: Grid component customization

2018-02-06 Thread Erich Gormann
Hi Thiago and Chris, these are very precious hints, using the mixin way would be more elegant than overwriting the GridRows component, according to my opinion. Thanks a lot, and yes: the overwrite did work, but I will follow the mixin way... Greetings, Erich Am 06.02.2018 13:02, schrieb

Re: Grid component customization

2018-02-06 Thread Chris Poulsen
There is already a decent amount of RenderNotification mixins present on the various grid components allowing you to manipulate the MarkupWriter per row, column and header column. -- Chris On Tue, Feb 6, 2018 at 12:51 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Another poss

Re: Grid component customization

2018-02-06 Thread Thiago H. de Paula Figueiredo
Another possibility for doing that is to use Tapestry DOM rewriting. You'd create a mixin, apply it to your grids, and the mixin would have an afterRender(MarkupWriter writer) method. writer.getDocument() gives you the Tapestry DOM element tree. From it, you can find the grids, its tags and change

Re: Grid component customization

2018-02-05 Thread Erich Gormann
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

Re: Grid component customization

2018-02-05 Thread 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 y

Re: Grid component customization

2018-02-03 Thread Erich Gormann
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

Re: Grid component customization

2017-11-28 Thread 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 Gr

Grid component customization

2017-11-28 Thread Erich Gormann
Dear all, 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, nor did it work