gwtboot / gwt-boot-samples

GWT Boot: Samples to check all the Starters
Apache License 2.0
40 stars 23 forks source link

Vue Component Template Hot Reload #10

Closed oedemis closed 4 years ago

oedemis commented 4 years ago

Why can the changes not hot reload if i change the code in html template files ?

lofidewanto commented 4 years ago

Did you try to reload the "Jetty" web server from the Swing UI? Because it is HTML and not JavaScript... So we need to reload it from Jetty...

oedemis commented 4 years ago

yes it is not working

lofidewanto commented 4 years ago

I tested following:

lofidewanto commented 4 years ago

In the mean time I asked the VueGWT discussion: https://gitter.im/VueGWT/vue-gwt

I'll inform you when I get the answer.

lofidewanto commented 4 years ago

CounterComponent.html --> from this file you will need to generate the Java files. Afterwards the Java files should be transpiled to JavaScript files. For this purpose we need to activate the APT generator.

These are the generated files:

If you check the file CounterComponentExposedType you can see whether the code is regenerated or not.

So I think it's a matter of running Java APT generator to regenerate the Java classes.

lofidewanto commented 4 years ago

In the meantime I got an answer:

Over there you can use VueGWT plugin for IntelliJ or Eclipse which could notice if you change your HTML files and regenerate the Java files.

lofidewanto commented 4 years ago

That's it, hope it helps you...