Anna Vo wrote:
Ron-

Can you give us an example of a wrong URL?

the url is : /bardtke/blog/S861D28AA/l4/images/reiter_hg.gif

the page url is : /bardtke/blog/S861D28AA/l4/l7




We have been having issues with our CSS image URLs also.

Example:
url(/assets/static/dojo/src/widget/templates/DatePicker.cssimages/dpBg.g
if)

if your css is in a css folder in the context, you should use:

url( "../assets/...


if its direct in the context dir, use

url( "./assets/...



the url is always realtive to the css file, not the page. The problem is when using css in the page itself...


I've tried adding inline style tags with the correct image paths
directly into the HTML, but Tapestry renders these styles before it
renders the dojo ones so I can't seem to ever override the css.

I *think* you can, using !important :

example:

A {
  color: red !important;
}


After trying to use both context and asset for specifying the
tapestry/dojo sources to the shell component I just ended up using the
default ones, which doesn't work for us either.

how come? be sure to map /asset/ to the servlet as described in friendly URLs chapter in the user's guide...



We also tried to override AssetService but we must have missed something
because the path still got generated incorrectly.

there must be another solution.


If you have the same issue and find anything else, please post. Thanks!


generaly, one can use the renderBaseTag parameter of the shell component. this will render a <base> tag in the header, and will determine a base for relative URLs.

I am just wondering why the default is false in T41?

Cheers,
Ron


Anna


-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of RonPiterman
Sent: Thursday, January 18, 2007 5:57 AM
To: users@tapestry.apache.org
Subject: T41: Are there any known problems with BASE tag?

Hi -

I have a problem with nice-urls since the css is inserting images in wrong urls -

are there any issues with dojo and the base tag?

Cheers,
Ron


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


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




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

Reply via email to