Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use other GWT add-ons in the demo UI? #2

Open
xylo opened this issue Aug 20, 2016 · 2 comments
Open

Is it possible to use other GWT add-ons in the demo UI? #2

xylo opened this issue Aug 20, 2016 · 2 comments

Comments

@xylo
Copy link

xylo commented Aug 20, 2016

Great work, Matti! I already converted one of my Highcharts add-on (multi-module project) to your template.

The add-on is a JS component wrapper. Thus, no GWT is involved here. However, for the demo UI I always used the AceEditor for manipulating the JS code describing the chart. I wonder if it's possible to use such GWT add-ons inside a demo UI in combination with your template? Maybe with Vaadin 7.7?

I made several experiments with archetype-vaadin-gwt-addon trying to copy all the GWT relevant stuff to my project, but it did not work. I also tried to use Vaadin 7.7.0.rc1 with "cdn" and "local" in the hope that the widgetset of the AceEditor is loaded from the web or compiled locally. But it seems that the vaadin-maven-plugin does not compile the widgetset for add-ons in scope test. I have to change the scope so that the AceEditor gets compiled.

I admit that I don't know much about the vaadin-maven-plugin and how it works or how it must be configured. Do you have a tip for me?

@mstahv
Copy link
Member

mstahv commented Aug 21, 2016

Hi,

That is bit complicated, but certainly possible. The problem is that vaadin-maven-plugin (~ gwt-maven-plugin), is not very flexible on what it wants to include for the GWT compilation classpath. The workaround is to use plain exec plugin to do the test widgetset compilation. Also you'll need to update the test widgetset manually, but that is pretty easy task (just dig the right gwt module form the add-on jar file you are using).

Here is an example change what needs to be done:
mstahv/addon-project-example-with-add-ons-in-test-uis@b058baa

Let's leave this issue open, if there are many who have the same requirement, let's make this kind of thing the default. Comment here if you also need/want to use add-ons in test UI.

@xylo
Copy link
Author

xylo commented Aug 21, 2016

It works! Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants