You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Moritz Gmelin <mo...@gmx.de> on 2008/01/15 09:25:40 UTC

[T5 5.0.8] relative urls for sorting table headers

Hi,

I have tried switching to 5.0.8-SNAPSHOT and discovered some strange  
behaviour with the newly stripped image urls.
In some grids that are displayed in pages that are in sub-packages,  
the sortable icon is references like this

<img alt="[Sortable]" class="t-sort-icon" id="von:sort" src="assets/ 
tapestry/corelib/components/sortable.png">
(which is wrong)

the sort-asc image is references like this

<img alt="[Asc]" class="t-sort-icon" id="wirkstoff:sort" src="../ 
assets/tapestry/corelib/components/sort-asc.png">

(which is correct). This is in the same grid component. 5.0.7  
referenced both src-tages identically correct with absoulte-urls.

There are other problems in image URLs in sub-pages where the URL is  
wrong. For an image service e.g. 5.0.7 used to generate

<img src="/appname/package/pagename:ServiceName" width="780">

5.0.8-SNAPSHOT generates

<img src="pagename:ServiceName" width="780">

which is not handled correctly by either Safari or Firefox.

Thanks

Moritz

Re: [T5 5.0.8] relative urls for sorting table headers

Posted by Robert Zeigler <ro...@scazdl.org>.
Recently introduced is a work in progress at optimizing generated  
urls... using relative urls when those are shorter.
Like you, I'm finding that it's still a work in progress.
You can turn it off, though, by going into your "AppModule" and doing:

public static void contributeApplicationDefaults(
             MappedConfiguration<String, String> configuration)
     {
          
configuration.add(TapestryConstants.FORCE_FULL_URIS_SYMBOL,"true");
     }

Robert

On Jan 15, 2008, at 1/152:25 AM , Moritz Gmelin wrote:

> Hi,
>
> I have tried switching to 5.0.8-SNAPSHOT and discovered some strange  
> behaviour with the newly stripped image urls.
> In some grids that are displayed in pages that are in sub-packages,  
> the sortable icon is references like this
>
> <img alt="[Sortable]" class="t-sort-icon" id="von:sort" src="assets/ 
> tapestry/corelib/components/sortable.png">
> (which is wrong)
>
> the sort-asc image is references like this
>
> <img alt="[Asc]" class="t-sort-icon" id="wirkstoff:sort" src="../ 
> assets/tapestry/corelib/components/sort-asc.png">
>
> (which is correct). This is in the same grid component. 5.0.7  
> referenced both src-tages identically correct with absoulte-urls.
>
> There are other problems in image URLs in sub-pages where the URL is  
> wrong. For an image service e.g. 5.0.7 used to generate
>
> <img src="/appname/package/pagename:ServiceName" width="780">
>
> 5.0.8-SNAPSHOT generates
>
> <img src="pagename:ServiceName" width="780">
>
> which is not handled correctly by either Safari or Firefox.
>
> Thanks
>
> Moritz


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org