Hi Frank,

On 2/2/07, Frank Bille <[EMAIL PROTECTED]> wrote:

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.


The tooltip behavior is just an example of how to use the composite
behavior. As far as I am concerned everyone can create his own tooltip based
on whatever libraries he prefers.

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.


I think it would be useful to have this in wicket core since I think it is
very common to run into a situation where you need to package multiple
behaviors together.

The fact that the code is so small just shows the beauty of wicket and is
not an argument against including it, I think. It's rather the opposite, you
definitely don't want to have big 1000 line classes in the core. A decision
if and where to include it should be based on how common the scenario is
where you need functionality like this.

So where do we put it and how do we decide where to put it? Wicket-core,
wicket-extensions, wiki, or /dev/null?

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
> Wicket-user@lists.sourceforge.net
> 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
Wicket-user@lists.sourceforge.net
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to