Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Howard Lewis Ship
I think there's an outstanding issue about that, something I should
bang out for 5.1.

On Tue, Nov 25, 2008 at 9:09 AM, Sven Homburg <[EMAIL PROTECTED]> wrote:
> its sounds like that you want the complete url, incl. the protocol, server,
> port etc ?
>
> 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
>
>> no effect: the tag was rendered exactly the same.
>>
>> Thanks anyway!
>> -- Ovidiu
>>
>> On Tue, Nov 25, 2008 at 6:45 PM, Toby Hobson <[EMAIL PROTECTED]
>> >wrote:
>>
>> > ok try
>> >
>> > 
>> >
>> > i.e. remove the leading /
>> >
>> > Toby
>> >
>> > 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
>> >
>> > > I've put
>> > > configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS, "true");
>> > >
>> > > and I have tags like
>> > > 
>> > > Release RES Session
>> > >
>> > > and what is rendering:
>> > >
>> > > 
>> > > > > > shape="rect">Release RES Session
>> > >
>> > >
>> > > So on the payment system they are rendering the html page exactly as
>> > above
>> > > .. resulting in broken links and assets are not loading.
>> > >
>> > >
>> > > On Tue, Nov 25, 2008 at 6:17 PM, Toby Hobson <
>> [EMAIL PROTECTED]
>> > > >wrote:
>> > >
>> > > > That's a little strange .. can you send an example of the urls T5 is
>> > > > generating?
>> > > >
>> > > >
>> > > > 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
>> > > >
>> > > > > Thanks, I already tried that. However this seems to be ignored and
>> > all
>> > > > the
>> > > > > assets are inserted with relative URIs.
>> > > > >
>> > > > > Any other options?
>> > > > >
>> > > > > On Tue, Nov 25, 2008 at 6:10 PM, Toby Hobson <
>> > > [EMAIL PROTECTED]
>> > > > > >wrote:
>> > > > >
>> > > > > > In your AppModule.java you need to tell T5 to use absolute uris
>> > e.g.
>> > > > > >
>> > > > > > public static void
>> > > > > > contributeApplicationDefaults(MappedConfiguration> > > > > > String> configuration)
>> > > > > > {
>> > > > > >...
>> > > > > >configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS,
>> "true");
>> > > > > > }
>> > > > > >
>> > > > > > Toby
>> > > > > >
>> > > > > > 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
>> > > > > >
>> > > > > > > Hi!
>> > > > > > > I have a T5 webapp that has to provide a template page for a
>> > > payment
>> > > > > > > system,
>> > > > > > > a page that contains assets like images, css, js files in the
>> > > layout
>> > > > > > > component. The template page is just a plain T5 page with a
>> > > > placeholder
>> > > > > > > like
>> > > > > > > $inject_here$.
>> > > > > > > The payment system (another website) is taking the template
>> > > directly
>> > > > > from
>> > > > > > > my
>> > > > > > > web application and than has to inject the payment options into
>> > the
>> > > > > > > placeholder, resulting the payment page.
>> > > > > > > All is working ok except the assets. They remain relative to
>> the
>> > > > > original
>> > > > > > > webapp so they can't be found on the payment system.
>> > > > > > >
>> > > > > > > This should be fixed if the assets and links would have an
>> > absolute
>> > > > > URLs.
>> > > > > > > I've tried to set the tapestry.force-absolute-uris parameter to
>> > > true
>> > > > > but
>> > > > > > > seems it doesn't have any effect.
>> > > > > > >
>> > > > > > > Also I've tried to place a  tag in the  with the
>> > webapp
>> > > > > page
>> > > > > > > location. No luck: with this only the images are showing. Css
>> and
>> > > Js
>> > > > > > files
>> > > > > > > are ignored.
>> > > > > > >
>> > > > > > > There is a possibility to force Tapestry to generate absolute
>> > paths
>> > > > for
>> > > > > > > assets? Can be done just for specific pages?
>> > > > > > >
>> > > > > > > Thanks so much,
>> > > > > > >
>> > > > > > > --Ovidiu
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>>
>
>
>
> --
> with regards
> Sven Homburg
> http://www.chenillekit.org
> http://tapestry5-components.googlecode.com
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Sven Homburg
its sounds like that you want the complete url, incl. the protocol, server,
port etc ?

