Hi,
hmm, the component is actually no panel but a custom FormComponent (as the original wicket DropDownList). Maybe this could be rewritten as panel but the behaviour of this component is so specific (not using other components) that I would prefer generating markup with java instead of using html markup. But I will check this out and see if it can be used in FormComponents as well.<wicket:head> <script type=\"text/javascript\"> function testFunction(select) { alert(select); } </script> </wicket:head> <wicket:panel> ... </wicket:panel>Add it to your panels markup. Wicket makes sure that it is added only once.. Please see the test cases in /test/src/.... and the wiki as well
Regards, Ralf ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
