You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/04/15 20:27:05 UTC

[jira] Commented: (TAPESTRY-2337) During an Ajax update, using a "var:" binding prefix causes an exception indicating that the page is not rendering

    [ https://issues.apache.org/jira/browse/TAPESTRY-2337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589179#action_12589179 ] 

Howard M. Lewis Ship commented on TAPESTRY-2337:
------------------------------------------------

Consistency is one of the four basic tenets, and this represents behavior that works when doing a full page render but inconsistently fails when doing a partial render due to Ajax.  Still, there's a perfectly good workaround.

> During an Ajax update, using a "var:" binding prefix causes an exception indicating that the page is not rendering
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2337
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2337
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.11
>            Reporter: Josh Canfield
>            Priority: Minor
>             Fix For: 5.1
>
>         Attachments: BasicAjax.java, BasicAjax.tml
>
>
> Using the var binding within a zone works fine when you load the page, but when you update the zone using an action link the zone doesn't update and an error is logged.
> Caused by: org.apache.tapestry.ioc.internal.util.TapestryException: Failure writing parameter 'value' of component BasicAjax:loop: Component BasicAjax is not rendering, so render variable 'string' may not be updated. [at classpath:joshcan/test/myapp/pages/BasicAjax.tml, line 6, column 49]
> 	at org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.writeParameter(InternalComponentResourcesImpl.java:273)
> 	at org.apache.tapestry.corelib.components.Loop._$update_parameter_value(Loop.java)
> 	at org.apache.tapestry.corelib.components.Loop.begin(Loop.java:282)
> 	at org.apache.tapestry.corelib.components.Loop.beginRender(Loop.java)
> 	at org.apache.tapestry.internal.structure.ComponentPageElementImpl$11$1.run(ComponentPageElementImpl.java:338)
> 	at org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:874)
> 	... 66 more
> Caused by: java.lang.IllegalStateException: Component BasicAjax is not rendering, so render variable 'string' may not be updated.
> 	at org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.storeRenderVariable(InternalComponentResourcesImpl.java:429)
> 	at org.apache.tapestry.internal.bindings.RenderVariableBinding.set(RenderVariableBinding.java:38)
> 	at org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.writeParameter(InternalComponentResourcesImpl.java:269)
> 	... 71 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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