You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Bill Holloway <bi...@peoplepad.com> on 2008/04/01 21:58:28 UTC

T5: customize sort icon in grid?

Has anybody had any luck or can anybody advise me on how to override the
icon image in the Grid component?

-- 
Bill @ PeoplePad

Re: T5: customize sort icon in grid?

Posted by Bill Holloway <bi...@peoplepad.com>.
I will probably try subclassing grid and overriding the GridColumns.

Bill

On Tue, Apr 1, 2008 at 3:21 PM, Peter Beshai <pe...@gmail.com> wrote:

> Hi Bill,
>
> I just tried to figure this out, but was unable to get anywhere with it.
> Here is the source where the assets are injected:
>
> 065        @Inject
> 066        @Path("sort-asc.png")
> 067        private Asset _ascendingAsset;
> 068
> 069        @Inject
> 070        @Path("sort-desc.png")
> 071        private Asset _descendingAsset;
> 072
> 073        @Inject
> 074        @Path("sortable.png")
> 075        private Asset _sortableAsset;
>
>
> http://tapestry.apache.org/tapestry5/apidocs/src-html/org/apache/tapestry/corelib/components/GridColumns.html#line.65
>
> Hopefully this gives you somewhere to start. I tried placing my own image
> on
> my classpath, but was unsuccessful at having it be read at
> assets/tapestry/corelib/components/sortable.png.
>
> Peter Beshai
>
>
>
> On Tue, Apr 1, 2008 at 3:58 PM, Bill Holloway <bi...@peoplepad.com> wrote:
>
> > Has anybody had any luck or can anybody advise me on how to override the
> > icon image in the Grid component?
> >
> > --
> > Bill @ PeoplePad
> >
>



-- 
Bill @ PeoplePad

Re: T5: customize sort icon in grid?

Posted by Peter Beshai <pe...@gmail.com>.
Hi Bill,

I just tried to figure this out, but was unable to get anywhere with it.
Here is the source where the assets are injected:

065        @Inject
066        @Path("sort-asc.png")
067        private Asset _ascendingAsset;
068
069        @Inject
070        @Path("sort-desc.png")
071        private Asset _descendingAsset;
072
073        @Inject
074        @Path("sortable.png")
075        private Asset _sortableAsset;

http://tapestry.apache.org/tapestry5/apidocs/src-html/org/apache/tapestry/corelib/components/GridColumns.html#line.65

Hopefully this gives you somewhere to start. I tried placing my own image on
my classpath, but was unsuccessful at having it be read at
assets/tapestry/corelib/components/sortable.png.

Peter Beshai



On Tue, Apr 1, 2008 at 3:58 PM, Bill Holloway <bi...@peoplepad.com> wrote:

> Has anybody had any luck or can anybody advise me on how to override the
> icon image in the Grid component?
>
> --
> Bill @ PeoplePad
>