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
>> >
>> > <img src="${asset:context:images/logo_flat.gif}" />
>> >
>> > 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
>> > > <img src="${asset:context:/images/logo_flat.gif}" />
>> > > <a t:type="actionlink" t:id="releaseResSession">Release RES Session</a>
>> > >
>> > > and what is rendering:
>> > >
>> > > <img src="/images/logo_flat.gif"/>
>> > > <a href="/paymenttemplate.border.releaseressession"
>> > > shape="rect">Release RES Session</a>
>> > >
>> > >
>> > > 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,
>> > > > > > 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 <base> tag in the <head> 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]

Reply via email to