2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>

> no effect: the tag was rendered exactly the same.
>
> Thanks anyway!
> -- Ovidiu
>
> On Tue, Nov 25, 2008 at 6:45 PM, Toby Hobson <[EMAIL PROTECTED]
> >wrote:
>
> > ok try
> >
> > 
> >
> > i.e. remove the leading /
> >
> > Toby
> >
> > 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
> >
> > > I've put
> > > configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS, "true");
> > >
> > > and I have tags like
> > > 
> > > Release RES Session
> > >
> > > and what is rendering:
> > >
> > > 
> > >  > > shape="rect">Release RES Session
> > >
> > >
> > > So on the payment system they are rendering the html page exactly as
> > above
> > > .. resulting in broken links and assets are not loading.
> > >
> > >
> > > On Tue, Nov 25, 2008 at 6:17 PM, Toby Hobson <
> [EMAIL PROTECTED]
> > > >wrote:
> > >
> > > > That's a little strange .. can you send an example of the urls T5 is
> > > > generating?
> > > >
> > > >
> > > > 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
> > > >
> > > > > Thanks, I already tried that. However this seems to be ignored and
> > all
> > > > the
> > > > > assets are inserted with relative URIs.
> > > > >
> > > > > Any other options?
> > > > >
> > > > > On Tue, Nov 25, 2008 at 6:10 PM, Toby Hobson <
> > > [EMAIL PROTECTED]
> > > > > >wrote:
> > > > >
> > > > > > In your AppModule.java you need to tell T5 to use absolute uris
> > e.g.
> > > > > >
> > > > > > public static void
> > > > > > contributeApplicationDefaults(MappedConfiguration > > > > > String> configuration)
> > > > > > {
> > > > > >...
> > > > > >configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS,
> "true");
> > > > > > }
> > > > > >
> > > > > > Toby
> > > > > >
> > > > > > 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
> > > > > >
> > > > > > > Hi!
> > > > > > > I have a T5 webapp that has to provide a template page for a
> > > payment
> > > > > > > system,
> > > > > > > a page that contains assets like images, css, js files in the
> > > layout
> > > > > > > component. The template page is just a plain T5 page with a
> > > > placeholder
> > > > > > > like
> > > > > > > $inject_here$.
> > > > > > > The payment system (another website) is taking the template
> > > directly
> > > > > from
> > > > > > > my
> > > > > > > web application and than has to inject the payment options into
> > the
> > > > > > > placeholder, resulting the payment page.
> > > > > > > All is working ok except the assets. They remain relative to
> the
> > > > > original
> > > > > > > webapp so they can't be found on the payment system.
> > > > > > >
> > > > > > > This should be fixed if the assets and links would have an
> > absolute
> > > > > URLs.
> > > > > > > I've tried to set the tapestry.force-absolute-uris parameter to
> > > true
> > > > > but
> > > > > > > seems it doesn't have any effect.
> > > > > > >
> > > > > > > Also I've tried to place a  tag in the  with the
> > webapp
> > > > > page
> > > > > > > location. No luck: with this only the images are showing. Css
> and
> > > Js
> > > > > > files
> > > > > > > are ignored.
> > > > > > >
> > > > > > > There is a possibility to force Tapestry to generate absolute
> > paths
> > > > for
> > > > > > > assets? Can be done just for specific pages?
> > > > > > >
> > > > > > > Thanks so much,
> > > > > > >
> > > > > > > --Ovidiu
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>



-- 
with regards
Sven Homburg
http://www.chenillekit.org
http://tapestry5-components.googlecode.com


Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Ovidiu Hurducas
no effect: the tag was rendered exactly the same.

Thanks anyway!
-- Ovidiu

On Tue, Nov 25, 2008 at 6:45 PM, Toby Hobson <[EMAIL PROTECTED]>wrote:

