wicket-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Korbinian Bachl (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WICKET-6415) new Components added in AjaxRequest break with no Page found error
Date Tue, 04 Jul 2017 19:48:00 GMT

    [ https://issues.apache.org/jira/browse/WICKET-6415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16074033#comment-16074033
] 

Korbinian Bachl commented on WICKET-6415:
-----------------------------------------

ah ok, now I see where my problem was; I didn't notice the 2nd wrong call in AjaxFormSubmitBehavior
later on
(which is quite funny that is also there wrong because that code was copy n pasted from the
wicket 7 examples ;) )

Anyway, do you think that a more useful exception and explanation might be possible for this?

> new Components added in AjaxRequest break with no Page found error
> ------------------------------------------------------------------
>
>                 Key: WICKET-6415
>                 URL: https://issues.apache.org/jira/browse/WICKET-6415
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 8.0.0-M1, 8.0.0-M2, 8.0.0-M3, 8.0.0-M4, 8.0.0-M5, 8.0.0-M6, 8.0.0-M7
>         Environment: any
>            Reporter: Korbinian Bachl
>            Priority: Critical
>         Attachments: ajaxDemoForWicket8.zip, ajaxErrorDemo.tar.gz
>
>
> run attached quickstart-project (code behind works well in wicket 7 and lower), enter
anything into the ajaxfield to trigger the updatebehaviour and you get error:
> Unexpected RuntimeException
> Last cause: No Page found for component [Component id = history]
> Stacktrace
> Root cause:
> org.apache.wicket.WicketRuntimeException: No Page found for component [Component id =
history]
>      at org.apache.wicket.Component.getPage(Component.java:1755)
>      at org.apache.wicket.ajax.AjaxRequestHandler.add(AjaxRequestHandler.java:231)
>      at com.mycompany.demo.tile.AjaxDemoPanel$2.onUpdate(AjaxDemoPanel.java:118)
>      at org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior.onEvent(AjaxFormComponentUpdatingBehavior.java:156)
>      at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:151)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message