You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Haster (JIRA)" <ji...@apache.org> on 2015/10/16 14:59:05 UTC
[jira] [Updated] (WICKET-6005) WicketRuntimeException from
AjaxPagingNavigator#onAjaxEvent
[ https://issues.apache.org/jira/browse/WICKET-6005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sven Haster updated WICKET-6005:
--------------------------------
Description:
In WICKET-5974 a change was added where the AjaxPagingNavigator checks if its {{pageable}} has a parent that is a) not a repeater and b) has outputMarkupId set to {{true}}. If not, a WicketRuntimeException is thrown ("Unable to find a parent component that is no repeater and has setOutputMarkupId(true)")
This is a significant break from the logic before, where the AjaxPagingNavigator checked if its {{pageable}} has a parent that is not a repeater and if so, added it to the AjaxRequestTarget, which then would check if the component has {code}setOutputMarkupId(true){code} *or if it is a page*. (see AjaxRequestHandler#add(Component...) )
This last part is significant because it means that any repeater added directly to a page before would work with the AjaxPagingNavigator but now it will only work if that page has {code}setOutputMarkupId(true){code}.
was:
In WICKET-5974 a change was added where the AjaxPagingNavigator checks if its {code}pageable{code} has a parent that is a) not a repeater and b) has outputMarkupId set to {code}true{code}. If not, a WicketRuntimeException is thrown ("Unable to find a parent component that is no repeater and has setOutputMarkupId(true)")
This is a significant break from the logic before, where the AjaxPagingNavigator checked if its {code}pageable{code} has a parent that is not a repeater and if so, added it to the AjaxRequestTarget, which then would check if the component has {code}setOutputMarkupId(true){code} *or if it is a page*. (see AjaxRequestHandler#add(Component...) )
This last part is significant because it means that any repeater added directly to a page before would work with the AjaxPagingNavigator but now it will only work if that page has {code}setOutputMarkupId(true){code}.
> WicketRuntimeException from AjaxPagingNavigator#onAjaxEvent
> -----------------------------------------------------------
>
> Key: WICKET-6005
> URL: https://issues.apache.org/jira/browse/WICKET-6005
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 7.1.0
> Reporter: Sven Haster
> Labels: ajax, navigator
>
> In WICKET-5974 a change was added where the AjaxPagingNavigator checks if its {{pageable}} has a parent that is a) not a repeater and b) has outputMarkupId set to {{true}}. If not, a WicketRuntimeException is thrown ("Unable to find a parent component that is no repeater and has setOutputMarkupId(true)")
> This is a significant break from the logic before, where the AjaxPagingNavigator checked if its {{pageable}} has a parent that is not a repeater and if so, added it to the AjaxRequestTarget, which then would check if the component has {code}setOutputMarkupId(true){code} *or if it is a page*. (see AjaxRequestHandler#add(Component...) )
> This last part is significant because it means that any repeater added directly to a page before would work with the AjaxPagingNavigator but now it will only work if that page has {code}setOutputMarkupId(true){code}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)