You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tetrel Julien <jt...@sopragroup.com> on 2009/08/04 10:35:09 UTC
T5.0.18 : DOM exception when refreshing a zone with an actionlink
Hi.
I'm actually facing a problem using tapestry 5.0.18.
My code is trying to refresh a Zone component using an Actionlink, like
this:
<t:zone t:id="ZoneProfils">
//some content...
<t:actionlink t:id="deletePoste" zone="ZoneProfils">
<t:zone/>
java code:
@Component
private Zone ZoneProfils;
private Object onActionFromDeletePoste()
{
return ZoneProfils;
}
This code works perfectly on IE7 and opera 9.64. But, in Firefox 3.5 and
google Chrome 2, this code raises an error:
in FF: "An invalid or illegal string was specified" code:"12"
in Chrome : SYNTAX_ERR : DOM Exception 12
I tried to update the zone with the content of another zone , the error
still occurs. Then I tried to update the zone with the content of a
Block component, and then no error occurs!
The problem is that I really need to update the content of my zone. So
what can be the problem?
Thanks.
Julien Tetrel
Re: T5.0.18 : DOM exception when refreshing a zone with an actionlink
Posted by Florian DESBOIS <fl...@gmail.com>.
Just do :
private Object onActionFromDeletePoste()
{
return ZoneProfils.getBody(); // return the block inside the zone
}
Hope it resolves your problem
2009/8/4 Tetrel Julien <jt...@sopragroup.com>
> Hi.
>
> I'm actually facing a problem using tapestry 5.0.18.
> My code is trying to refresh a Zone component using an Actionlink, like
> this:
>
> <t:zone t:id="ZoneProfils">
>
> //some content...
>
> <t:actionlink t:id="deletePoste" zone="ZoneProfils">
>
> <t:zone/>
>
> java code:
> @Component
>
> private Zone ZoneProfils;
>
> private Object onActionFromDeletePoste()
>
> {
>
> return ZoneProfils;
>
> }
>
> This code works perfectly on IE7 and opera 9.64. But, in Firefox 3.5 and
> google Chrome 2, this code raises an error:
>
> in FF: "An invalid or illegal string was specified" code:"12"
>
> in Chrome : SYNTAX_ERR : DOM Exception 12
>
> I tried to update the zone with the content of another zone , the error
> still occurs. Then I tried to update the zone with the content of a
> Block component, and then no error occurs!
>
> The problem is that I really need to update the content of my zone. So
> what can be the problem?
>
> Thanks.
>
> Julien Tetrel
>
>