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

Igor Vaynberg reassigned WICKET-289:
------------------------------------

    Assignee: Johan Compagner  (was: Igor Vaynberg)

how bout you fix somethin! :)

> It appears urlFor(behavior,interface) is not making the url for the behavior 
> but rather the component the behavior is on
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-289
>                 URL: https://issues.apache.org/jira/browse/WICKET-289
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta1
>            Reporter: Jason Schnitzer
>            Assignee: Johan Compagner
>            Priority: Minor
>             Fix For: 1.4.0-alpha
>
>
> While on IRC Igor gave an example of a behavior: 
> http://papernapkin.org/pastebin/view/4672 to generate an onClick event for a 
> table row.
> The onclick string in this needs to be augmented a bit to: 
> window.location='"+url+"';";
> However, in the end I get a exception:
> WicketMessage: Method onLinkClicked of interface 
> wicket.markup.html.link.ILinkListener targeted at component ..
> java.lang.IllegalArgumentException: object is not an instance of declaring 
> class
>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      at java.lang.reflect.Method.invoke(Method.java:585)
>      at 
> wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:186)
>      at 
> wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>      at 
> wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:89)
>      at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:954)
>      at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:987)
>      at wicket.RequestCycle.step(RequestCycle.java:1068)
>      at wicket.RequestCycle.steps(RequestCycle.java:1142)
>      at wicket.RequestCycle.request(RequestCycle.java:456)
>      at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:263)
>      at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:133)

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