ImmediateCheckbox (ImmediateUpdateHandler) uses
renderheadInitContribution to make a Javascript contribution to the Page
(immediateCheckBox()). However, the method's Javadoc says :
"Do a one time (per page) header contribution that is the same for all
ajax variant implementations (e.g. Dojo, Scriptaculous). This
implementation does nothing."
This would mean that when you use an ImmediateCheckBox on your page, the
renderHeadInitContribution of all other contrib-dojo components on the
page will be skipped because the implementationId (dojo) has already
made a contribution. For example when you add a ValidationAjaxHandler to
one of forminput's textfields, and you add an ImmediateCheckbox to the
page..... the ImmediateCheckbox will not function.... onbehalf of
missing JavaScript code in the page source.
I think that you should either only use the method to render
contributions which are usefull for the entire implementation (dojo,
scriptaculous), or, let individual components (handlers) set their own
implementationID, so that they can make contributions specific for that
component in stead of the entire implementation....
Marco
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user