ArcBees / GWTP

A complete model-view-presenter framework to simplify your next GWT project.
Other
335 stars 132 forks source link

Use of abstract BatchAction is not well documented #693

Closed matrousse closed 8 years ago

matrousse commented 9 years ago

BatchAction is an abstract class, it is not clear how to use it (and the corresponding handler).

I have found this old post : https://groups.google.com/forum/#!topic/gwt-platform/SEpDbL2tNvY

I have tried to make a UnsecuredBatchAction but BatchAction constructor is package protected...

Chris-V commented 9 years ago

The class is abstract because you need to create your own instance, extend it and then bind the action to the BatchActionHandler on the server side. The empty constructor is package-protected because (as pointed out by the javadoc on it) it is needed for serialization. You need to use the protected overload.

The second post in the thread you posted is still good: https://groups.google.com/d/msg/gwt-platform/SEpDbL2tNvY/CCYLO0d1EwEJ

olafleur commented 9 years ago

@matrousse : did you manage to do what you wanted? If yes, you can close that issue.