You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "F. Da Costa" <da...@xs4all.nl> on 2004/01/07 00:48:51 UTC

Spindle approves prj but Tap does not load assets

Hi,

Just wasted a whole afternoon & a whole evening (night, European timezone) 
in trying to get my cleaned up project working again.
Assets (css & images) are not picked up anymore *&* there is something very 
funny going on in the creation og the global (see an earlier posting).
Call me funny (or sleepy) but can't I assume that if Spindle oks the prj it 
will do what one expects?

Following the basic structure of my project.
If someone sees something out of the ordinary plz don't hesitate because 
i'm not seeing it.

TIA
Fermin DCG

[src/appl]
	- xyz.application
	[scripts]
	[...]

[context/WEB-INF]
	web.xml
	[css]
	[images]
	[classes]
	   [appl]
	   xyz.application
	   [scripts]
	   [other stuff]

*web.xml snip*
<servlet>
  <servlet-name>xyz</servlet-name>
  <servlet-class>org.dcg.platform.StdTapestryServlet</servlet-class>
  <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
  <servlet-name>xyz</servlet-name>
  <url-pattern>/</url-pattern>
</servlet-mapping>


*Servlet used*
public class StdTapestryServlet extends ApplicationServlet {
   protected String getApplicationSpecificationPath() {
     return "/appl/xyz.application";
   }
}


*xyz.page snip*
   <context-asset name="dcgTreeStyle" path="/WEB-INF/css/dcgtreestyle.css"/>
   <context-asset name="dot" path="/WEB-INF/images/dots_leftnav.gif"/>


*Output snip*
<!-- Generated: Wed Jan 07 00:26:24 CET 2004 -->
<html>
<head>
<meta name="generator" content="Tapestry Application Framework, version 
3.0-beta-3"/>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>xyz</title>
<link rel="stylesheet" type="text/css" 
href="/WEB-INF/css/style_virtlib_pcIE55.css"/>
</head>
...


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Spindle approves prj but Tap does not load assets

Posted by "F. Da Costa" <da...@xs4all.nl>.
Geoff Longman wrote:

> Try setting a breakpoint in
> 
> org.apache.tapestry.ContextAsset.buildURL(IRequestCycle cycle)
> 
> And see if its being called. if it is what's happening there?
It was indeed called and you were quicker than I with the ther posting.

Thx
Fermin DCG


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Spindle approves prj but Tap does not load assets

Posted by Geoff Longman <gl...@intelligentworks.com>.
Try setting a breakpoint in

org.apache.tapestry.ContextAsset.buildURL(IRequestCycle cycle)

And see if its being called. if it is what's happening there?

Geoff
----- Original Message -----
From: "F. Da Costa" <da...@xs4all.nl>
To: <ta...@jakarta.apache.org>
Sent: Tuesday, January 06, 2004 6:48 PM
Subject: Spindle approves prj but Tap does not load assets


> Hi,
>
> Just wasted a whole afternoon & a whole evening (night, European timezone)
> in trying to get my cleaned up project working again.
> Assets (css & images) are not picked up anymore *&* there is something
very
> funny going on in the creation og the global (see an earlier posting).
> Call me funny (or sleepy) but can't I assume that if Spindle oks the prj
it
> will do what one expects?
>
> Following the basic structure of my project.
> If someone sees something out of the ordinary plz don't hesitate because
> i'm not seeing it.
>
> TIA
> Fermin DCG
>
> [src/appl]
> - xyz.application
> [scripts]
> [...]
>
> [context/WEB-INF]
> web.xml
> [css]
> [images]
> [classes]
>    [appl]
>    xyz.application
>    [scripts]
>    [other stuff]
>
> *web.xml snip*
> <servlet>
>   <servlet-name>xyz</servlet-name>
>   <servlet-class>org.dcg.platform.StdTapestryServlet</servlet-class>
>   <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
>   <servlet-name>xyz</servlet-name>
>   <url-pattern>/</url-pattern>
> </servlet-mapping>
>
>
> *Servlet used*
> public class StdTapestryServlet extends ApplicationServlet {
>    protected String getApplicationSpecificationPath() {
>      return "/appl/xyz.application";
>    }
> }
>
>
> *xyz.page snip*
>    <context-asset name="dcgTreeStyle"
path="/WEB-INF/css/dcgtreestyle.css"/>
>    <context-asset name="dot" path="/WEB-INF/images/dots_leftnav.gif"/>
>
>
> *Output snip*
> <!-- Generated: Wed Jan 07 00:26:24 CET 2004 -->
> <html>
> <head>
> <meta name="generator" content="Tapestry Application Framework, version
> 3.0-beta-3"/>
> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
> <title>xyz</title>
> <link rel="stylesheet" type="text/css"
> href="/WEB-INF/css/style_virtlib_pcIE55.css"/>
> </head>
> ...
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org