Re: Relative URLs

2014-10-30 Thread George Christman
My work wants to be able to control the https through the proxy. They don't
want tapestry interfering with the urls and if you don't secure the page it
will give you http urls.

On Thu, Oct 30, 2014 at 9:25 PM, Chris Mylonas  wrote:

> Hi George,
>
> idk but why would you want relative URIs for rev.proxy/loadbalancer
> siches?  ../../to/page
>
> Looks like it's always absolute dude - as in href="/blah/path/to/page"
> The hostname is not written into the URI.
> I've just checked my delivered html behind httpd->tomcat and URIs are all
> absolute (on 5.4-beta-22).
>
> During this week I changed from a staging subdomain, without context paths
> set, to context path set, to test domain and this absolute URI stuff has
> worked flawlessly.  I haven't tested https though, but on other
> non-tapestry sites, https -> 127.0.0.1:8080/  and https -> 127.0.0.1:8180/
>
> I have done limited testing with tapestry.hostname when I was having
> tomcat proxy connector config problems (due to forgetting that the
> proxyName arg was set there, and my form-post-redirects were landing on the
> proxyName address rather than the domain) but i haven't figured out when
> I'd need to use that.
>
>
> From configuration page:
>
>
> tapestry.force-absolute-uris
> Deprecated since 5.2
>
> Icon
> Starting in Tapestry 5.2, the optimization to generate relative URIs has
> been removed, and all URIs are always absolute. Removed in 5.3.
>
> For Tapestry 5.0 and 5.1 only: when false (the default), Tapestry will
> attempt to optimize URIs that it generates, using relative URIs when such
> URIs are shorter than absolute URIs. When true, all URIs will be absolute
> URIs (including the context path, and the complete path for the request).
>
>
>
>
>
>
>
>
>
>
> On Fri, 31 Oct 2014 04:00:24 +1100, George Christman <
> gchrist...@cardaddy.com> wrote:
>
>  How do I get Tapestry to use relative urls rather than Absolute? My apps
>> are hosted behind reverse proxies and load balancers which forward all
>> http
>> and https request off as http over 80 to the app servers. Thanks.
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
George Christman
CEO
www.CarDaddy.com
P.O. Box 735
Johnstown, New York


Re: Relative URLs

2014-10-30 Thread Chris Mylonas

Hi George,

idk but why would you want relative URIs for rev.proxy/loadbalancer  
siches?  ../../to/page


Looks like it's always absolute dude - as in href="/blah/path/to/page"
The hostname is not written into the URI.
I've just checked my delivered html behind httpd->tomcat and URIs are all  
absolute (on 5.4-beta-22).


During this week I changed from a staging subdomain, without context paths  
set, to context path set, to test domain and this absolute URI stuff has  
worked flawlessly.  I haven't tested https though, but on other  
non-tapestry sites, https -> 127.0.0.1:8080/  and https -> 127.0.0.1:8180/


I have done limited testing with tapestry.hostname when I was having  
tomcat proxy connector config problems (due to forgetting that the  
proxyName arg was set there, and my form-post-redirects were landing on  
the proxyName address rather than the domain) but i haven't figured out  
when I'd need to use that.



From configuration page:


tapestry.force-absolute-uris
Deprecated since 5.2

Icon
Starting in Tapestry 5.2, the optimization to generate relative URIs has  
been removed, and all URIs are always absolute. Removed in 5.3.


For Tapestry 5.0 and 5.1 only: when false (the default), Tapestry will  
attempt to optimize URIs that it generates, using relative URIs when such  
URIs are shorter than absolute URIs. When true, all URIs will be absolute  
URIs (including the context path, and the complete path for the request).










On Fri, 31 Oct 2014 04:00:24 +1100, George Christman  
 wrote:



How do I get Tapestry to use relative urls rather than Absolute? My apps
are hosted behind reverse proxies and load balancers which forward all  
http

and https request off as http over 80 to the app servers. Thanks.


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



Relative URLs

2014-10-30 Thread George Christman
How do I get Tapestry to use relative urls rather than Absolute? My apps
are hosted behind reverse proxies and load balancers which forward all http
and https request off as http over 80 to the app servers. Thanks.


Re: How do I maintain relative URLs in SSL

2013-12-20 Thread Thiago H de Paula Figueiredo
On Fri, 20 Dec 2013 14:46:23 -0200, George Christman  
 wrote:



All set, thank you Thiago.

I'm just curious why the default BaseUrl isn't empty, or at least an  
option in the application defaults to use empty BaseUrl's? This ended up  
leading

to a lot of time and confusion.


You cannot define a port explicitly in an URL without a domain name, and  
you need that for non-standard ports.


--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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



Re: How do I maintain relative URLs in SSL

2013-12-20 Thread George Christman
All set, thank you Thiago.

I'm just curious why the default BaseUrl isn't empty, or at least an option
in the application defaults to use empty BaseUrl's? This ended up leading
to a lot of time and confusion.


On Fri, Dec 20, 2013 at 11:07 AM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> Override BaseURLService and do this logic yourself.
>
>
> On Fri, 20 Dec 2013 13:27:28 -0200, George Christman <
> gchrist...@cardaddy.com> wrote:
>
>  Hello, we are trying to avoid the use of secure and have our server manage
>> ssl. The problem we are running into is whenever we run on 8443, tapestry
>> builds a full url with http as the schema.
>>
>> How do I force the application to only use relative URLs and never use
>> full
>> URLs?
>>
>> I'm using 5.3.7
>>
>> Thanks
>>
>
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
George Christman
www.CarDaddy.com
P.O. Box 735
Johnstown, New York


Re: How do I maintain relative URLs in SSL

2013-12-20 Thread Thiago H de Paula Figueiredo

Override BaseURLService and do this logic yourself.

On Fri, 20 Dec 2013 13:27:28 -0200, George Christman  
 wrote:


Hello, we are trying to avoid the use of secure and have our server  
manage

ssl. The problem we are running into is whenever we run on 8443, tapestry
builds a full url with http as the schema.

How do I force the application to only use relative URLs and never use  
full

URLs?

I'm using 5.3.7

Thanks



--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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



How do I maintain relative URLs in SSL

2013-12-20 Thread George Christman
Hello, we are trying to avoid the use of secure and have our server manage
ssl. The problem we are running into is whenever we run on 8443, tapestry
builds a full url with http as the schema.

How do I force the application to only use relative URLs and never use full
URLs?

I'm using 5.3.7

Thanks


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

2008-01-15 Thread Robert Zeigler
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 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




(which is wrong)

the sort-asc image is references like this




(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




5.0.8-SNAPSHOT generates



which is not handled correctly by either Safari or Firefox.

Thanks

Moritz



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[T5 5.0.8] relative urls for sorting table headers

2008-01-15 Thread Moritz Gmelin

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




(which is wrong)

the sort-asc image is references like this




(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




5.0.8-SNAPSHOT generates



which is not handled correctly by either Safari or Firefox.

Thanks

Moritz