[
https://issues.apache.org/jira/browse/WICKET-5704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-5704.
-------------------------------------
Resolution: Fixed
Fix Version/s: 7.0.0-M4
6.18.0
Closing the ticket as "Fixed".
Jesse added code to protected from this error. If there is still a problem
please attach a quickstart and we will reopen the ticket.
> IllegalArgument exception with wicket:child in ajaxrequest
> ----------------------------------------------------------
>
> Key: WICKET-5704
> URL: https://issues.apache.org/jira/browse/WICKET-5704
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 6.16.0, 6.17.0
> Reporter: Ted Roeloffzen
> Assignee: Jesse Long
> Fix For: 6.18.0, 7.0.0-M4
>
>
> We have a page in our application with a DataView.
> In this DataView we have an anonymous inner class of a component which has a
> wicket:child-tag.
> When there is ajaxrequest, in our case because we want to go to the next page
> in our dataview, an exception is thrown.
> java.lang.IllegalArgumentException: Argument 'streamOffset' must have a value
> within [0,0], but was 1
> at org.apache.wicket.util.lang.Args.withinRange(Args.java:120)
> at
> org.apache.wicket.markup.AbstractMarkupFragment.find(AbstractMarkupFragment.java:43)
> at
> org.apache.wicket.markup.MarkupFragment.find(MarkupFragment.java:150)
> at
> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.getMarkup(DefaultMarkupSourcingStrategy.java:94)
> at
> org.apache.wicket.MarkupContainer.getMarkup(MarkupContainer.java:451)
> at
> org.apache.wicket.markup.html.panel.AbstractMarkupSourcingStrategy$1.component(AbstractMarkupSourcingStrategy.java:72)
> at
> org.apache.wicket.markup.html.panel.AbstractMarkupSourcingStrategy$1.component(AbstractMarkupSourcingStrategy.java:66)
> I have the feeling that is caused by the fix in the following jira-issue
> https://issues.apache.org/jira/browse/WICKET-5580
> When we remove the wicket:child-tag completely, there is no problem.
> When we change the anonymous inner class, to a nested class and give it an
> html-file with wicket:extend-tags without anything between them, it also
> works.
> I believe that the fix for WICKET-5580, failed to take in account subclasses
> of components that don't need to add markup and therefor don't have their own
> HTML-file.
> I hope I can get around to making a quickstart testcase for this in the next
> couple of days
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)