[ 
https://issues.apache.org/jira/browse/WICKET-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carlos Pita updated WICKET-838:
-------------------------------

    Attachment: ChoiceBehaviorPage.java

> AjaxFormChoiceComponentUpdatingBehavior not working
> ---------------------------------------------------
>
>                 Key: WICKET-838
>                 URL: https://issues.apache.org/jira/browse/WICKET-838
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta2
>            Reporter: Carlos Pita
>             Fix For: 1.3.0-beta3
>
>         Attachments: ChoiceBehaviorPage.html, ChoiceBehaviorPage.java
>
>
> I think this is because of its own component field that is hiding that of 
> AbstractAjaxBehavior. Try to run the attached example and you will get:
> WicketMessage: Exception in rendering component: [MarkupContainer [Component 
> id = _header_, page = com.livra.web.user.RegistrationPage, path = 
> 12:_header_.HtmlHeaderContainer, isVisible = true, isVersioned = true]]
> Root cause:
> java.lang.NullPointerException
> at 
> org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior.renderHead(AjaxFormChoiceComponentUpdatingBehavior.java:71)
> at org.apache.wicket.Component.renderHead(Component.java:2266)
> at 
> org.apache.wicket.markup.html.internal.HtmlHeaderContainer$1.component(HtmlHeaderContainer.java:209)
> at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:843)
> at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:858)
> at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:883)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to