Hello Magnolians!

We're looking at writing a couple of modules/extensions for Magnolia - nothing 
really CMS related, more things to interface with our customer's existing IT.

To avoid having to rewrite everything in a few months for magnolia 5, we would 
like to implement the GUIs in Vaadin from the start.

The question is: how?

I've looked at Vaadin, done some tutorials, and have my GUI working outside of 
Magnolia.
I've looked at the new magnolia-module-admincentral-vaadin.

So I have 2 Questions:


1)      What's the right way to integrate new Vaadin-based GUI components?

What I'm doing would have been implemented as a "page" in the old adminCentral. 
Am I correct in assuming that I would extend 
info.magnolia.module.admincentral.components.MagnoliaBaseComponent  to create 
my gui-component, and then simply configure a menu-item with 
view=myviewclassname to provide access to my view from adminCentral's menu?

Do I need to do any special magnolia-related init() or cleanup work in the 
Vaadin component?


2)      I don't want to run the experimental Vaadin-AdminCentral in production 
yet. Can I use Vaadin from within the old adminCentral?

My problem is that I don't want to run Vaadin-Admincentral in production at the 
moment, it's not ready. I'd still like to offer my vaadin-based GUI.

I see the MagnoliaBaseComponent class depends upon prior initialization of the 
AdminCentralVaadinApplication class, and uses the application's layout 
("mainComponent").

I think one approach might be to directly extend CustomComponent for the 
moment, and use my own Vaadin Application class for the moment. By initializing 
it similarily to AdminCentralVaadinApplication I should be able to use the 
existing magnolia-vaadin-theme.
Changing the class to extend MagnoliaBaseComponent should then be fairly easy 
when Magnolia 5.0 comes.

Now one question remains: how add the Vaadin Servlet to the old adminCentral - 
would it be sufficient to create a new servlet mapping under 
config->filters->servlets, say mapped to the URI "/.magnolia/vaadinpreview/*" ?

Thanks for your thoughts and feedback!

Regards from Vienna,

Richard




----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to