> ok try
>
> 
>
> i.e. remove the leading /
>
> Toby
>
> 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
>
> > I've put
> > configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS, "true");
> >
> > and I have tags like
> > 
> > Release RES Session
> >
> > and what is rendering:
> >
> > 
> >  > shape="rect">Release RES Session
> >
> >
> > So on the payment system they are rendering the html page exactly as
> above
> > .. resulting in broken links and assets are not loading.
> >
> >
> > On Tue, Nov 25, 2008 at 6:17 PM, Toby Hobson <[EMAIL PROTECTED]
> > >wrote:
> >
> > > That's a little strange .. can you send an example of the urls T5 is
> > > generating?
> > >
> > >
> > > 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
> > >
> > > > Thanks, I already tried that. However this seems to be ignored and
> all
> > > the
> > > > assets are inserted with relative URIs.
> > > >
> > > > Any other options?
> > > >
> > > > On Tue, Nov 25, 2008 at 6:10 PM, Toby Hobson <
> > [EMAIL PROTECTED]
> > > > >wrote:
> > > >
> > > > > In your AppModule.java you need to tell T5 to use absolute uris
> e.g.
> > > > >
> > > > > public static void
> > > > > contributeApplicationDefaults(MappedConfiguration > > > > String> configuration)
> > > > > {
> > > > >...
> > > > >configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS, "true");
> > > > > }
> > > > >
> > > > > Toby
> > > > >
> > > > > 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
> > > > >
> > > > > > Hi!
> > > > > > I have a T5 webapp that has to provide a template page for a
> > payment
> > > > > > system,
> > > > > > a page that contains assets like images, css, js files in the
> > layout
> > > > > > component. The template page is just a plain T5 page with a
> > > placeholder
> > > > > > like
> > > > > > $inject_here$.
> > > > > > The payment system (another website) is taking the template
> > directly
> > > > from
> > > > > > my
> > > > > > web application and than has to inject the payment options into
> the
> > > > > > placeholder, resulting the payment page.
> > > > > > All is working ok except the assets. They remain relative to the
> > > > original
> > > > > > webapp so they can't be found on the payment system.
> > > > > >
> > > > > > This should be fixed if the assets and links would have an
> absolute
> > > > URLs.
> > > > > > I've tried to set the tapestry.force-absolute-uris parameter to
> > true
> > > > but
> > > > > > seems it doesn't have any effect.
> > > > > >
> > > > > > Also I've tried to place a  tag in the  with the
> webapp
> > > > page
> > > > > > location. No luck: with this only the images are showing. Css and
> > Js
> > > > > files
> > > > > > are ignored.
> > > > > >
> > > > > > There is a possibility to force Tapestry to generate absolute
> paths
> > > for
> > > > > > assets? Can be done just for specific pages?
> > > > > >
> > > > > > Thanks so much,
> > > > > >
> > > > > > --Ovidiu
> > > > > >
> > > > >
> > > >
> > >
> >
>


Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Toby Hobson
ok try



i.e. remove the leading /

Toby

2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>

> I've put
> configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS, "true");
>
> and I have tags like
> 
> Release RES Session
>
> and what is rendering:
>
> 
>  shape="rect">Release RES Session
>
>
> So on the payment system they are rendering the html page exactly as above
> .. resulting in broken links and assets are not loading.
>
>
> On Tue, Nov 25, 2008 at 6:17 PM, Toby Hobson <[EMAIL PROTECTED]
> >wrote:
>
> > That's a little strange .. can you send an example of the urls T5 is
> > generating?
> >
> >
> > 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
> >
> > > Thanks, I already tried that. However this seems to be ignored and all
> > the
> > > assets are inserted with relative URIs.
> > >
> > > Any other options?
> > >
> > > On Tue, Nov 25, 2008 at 6:10 PM, Toby Hobson <
> [EMAIL PROTECTED]
> > > >wrote:
> > >
> > > > In your AppModule.java you need to tell T5 to use absolute uris e.g.
> > > >
> > > > public static void
> > > > contributeApplicationDefaults(MappedConfiguration > > > String> configuration)
> > > > {
> > > >...
> > > >configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS, "true");
> > > > }
> > > >
> > > > Toby
> > > >
> > > > 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
> > > >
> > > > > Hi!
> > > > > I have a T5 webapp that has to provide a template page for a
> payment
> > > > > system,
> > > > > a page that contains assets like images, css, js files in the
> layout
> > > > > component. The template page is just a plain T5 page with a
> > placeholder
> > > > > like
> > > > > $inject_here$.
> > > > > The payment system (another website) is taking the template
> directly
> > > from
> > > > > my
> > > > > web application and than has to inject the payment options into the
> > > > > placeholder, resulting the payment page.
> > > > > All is working ok except the assets. They remain relative to the
> > > original
> > > > > webapp so they can't be found on the payment system.
> > > > >
> > > > > This should be fixed if the assets and links would have an absolute
> > > URLs.
> > > > > I've tried to set the tapestry.force-absolute-uris parameter to
> true
> > > but
> > > > > seems it doesn't have any effect.
> > > > >
> > > > > Also I've tried to place a  tag in the  with the webapp
> > > page
> > > > > location. No luck: with this only the images are showing. Css and
> Js
> > > > files
> > > > > are ignored.
> > > > >
> > > > > There is a possibility to force Tapestry to generate absolute paths
> > for
> > > > > assets? Can be done just for specific pages?
> > > > >
> > > > > Thanks so much,
> > > > >
> > > > > --Ovidiu
> > > > >
> > > >
> > >
> >
>


Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Ovidiu Hurducas
I've put
configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS, "true");

