[
https://issues.apache.org/jira/browse/WICKET-2512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Igor Vaynberg resolved WICKET-2512.
-----------------------------------
Resolution: Invalid
Assignee: Igor Vaynberg
your tests are flawed. you are assuming that after executeajaxevent you have
the same request cycle instance you are asserting on, which is not true.
wickettester is a messy beast and will create multiple request cycle instances.
you should put some system outs into your test code, it will make it easier to
test.
> executeAjaxEvent "onclick" does not cause RequestCycle.onBeginRequest() to be
> called
> ------------------------------------------------------------------------------------
>
> Key: WICKET-2512
> URL: https://issues.apache.org/jira/browse/WICKET-2512
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4.1, 1.4.2
> Environment: java 6, ubuntu 9.10
> Reporter: Daniele
> Assignee: Igor Vaynberg
> Priority: Minor
> Attachments: bugs-08102009.war, bugs.tar.bz2
>
>
> I have a form with AjaxSubmitLink added. I generate the ajax "onclick" event
> to trigger the submit that is indeed triggered, in fact Form.onSubmit is
> called but wihout calling before a onBeginRequest so I cannot open the
> database transaction.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.