[
https://issues.apache.org/jira/browse/WICKET-4096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-4096.
-------------------------------------
Resolution: Not A Problem
This seems to be WiQuery problem, not Wicket one.
> AjaxIndicatorAppender.renderHead does not pass Components id in its call of
> renderJavaScript
> ---------------------------------------------------------------------------------------------
>
> Key: WICKET-4096
> URL: https://issues.apache.org/jira/browse/WICKET-4096
> Project: Wicket
> Issue Type: Bug
> Components: wicket-extensions
> Affects Versions: 1.5.0
> Environment: Windows 32bit XP, Tomcat 7, java6 and scala 2.9.1, build
> with Eclipse
> Reporter: Marcus Bosten
> Priority: Minor
> Labels: javascript, wicket
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> In an AjaxEditalbeLabel we set an int - that will reload a dataview with
> number of lines as given in the AjaxEditingLabel.
> In that dataview we use IndicatingAjaxLink to sort the columns. With Wicket
> 1.4.18 that worked well.
> With Wicket 1.5.0 in this scenario, if the AjaxEditalbeLabels onSubmit(...)
> Method is called, an error occurred:
> Root cause:
> java.lang.IllegalArgumentException: Argument 'id' may not be null.
> at org.apache.wicket.util.lang.Args.notNull(Args.java:39)
> at
> org.odlabs.wiquery.core.AbstractWiQueryDecoratingHeaderResponse.renderJavaScript(AbstractWiQueryDecoratingHeaderResponse.java:128)
> at
> org.apache.wicket.extensions.ajax.markup.html.AjaxIndicatorAppender.renderHead(AjaxIndicatorAppender.java:71)
> at org.apache.wicket.Component.renderHead(Component.java:2662)
> at
> org.apache.wicket.ajax.AjaxRequestTarget$3.component(AjaxRequestTarget.java:1256)
>
> ...
> We found that the AjaxIndicatorAppender.renderHead calls the
> org.odlabs.wiquery.core.AbstractWiQueryDecoratingHeaderResponse.renderJavaScript(someJavaScript,
> null)
> The method renderJavaScript expicitly checks if the second parameter is null
> and throws an Error here.
> Imho the AjaxIndicatorAppender.renderHead should pass the components id
> instead of the null.
> By the way: Wicket rocks anyway, but 1.5 is another Highlight!
> Thanks a lot and best Regards,
> Marcus Bosten
--
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