You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Lasse Lindgård (Created JIRA)" <ji...@apache.org> on 2012/02/24 13:45:49 UTC
[jira] [Created] (WICKET-4429) executeAllTimerBehaviors does not
find all timer behaviours
executeAllTimerBehaviors does not find all timer behaviours
-----------------------------------------------------------
Key: WICKET-4429
URL: https://issues.apache.org/jira/browse/WICKET-4429
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.5.4, 1.4.19
Reporter: Lasse Lindgård
Priority: Minor
WicketTester tester = new WicketTester();
tester.startPage(WaitPage.class);
tester.assertRenderedPage(WaitPage.class);
tester.executeAllTimerBehaviors(tester.getLastRenderedPage());
public WaitPage() {
Label message = new Label("message", "Please wait ..");
add(message);
add(new AjaxSelfUpdatingTimerBehavior(Duration.milliseconds(1000)) {
@Override
protected void onPostProcessTarget(AjaxRequestTarget target) {
// wait for background thread to complete
// if (task.isDone()) { ...
stop();
setResponsePage(NextPage.class);
}
});
The timer does not fire.
Problem 1: The code looks for MarkupContainers
Problem 2: The code looks for AjaxSelfUpdatingTimerBehavior but should look for AbstractAjaxTimerBehavior
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-4429) executeAllTimerBehaviors does not
find all timer behaviours
Posted by "Lasse Lindgård (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13215590#comment-13215590 ]
Lasse Lindgård commented on WICKET-4429:
----------------------------------------
Problem 2: AjaxSelfUpdatingTimerBehavior only applies to 1.4.x
> executeAllTimerBehaviors does not find all timer behaviours
> -----------------------------------------------------------
>
> Key: WICKET-4429
> URL: https://issues.apache.org/jira/browse/WICKET-4429
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4.19, 1.5.4
> Reporter: Lasse Lindgård
> Priority: Minor
> Labels: testing
> Attachments: AjaxSelfUpdatingTimerBehavior_test.zip
>
>
> WicketTester tester = new WicketTester();
> tester.startPage(WaitPage.class);
> tester.assertRenderedPage(WaitPage.class);
> tester.executeAllTimerBehaviors(tester.getLastRenderedPage());
> public WaitPage() {
> Label message = new Label("message", "Please wait ..");
> add(message);
> add(new AjaxSelfUpdatingTimerBehavior(Duration.milliseconds(1000)) {
> @Override
> protected void onPostProcessTarget(AjaxRequestTarget target) {
> // wait for background thread to complete
> // if (task.isDone()) { ...
> stop();
> setResponsePage(NextPage.class);
> }
> });
> The timer does not fire.
> Problem 1: The code looks for MarkupContainers
> Problem 2: The code looks for AjaxSelfUpdatingTimerBehavior but should look for AbstractAjaxTimerBehavior
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (WICKET-4429) executeAllTimerBehaviors does not
find all timer behaviours
Posted by "Martin Grigorov (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-4429.
-------------------------------------
Resolution: Fixed
Fix Version/s: 6.0.0
1.5.5
1.4.20
Assignee: Martin Grigorov
> executeAllTimerBehaviors does not find all timer behaviours
> -----------------------------------------------------------
>
> Key: WICKET-4429
> URL: https://issues.apache.org/jira/browse/WICKET-4429
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4.19, 1.5.4
> Reporter: Lasse Lindgård
> Assignee: Martin Grigorov
> Priority: Minor
> Labels: testing
> Fix For: 1.4.20, 1.5.5, 6.0.0
>
> Attachments: AjaxSelfUpdatingTimerBehavior_test.zip
>
>
> WicketTester tester = new WicketTester();
> tester.startPage(WaitPage.class);
> tester.assertRenderedPage(WaitPage.class);
> tester.executeAllTimerBehaviors(tester.getLastRenderedPage());
> public WaitPage() {
> Label message = new Label("message", "Please wait ..");
> add(message);
> add(new AjaxSelfUpdatingTimerBehavior(Duration.milliseconds(1000)) {
> @Override
> protected void onPostProcessTarget(AjaxRequestTarget target) {
> // wait for background thread to complete
> // if (task.isDone()) { ...
> stop();
> setResponsePage(NextPage.class);
> }
> });
> The timer does not fire.
> Problem 1: The code looks for MarkupContainers
> Problem 2: The code looks for AjaxSelfUpdatingTimerBehavior but should look for AbstractAjaxTimerBehavior
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (WICKET-4429) executeAllTimerBehaviors does not
find all timer behaviours
Posted by "Lasse Lindgård (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lasse Lindgård updated WICKET-4429:
-----------------------------------
Attachment: AjaxSelfUpdatingTimerBehavior_test.zip
A simple example and a unit test
> executeAllTimerBehaviors does not find all timer behaviours
> -----------------------------------------------------------
>
> Key: WICKET-4429
> URL: https://issues.apache.org/jira/browse/WICKET-4429
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4.19, 1.5.4
> Reporter: Lasse Lindgård
> Priority: Minor
> Labels: testing
> Attachments: AjaxSelfUpdatingTimerBehavior_test.zip
>
>
> WicketTester tester = new WicketTester();
> tester.startPage(WaitPage.class);
> tester.assertRenderedPage(WaitPage.class);
> tester.executeAllTimerBehaviors(tester.getLastRenderedPage());
> public WaitPage() {
> Label message = new Label("message", "Please wait ..");
> add(message);
> add(new AjaxSelfUpdatingTimerBehavior(Duration.milliseconds(1000)) {
> @Override
> protected void onPostProcessTarget(AjaxRequestTarget target) {
> // wait for background thread to complete
> // if (task.isDone()) { ...
> stop();
> setResponsePage(NextPage.class);
> }
> });
> The timer does not fire.
> Problem 1: The code looks for MarkupContainers
> Problem 2: The code looks for AjaxSelfUpdatingTimerBehavior but should look for AbstractAjaxTimerBehavior
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira