Import external libray at runtime

Hello,
I would like to use some external libraries at runtime, knowing filename,class name and class members.

This classes should have a GUI and elaboration method.
I was wondering about a
public static Component initUI()
in a JAR file maybe but I cannot import Vaadin Components.

How can I implement this behaviour? Importing another web application maybe?

Thank you very much

Marco

Some are doing something like this using OSGi - see e.g.

http://floriansblog.wordpress.com/2011/06/09/redvaadin-eos-earlyresults/
or
http://www.toedter.com/blog/?p=412
.

However, all the client side code needs to be compiled into a single widgetset in advance, so you have to know in advance which (client-side) add-ons you will be supporting.

Hi marco,

as henri mentioned, we are using OSGi in our redVoodo project to do exactly what you are looking for.

There is a detailed description how to setup an OSGi environment with vaadin addons.

http://redvoodo.wordpress.com/howto/howto-use-vaadin-add-ons/

If you have any questions, feel free to ask.

Cheers, Flo