You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-7Lines changed: 20 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,16 +36,15 @@ We took this decision because once demonstrated that polymer elements could be e
36
36
37
37
## Using the GWT library
38
38
39
-
**NOTICE** : We make an extensive use of `JsInterop`, a new feature in `GWT` for easily interacting with JavaScript.
40
-
It was experimental in `GWT-2.7`, and stable in `GWT-2.8.0`, but starting from gwt-polymer-elements-1.2.1.0.beta1, we don't support 2.7.0 anymore or it's legacy JsInterop syntax.
39
+
You need at least GWT-2.8.0 to use the library.
41
40
42
41
### Add vaadin-gwt-polymer-elements to your CLASSPATH
43
42
The `.jar` file includes all the java code and web components of
44
43
Polymer Iron and Paper collections, so as you don't have to deal with the process of downloading and deploying all js wrapped libraries and components.
45
44
46
45
##### Using maven
47
46
48
-
- If your project uses maven add the dependency:
47
+
- If your project uses maven add the following dependency to your `pom.xml`
49
48
50
49
```xml
51
50
<dependencies>
@@ -187,6 +186,10 @@ In summary, for classic and production GWT projects it would be easier to use th
187
186
188
187
## Notes
189
188
189
+
### Java Sources
190
+
If you want to dive into `.java` sources, we don't maintain generated files, thus you need to download the [vaadin-gwt-polymer-elements-x.x.x-sources.jar](http://repo1.maven.org/maven2/com/vaadin/polymer/vaadin-gwt-polymer-elements/) bundle.
191
+
Otherwise you might take a look java helper classes and templates look in the [gwt-api-generator](https://github.com/manolo/gwt-api-generator) project.
192
+
190
193
### Importing Web Components
191
194
Before using any component, you have to import the appropriate files. But `gwt-polymer-elements` comes with some utilities so as you it would be done automatically.
192
195
@@ -212,9 +215,8 @@ In summary, for classic and production GWT projects it would be easier to use th
212
215
```
213
216
214
217
### Asynchronous issues
215
-
Polymer 1.x.x does not allow using custom properties before the web component has been initialized.
216
-
Thus `gwt-polymer-elements` comes with some methods which helps to run callbacks when the component starts ready.
217
-
If you use widgets, the library would be able to deal with properties set very early, but call to some methods could not work
218
+
Web Components could be registered and initialised asynchronously. Thus `gwt-polymer-elements` comes with some methods which helps to run callbacks when the component is actually ready.
@@ -242,6 +244,17 @@ In summary, for classic and production GWT projects it would be easier to use th
242
244
})
243
245
244
246
```
247
+
248
+
### Using latest snapshot
249
+
250
+
Add the following repo to your `pom.xml`, and change the version using the latest listed at in [this url](https://oss.sonatype.org/content/repositories/snapshots/com/vaadin/polymer/vaadin-gwt-polymer-elements/)
@@ -258,4 +271,4 @@ To compile the `vaadin-gwt-polymer-elements` library by yourself.
258
271
1. To run and debug the demo, go to the demo folder `$ cd demo`
259
272
1. Run `$ mvn gwt:devmode` to run the demo in SuperDevMode, otherwise run `$ mvn clean package` to
260
273
build the demo application under `target` directory.
261
-
1.Host the demo either: by running for example `$ serve target/gwt-polymer-demo`(requires [serve](https://npmjs.org/packages/serve)) or deploying the generated `target/gwt-polymer-demo.war`to your favourite servlet container.
274
+
1.You can serve the demo directly from the `target/gwt-polymer-demo`or you can deploy the generated `target/gwt-polymer-demo.war`in a servlet container.
0 commit comments