You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Andreas (JIRA)" <de...@tapestry.apache.org> on 2008/01/21 10:22:34 UTC
[jira] Updated: (TAPESTRY-2067) Parameter passing to pages doesn't
work with AJAX-Requests (async=true)
[ https://issues.apache.org/jira/browse/TAPESTRY-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas updated TAPESTRY-2067:
------------------------------
Attachment: tapestry_testcase_issue2067.zip
Testcase that shows the problem.
Load pageB and see message
Load pageA, enter message and hit submit --> pageB shows messageA (correct) or messageB (wrong) depending on async=true or false in pageA.
> Parameter passing to pages doesn't work with AJAX-Requests (async=true)
> -----------------------------------------------------------------------
>
> Key: TAPESTRY-2067
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2067
> Project: Tapestry
> Issue Type: Bug
> Environment: Netbeans 6.0
> Tomcat 6.0.14
> Java 1.6.0_03
> Reporter: Andreas
> Fix For: 4.1.4
>
> Attachments: tapestry_testcase_issue2067.zip
>
>
> When using forms with async=true, parameter passing to a following page doesn't work. What happens is this:
> - Show Page A - Form.
> - User enters text in a box hits Enter/Submit
> - AJAX-Request starts, hits listener
> - Form-Listener (A) gets new Page and injects parameter (pageB.setXXX('foo'))
> - beginPageRender-Listener (B) of pageB fired
> - Listener (A) returns the redirect-request to Tapestry
> - ??? (AJAX-answer? don't really know, i haven't checked)
> - Tapestry starts listener B just AGAIN! (seems, that the redirect doesn't know anything more of the before-instantiated page and takes a new one)
> - pageB renders (but without the passed parameter as it uses a new pageB and not the first intantiated one
> - pageB renders without the passed parameter. :-(
> possible Workaround (not tested yet):
> - pass on the parameter via session
> Any other ideas?
> This issue is at least major in my eyes as using parameter-passing is essential! It should urgently being documented in wiki or the tapestry-docs.
> I'll try to add a testcase (this is my first bug here, so i don't know whether i am allowed to do so or not...)
--
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