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

Martin Grigorov resolved WICKET-5248.
-------------------------------------

    Resolution: Fixed

A workaround that can be used until 6.10 is released is to use an extension of 
OnEventHeaderItem:

class MyOnEventHeaderItem extends OnEventHeaderItem {

@Override
public CharSequence getJavaScript()
        {
        StringBuilder result = new StringBuilder();
                result.append("Wicket.Event.add(")
                                .append(getTarget())
                                .append(", \"")
                                .append(getEvent())
                                .append("\", function(event) { ")
                                .append(javaScript)
                                .append(";});");
                return result;
        }
}

response.render(new MyOnEventHeaderItem(...));
                
> OnEventHeaderItem is still broken in 6.9.0
> ------------------------------------------
>
>                 Key: WICKET-5248
>                 URL: https://issues.apache.org/jira/browse/WICKET-5248
>             Project: Wicket
>          Issue Type: Sub-task
>          Components: wicket
>    Affects Versions: 6.9.0
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 7.0.0, 6.10.0
>
>
> WICKET-5234 didn't fix properly the problem described in it.
> It used the JavaScript that handles the event instead of registering the 
> event.

--
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