You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Franz Amador (JIRA)" <de...@tapestry.apache.org> on 2008/01/09 18:32:34 UTC
[jira] Issue Comment Edited: (TAPESTRY-2029) PageTester.submitForm
NullPointerException
[ https://issues.apache.org/jira/browse/TAPESTRY-2029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557098#action_12557098 ]
fgamador edited comment on TAPESTRY-2029 at 1/9/08 9:31 AM:
----------------------------------------------------------------
Uploaded Eclipse project test app that demonstrates the problem.
was (Author: fgamador):
Complete test app that demonstrates the problem.
> PageTester.submitForm NullPointerException
> ------------------------------------------
>
> Key: TAPESTRY-2029
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2029
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-test
> Affects Versions: 5.0.7
> Environment: Java 1.5.0_13, Eclipse 3.3.1.1, Windows 2000
> Reporter: Franz Amador
> Attachments: PageTester-test.zip
>
>
> PageTester.submitForm throws a NullPointerException if the form returns a page that itself forwards to another page via onActivate. For example:
> @Test
> public void testSubmit() {
> Document dom = tester.renderPage("Page1");
> tester.submitForm(dom.getElementById("form"), new HashMap<String, String>());
> }
> public class Page1 {
> Object onSuccess() {
> return Page2.class;
> }
> public class Page2 {
> Object onActivate() {
> return Page3.class;
> }
> FAILED: testSubmit
> java.lang.NullPointerException
> at org.apache.tapestry.internal.test.PageLinkInvoker.invoke(PageLinkInvoker.java:61)
> at org.apache.tapestry.test.PageTester.invoke(PageTester.java:167)
> at org.apache.tapestry.internal.test.ActionLinkInvoker.invoke(ActionLinkInvoker.java:78)
> at org.apache.tapestry.test.PageTester.invoke(PageTester.java:167)
> at org.apache.tapestry.test.PageTester.submitForm(PageTester.java:195)
> at com.acme.app.pages.Page1Test.testSubmit(Page1Test.java:30)
--
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