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

Martin Grigorov resolved WICKET-4996.
-------------------------------------

    Resolution: Not A Problem

public ComponentVisualErrorBehavior(String event) {
        super(event);
        getAttributes().setThrottlingSettings(new 
ThrottlingSettings("feedback", Duration.milliseconds(250), true));
}

The call to getAttributes() here is useless. This setting will be ignored for 
the rendering.
So just remove this line and your app will behave the same as in 6.4.0.

You can contribute to AjaxRequestAttributes only in 
#updateAjaxAttributes(AjaxRequestAttributes)
                
> NPE at 
> AbstractDefaultAjaxBehavior.getAttributes(AbstractDefaultAjaxBehavior.java:136)
> --------------------------------------------------------------------------------------
>
>                 Key: WICKET-4996
>                 URL: https://issues.apache.org/jira/browse/WICKET-4996
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 6.5.0
>            Reporter: Paul
>         Attachments: quickstart.zip
>
>
> I tested Wicket 6.5.0 from 
> https://repository.apache.org/content/repositories/orgapachewicket-146/ with 
> our code and I get a NPE with the following stacktrace:
> java.lang.NullPointerException
>      at 
> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.getAttributes(AbstractDefaultAjaxBehavior.java:136)
>      at 
> com.wicket.ComponentVisualErrorBehavior.<init>(ComponentVisualErrorBehavior.java:13)
>      at com.wicket.TextEditor.<init>(TextEditor.java:11)
> If I ran the same code with Wicket 6.4.0 everything works fine.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to