Hello
I reopen this post to react to this questions.
You are offering a solution to get an exception from the server in the
view.
But maybe some others would like to get the exception in the
controller,
or in the model itself (which is the simplest one).
Anyway, to get the exception in the view , i could keep the exception
in the model like the value, by adding it in the 'ModelForView'
interface.
http://gwt-mvc.googlecode.com/svn/trunk/gwt-mvc/javadoc/0.2/com/googlecode/gwtmvc/client/ModelForView.html
Change the update method in the model, like your wrapper does (The
model is updated by a value OR an error)
Does an error implies to reset the value to null ? I think both
possibilities must be let to the developer, but the default choice
could be 'yes' ?
The view will receive the value and the error onModelChange
(ModelForView<T> model) .
If you are satisfied with this version, i could add it for the next
0.3 release.
François Wauquier