and I have tags like

Release RES Session

and what is rendering:


Release RES Session


So on the payment system they are rendering the html page exactly as above
.. resulting in broken links and assets are not loading.


On Tue, Nov 25, 2008 at 6:17 PM, Toby Hobson <[EMAIL PROTECTED]>wrote:

> That's a little strange .. can you send an example of the urls T5 is
> generating?
>
>
> 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
>
> > Thanks, I already tried that. However this seems to be ignored and all
> the
> > assets are inserted with relative URIs.
> >
> > Any other options?
> >
> > On Tue, Nov 25, 2008 at 6:10 PM, Toby Hobson <[EMAIL PROTECTED]
> > >wrote:
> >
> > > In your AppModule.java you need to tell T5 to use absolute uris e.g.
> > >
> > > public static void
> > > contributeApplicationDefaults(MappedConfiguration > > String> configuration)
> > > {
> > >...
> > >configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS, "true");
> > > }
> > >
> > > Toby
> > >
> > > 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
> > >
> > > > Hi!
> > > > I have a T5 webapp that has to provide a template page for a payment
> > > > system,
> > > > a page that contains assets like images, css, js files in the layout
> > > > component. The template page is just a plain T5 page with a
> placeholder
> > > > like
> > > > $inject_here$.
> > > > The payment system (another website) is taking the template directly
> > from
> > > > my
> > > > web application and than has to inject the payment options into the
> > > > placeholder, resulting the payment page.
> > > > All is working ok except the assets. They remain relative to the
> > original
> > > > webapp so they can't be found on the payment system.
> > > >
> > > > This should be fixed if the assets and links would have an absolute
> > URLs.
> > > > I've tried to set the tapestry.force-absolute-uris parameter to true
> > but
> > > > seems it doesn't have any effect.
> > > >
> > > > Also I've tried to place a  tag in the  with the webapp
> > page
> > > > location. No luck: with this only the images are showing. Css and Js
> > > files
> > > > are ignored.
> > > >
> > > > There is a possibility to force Tapestry to generate absolute paths
> for
> > > > assets? Can be done just for specific pages?
> > > >
> > > > Thanks so much,
> > > >
> > > > --Ovidiu
> > > >
> > >
> >
>


Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Ovidiu Hurducas
Thanks, I already tried that. However this seems to be ignored and all the
assets are inserted with relative URIs.

Any other options?

On Tue, Nov 25, 2008 at 6:10 PM, Toby Hobson <[EMAIL PROTECTED]>wrote:

> In your AppModule.java you need to tell T5 to use absolute uris e.g.
>
> public static void
> contributeApplicationDefaults(MappedConfiguration String> configuration)
> {
>...
>configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS, "true");
> }
>
> Toby
>
> 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
>
> > Hi!
> > I have a T5 webapp that has to provide a template page for a payment
> > system,
> > a page that contains assets like images, css, js files in the layout
> > component. The template page is just a plain T5 page with a placeholder
> > like
> > $inject_here$.
> > The payment system (another website) is taking the template directly from
> > my
> > web application and than has to inject the payment options into the
> > placeholder, resulting the payment page.
> > All is working ok except the assets. They remain relative to the original
> > webapp so they can't be found on the payment system.
> >
> > This should be fixed if the assets and links would have an absolute URLs.
> > I've tried to set the tapestry.force-absolute-uris parameter to true but
> > seems it doesn't have any effect.
> >
> > Also I've tried to place a  tag in the  with the webapp page
> > location. No luck: with this only the images are showing. Css and Js
> files
> > are ignored.
> >
> > There is a possibility to force Tapestry to generate absolute paths for
> > assets? Can be done just for specific pages?
> >
> > Thanks so much,
> >
> > --Ovidiu
> >
>


Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Toby Hobson
That's a little strange .. can you send an example of the urls T5 is
generating?


