Dynamic UI

I have a lot of regular server side components as well as a lot of Panel and CustomComponent implementations using com.vaadin.ui package. Can I use Spring ApplicationContext and Class.forName for them? I knew Vaadin is a server side technology, But it uses GWT. GWT doesn’t support Class.forName.

Thanks,

James

As long as you are talking about server-side code, you can use anything that you want.

GWT doesn’t allow Class.forName in the client-side code because it’s compiled to JavaScript, which obviously doesn’t support the full JVM stack including reflection. The whole idea of having higher-order containers such as Vaadin is to be able to build things server-side from blocks which are already implemented via client-side widgets so that you don’t have to worry about the client-side implementation.