Hi Erik
I think the ToolTip behaviour would be a good addition to extentions.
However I can see that there is some legal problems since the javascript you
use is under CC which is still much unclear in ASF land. CC ShareAlike is
questionable[1] so I would like os to not use it for now if possible. If you
don't have a chance to change the js into something you wrote yourself or
something that ASL friendly you might create a wiki page for it. It's pretty
straight forward what to do.
In regards to the composite behaviours I'm -0.9 on adding them to core, +0
on adding them to extensions and +1 on adding them to the wiki as an
example. There is not much in it and everyone can create the classes and
have then in there own project.
Frank
[1]:
http://mail-archives.apache.org/mod_mbox/www-legal-discuss/200610.mbox/[EMAIL
PROTECTED]
On 2/2/07, Erik Brakkee <[EMAIL PROTECTED]> wrote:
Hi,
I have encountered a situation where I would like to add more than one
behavior to a component. One example is that of a tooltip where I need a
header contributor to load some javascript and an attibute to contain the
tooltip text.
In wicket you can do this by adding two behaviors to a component. To
support this more generically I have developed a CompositeBehavior that
allows one to combine several behaviors in one.
I have attached an example for a tooltip. The solution consists of the
following classes:
- CompositeBehavior: The basic composite behavior class
- LocalizedCompositeBehavior: The composite behavior class that
supports lazy addition of behaviors. this is useful in case localization is
used which requires the parent component to be known. At construction of the
behavior this might not be known so this component allows subclasses to
create localized behaviors by implementing the createLocalizedBehaviors()
method. This methods is called as soon as the composite behavior is bound to
a component.
- TooltipBehavior: Behavior that adds tooltips. This behavior
requires attribute modifiers as well as header contributions.
Would something like this be useful to add to the wicket core?
Cheers
Erik
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user