That's a jetty configuration setting.  I don't remember the exact place /
config option but you can find it in the jetty confluence site somewhere.
Something to do with windows file locking.

On 5/30/07, Daniel Jue <[EMAIL PROTECTED]> wrote:

hint:
assuming your css is in webapp/css,

url(images/bg.gif)  would point to webapp/css/images/bg.gif
url(/images/bg.gif) would also point to webapp/css/images/bg.gif
url(../images/bg.gif) would point to webapp/images/bg.gif

I was just solving this issue with my code as well.
BTW- I noticed that I can't save an edited css file in eclipse, if
jetty is running and has served the page (ie6 or firefox)

"Could not write file:
C:\Projects\wtpworkspace\IEIS2\src\main\webapp\css\test.css."
So I have to stop and restart jetty6. =(




On 5/30/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> url() references in a stylesheet a relative to the stylesheet.
> url(images/bg.gif) will generate a proper URL to a real resource, and
> Tapestry won't attempt to interpret it as an action request URL.
>
> On 5/30/07, petros <[EMAIL PROTECTED]> wrote:
> >
> >
> > I have the following error in my log file
> >
> > java.lang.IllegalArgumentException: Unable to resolve page
> > 'styles/images/bg' to a component class name.  Available page names:
> > Login,
> > Start,  users/UserDetails
> > at
> >
> >
org.apache.tapestry.internal.services.ComponentClassResolverImpl.resolvePageNameToClassName
> > (ComponentClassResolverImpl.java:257)
> >
> > which is caused by the line (in style.css)
> > background: #f4f4f4 url(styles/images/bg.gif) top center repeat-y;
> >
> > The directory structure is
> > /styles/images/bg.gif
> > /styles/style.css
> >
> > How can I solve this problem ?
> >
> > Petros
> >
> >
> >
> >
> > --
> > View this message in context:
> >
http://www.nabble.com/ComponentClassResolverImpl-tf3838585.html#a10868505
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Howard M. Lewis Ship
> TWD Consulting, Inc.
> Independent J2EE / Open-Source Java Consultant
> Creator and PMC Chair, Apache Tapestry
> Creator, Apache HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work.  http://howardlewisship.com
>

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




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Reply via email to