2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>

> Thanks, I already tried that. However this seems to be ignored and all the
> assets are inserted with relative URIs.
>
> Any other options?
>
> On Tue, Nov 25, 2008 at 6:10 PM, Toby Hobson <[EMAIL PROTECTED]
> >wrote:
>
> > In your AppModule.java you need to tell T5 to use absolute uris e.g.
> >
> > public static void
> > contributeApplicationDefaults(MappedConfiguration > String> configuration)
> > {
> >...
> >configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS, "true");
> > }
> >
> > Toby
> >
> > 2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>
> >
> > > Hi!
> > > I have a T5 webapp that has to provide a template page for a payment
> > > system,
> > > a page that contains assets like images, css, js files in the layout
> > > component. The template page is just a plain T5 page with a placeholder
> > > like
> > > $inject_here$.
> > > The payment system (another website) is taking the template directly
> from
> > > my
> > > web application and than has to inject the payment options into the
> > > placeholder, resulting the payment page.
> > > All is working ok except the assets. They remain relative to the
> original
> > > webapp so they can't be found on the payment system.
> > >
> > > This should be fixed if the assets and links would have an absolute
> URLs.
> > > I've tried to set the tapestry.force-absolute-uris parameter to true
> but
> > > seems it doesn't have any effect.
> > >
> > > Also I've tried to place a  tag in the  with the webapp
> page
> > > location. No luck: with this only the images are showing. Css and Js
> > files
> > > are ignored.
> > >
> > > There is a possibility to force Tapestry to generate absolute paths for
> > > assets? Can be done just for specific pages?
> > >
> > > Thanks so much,
> > >
> > > --Ovidiu
> > >
> >
>


Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Toby Hobson
In your AppModule.java you need to tell T5 to use absolute uris e.g.

public static void contributeApplicationDefaults(MappedConfiguration configuration)
{
...
configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS, "true");
}

Toby

2008/11/25 Ovidiu Hurducas <[EMAIL PROTECTED]>

> Hi!
> I have a T5 webapp that has to provide a template page for a payment
> system,
> a page that contains assets like images, css, js files in the layout
> component. The template page is just a plain T5 page with a placeholder
> like
> $inject_here$.
> The payment system (another website) is taking the template directly from
> my
> web application and than has to inject the payment options into the
> placeholder, resulting the payment page.
> All is working ok except the assets. They remain relative to the original
> webapp so they can't be found on the payment system.
>
> This should be fixed if the assets and links would have an absolute URLs.
> I've tried to set the tapestry.force-absolute-uris parameter to true but
> seems it doesn't have any effect.
>
> Also I've tried to place a  tag in the  with the webapp page
> location. No luck: with this only the images are showing. Css and Js files
> are ignored.
>
> There is a possibility to force Tapestry to generate absolute paths for
> assets? Can be done just for specific pages?
>
> Thanks so much,
>
> --Ovidiu
>


[T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Ovidiu Hurducas
Hi!
I have a T5 webapp that has to provide a template page for a payment system,
a page that contains assets like images, css, js files in the layout
component. The template page is just a plain T5 page with a placeholder like
$inject_here$.
The payment system (another website) is taking the template directly from my
web application and than has to inject the payment options into the
placeholder, resulting the payment page.
All is working ok except the assets. They remain relative to the original
webapp so they can't be found on the payment system.

This should be fixed if the assets and links would have an absolute URLs.
I've tried to set the tapestry.force-absolute-uris parameter to true but
seems it doesn't have any effect.

Also I've tried to place a  tag in the  with the webapp page
location. No luck: with this only the images are showing. Css and Js files
are ignored.

There is a possibility to force Tapestry to generate absolute paths for
assets? Can be done just for specific pages?

Thanks so much,

--Ovidiu