With respect to: <link rel="stylesheet" href="style.css" type="text/css" />
is style.css the correct root for this css file? Maybe it should be /style.css, or /css/style.css or summat? WRT the inline format, again, the path to images might need to be /images or whatever. Either way, if tap doesn't recognise the path to images as being correct it will try to resolve it as a ref to the current page with a context of "image". Also, for reference http://tapestry.apache.org/tapestry5/guide/css.html -----Original Message----- From: Entheogen <gor...@gmail.com> Reply-To: Tapestry users <users@tapestry.apache.org> To: users@tapestry.apache.org Subject: Re: [T5] problem with CSS in tml. Date: Sun, 19 Apr 2009 09:38:05 -0700 (PDT) but the images are inside internal (<style>)style sheet body { background: #000000 url(images/img01.gif) repeat-x; } when i use external css (with <link rel="stylesheet" href="style.css" type="text/css" />) i get: ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: Exception in method org.goran.mstore.pages.AlbumDetails.onActivate(long) (at AlbumDetails.java:31), parameter #1: Coercion of style.css to type java.lang.Long (via String --> Long) failed: For input string: "style.css" org.apache.tapestry5.runtime.ComponentEventException: Exception in method org.goran.mstore.pages.AlbumDetails.onActivate(long) (at AlbumDetails.java:31), parameter #1: Coercion of style.css to type java.lang.Long (via String --> Long) failed: For input string: "style.css" with external css nothing is formatted... Thiago H. de Paula Figueiredo wrote: > > Em Sun, 19 Apr 2009 13:00:16 -0300, Joel Halbert <j...@su3analytics.com> > escreveu: > >> looks like you have a badly anchored image somewhere on your page.. >> >> Something is being generated like images/bla.png >> >> the incorrectly rooted images path causes tap to think this resource is >> page local and tries to call onActivate on the current page passing in >> the images string as an argument. >> >> Check that all your images are correctly anchored. > > The explanation is correct, just lacked the solution. :) Instead of > images/bla.png , use ${asset:context:/images/bla.png} > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org