Hi,

or simply concatenate the two onclick events into one like...
onclick="alert('test');alert('test2');"
I think this is what was meant.
I thought there are problems with some browsers doing this, but I just tried using Safari / Firefox and it works in both, so my argument might not be valid...

Style merging would include parsing the old styles again, so you get an exception when you try to set the same attributes to different values (but merge for different attributes). This is a thing which is better when it's done once for all attached modifiers...

An AttributeModifier also cannot change more than one attribute, a thing which is bad for a JavaScriptEventModifier... what I want to be able to do is writing something like:

js = new JavaScriptEventModifier();
js.setOnClick("alert('hi');");
js.setOnChange("alert('hi');");
component.add(js);

Same for style where I would like a class which allows setting the attributes using method calls (like setPadding(0,0,0,0)) instead of string semantics... btw: (unrelated to behaviours) I would also like to offer some classes/methods for creating component related javascript (like getJsCodeForGettingValue(someComponent)).

Regards,
Ralf


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to