-
Notifications
You must be signed in to change notification settings - Fork 14
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
Update README.md #25
base: main
Are you sure you want to change the base?
Update README.md #25
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,22 +11,21 @@ A future-proof port of the `com.google.gwt.editor.Editor` GWT module, with no de | |
For Maven: | ||
|
||
```xml | ||
<dependency> | ||
<groupId>org.gwtproject.editor</groupId> | ||
<artifactId>gwt-editor</artifactId> | ||
<version>HEAD-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.gwtproject.editor</groupId> | ||
<artifactId>gwt-editor</artifactId> | ||
<version>1.0.0-RC1</version> | ||
</dependency> | ||
``` | ||
|
||
and the processor: | ||
|
||
```xml | ||
<dependency> | ||
<groupId>org.gwtproject.editor</groupId> | ||
<artifactId>gwt-editor-processor</artifactId> | ||
<version>HEAD-SNAPSHOT</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.gwtproject.editor</groupId> | ||
<artifactId>gwt-editor-processor</artifactId> | ||
<version>1.0.0-RC1</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
``` | ||
|
||
For Gradle: | ||
|
@@ -83,6 +82,7 @@ GWT Editor depends on the following module: | |
|
||
### the bean | ||
```java | ||
//Note place in *-shared directory | ||
public class Person { | ||
|
||
private int id; | ||
|
@@ -129,6 +129,7 @@ public class Person { | |
> this component uses domino-ui | ||
|
||
```java | ||
//Note place in *-client directory | ||
public class PersonComponent implements IsElement<HTMLDivElement>, Editor<Person> { | ||
|
||
@IsDriver | ||
|
@@ -137,6 +138,7 @@ public class PersonComponent implements IsElement<HTMLDivElement>, Editor<Person | |
|
||
private DominoElement<HTMLDivElement> root = DominoElement.of(div()); | ||
|
||
//Note: Do not create getter/setters for these fields - it will cause a compile issue such as "java.lang.IllegalStateException: generation aborted! No getter exists for >>getId<< -> [Help 1]" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably we should have a bug report for this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great feedback - updated thank you! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug Report Submitted There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think, that there is a problem with the example. Please, take a look at my comment inside the issue. |
||
IntegerBox id; | ||
TextBox name; | ||
CheckBox active; | ||
|
@@ -171,8 +173,8 @@ public class PersonComponent implements IsElement<HTMLDivElement>, Editor<Person | |
} | ||
|
||
@Override | ||
public HTMLDivElement asElement() { | ||
return root.asElement(); | ||
public HTMLDivElement element() { | ||
return root.element(); | ||
} | ||
} | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe specify "client project or package", since not all projects follow that archetype