You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Simon Botting (JIRA)" <ji...@apache.org> on 2014/05/19 17:57:37 UTC

[jira] [Created] (WICKET-5596) DropDownChoice#wantsOnSelectionChangedNotifications(T) not being called on unmounted page

Simon Botting created WICKET-5596:
-------------------------------------

             Summary: DropDownChoice#wantsOnSelectionChangedNotifications(T) not being called on unmounted page
                 Key: WICKET-5596
                 URL: https://issues.apache.org/jira/browse/WICKET-5596
             Project: Wicket
          Issue Type: Bug
    Affects Versions: 6.15.0, 6.14.0
         Environment: Windows 7, Jetty, Wicket 6.14.0 & Wicket 6.15.0 Java 1.6 
            Reporter: Simon Botting


I posted on nabble about this here: 
http://apache-wicket.1842946.n4.nabble.com/wantsOnSelectionChangedNotifications-RadioGroup-Radio-vs-DropDownChoice-td4665927.html

Essentially on an unmounted bookmarkable page (one that you access directly through: wicket/bookmarkable/package.name.ClassName)
the DropDownChoice#wantsOnSelectionChangedNotifications(T) does not seem to be called.

Having looked at the internals a bit, it seems that the onchange handler is not setting a variable that resolves properly to any ListenerInterfaceRequestHandler
e.g.: 
the onchange is: 

document.getElementById(&#039;form6_hf_0&#039;).value=&#039;../../page?2-1.IOnChangeListener-form-vegetable&#039;;document.getElementById(&#039;form6&#039;).submit();

but should be something like: 
document.getElementById(&#039;form6_hf_0&#039;).value=&#039;./wicket_issue_4.FormPage?2-1.IOnChangeListener-form-vegetable&#039;;document.getElementById(&#039;form6&#039;).submit();

That's just my initial thought, I'm no expert.  

Please look at the posting on nabble // Wicket Users Forum for more contextual information



--
This message was sent by Atlassian JIRA
(v6.2#6252)