You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Bastian Voigt <po...@bastian-voigt.de> on 2006/08/22 20:39:21 UTC

Problem with Script and Border

Hello all,

my Tapestry 4.0.2 application uses a border component:

--------------------------
<html jwcid="@Shell">
<body jwcid="@Body">
    ... blah ...

    <span jwcid="@RenderBody" />

    ... blah ...
</body>
</html>
--------------------------

The pages look like this:

--------------------------
<body jwcid="$content$">
    <span class="@Border">

       .... blah ...

       <span jwcid="@Script">

       ... blah ...
    </span>
</body>
--------------------------

Now when a page contains a Script component, as above, I get the 
following error:

--------------------------
org.apache.hivemind.ApplicationRuntimeException:
Component Googlemaps_lite/$Script requires rendering support,
but no PageRenderSupport object has been stored into the request
cycle. This object is typically provided by a Body component.
You should add a Body component to your template.
[context:/Googlemaps_lite.html, line 26]
at 
org.apache.coyote.tomcat5.CoyoteResponseFacade.reset(CoyoteResponseFacade.java:264)
--------------------------


But I *hava* a body component, only that it is inside the Border!!
How to circumvent this error?

Thanks for your time!!

kind regards
Bastian Voigt


Re: Problem with Script and Border

Posted by Bastian Voigt <po...@bastian-voigt.de>.
Andy, thanks for your reply.
> Replace <span class="@Border">  with
> <span jwcid="@Border">
>   
Yeah of course,
That was just a typo in the e-mail :)
The problem is still there ...
>> my Tapestry 4.0.2 application uses a border component:
>>
>> --------------------------
>> <html jwcid="@Shell">
>> <body jwcid="@Body">
>>    ... blah ...
>>
>>    <span jwcid="@RenderBody" />
>>
>>    ... blah ...
>> </body>
>> </html>
>> --------------------------
>>
>> The pages look like this:
>>
>> --------------------------
>> <body jwcid="$content$">
>>    <span jwcid="@Border">
>>
>>       .... blah ...
>>
>>       <span jwcid="@Script">
>>
>>       ... blah ...
>>    </span>
>> </body>
>> --------------------------
>>     

Regards
Bastian


Re: Problem with Script and Border

Posted by andyhot <an...@di.uoa.gr>.
Replace <span class="@Border">  with
<span jwcid="@Border">

Bastian Voigt wrote:
> Hello all,
>
> my Tapestry 4.0.2 application uses a border component:
>
> --------------------------
> <html jwcid="@Shell">
> <body jwcid="@Body">
>    ... blah ...
>
>    <span jwcid="@RenderBody" />
>
>    ... blah ...
> </body>
> </html>
> --------------------------
>
> The pages look like this:
>
> --------------------------
> <body jwcid="$content$">
>    <span class="@Border">
>
>       .... blah ...
>
>       <span jwcid="@Script">
>
>       ... blah ...
>    </span>
> </body>
> --------------------------
>
> Now when a page contains a Script component, as above, I get the
> following error:
>
> --------------------------
> org.apache.hivemind.ApplicationRuntimeException:
> Component Googlemaps_lite/$Script requires rendering support,
> but no PageRenderSupport object has been stored into the request
> cycle. This object is typically provided by a Body component.
> You should add a Body component to your template.
> [context:/Googlemaps_lite.html, line 26]
> at
> org.apache.coyote.tomcat5.CoyoteResponseFacade.reset(CoyoteResponseFacade.java:264)
>
> --------------------------
>
>
> But I *hava* a body component, only that it is inside the Border!!
> How to circumvent this error?
>
> Thanks for your time!!
>
> kind regards
> Bastian Voigt
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


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