hi,

i'm using 2.2 (beta2, and now beta3), and it seems to me that the
script inclusion is somewhat broken..

here's what i'm doing in a component

protected void renderComponent(IMarkupWriter writer, IRequestCycle
cycle) throws RequestCycleException {
        Body body = Body.get(cycle);
        IAsset script = this.getAsset("foldingScript");
        body.includeScript( script.buildURL(cycle) );
        super.renderComponent(writer, cycle);
}

this results in the following:

<script language="JavaScript" type="text/javascript"
src="/flock/tap?service=asset&amp;sp=%2Fnet%2Fsourceforge%2Fflock%2Fwebapp%2Fcomponents%2Ffolding.js"></script>

the problem with this is: ?service=asset&amp;sp=...  this should be an
& not an &amp;, so it doesnt find my script. i just noticed that the
tapestry supplied components also have this problem, so i guess it's
not me this time :)

<script language="JavaScript" type="text/javascript"
src="/flock/tap?service=asset&amp;sp=%2Fnet%2Fsf%2Ftapestry%2Fhtml%2FPracticalBrowserSniffer.js"></script>


any ideas?

     viktor

-- 
  
  [EMAIL PROTECTED]

-- 
http://fastmail.fm/ - Access your email from home and the web


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to