In addition to Jens answer: the RequestContext is a queue of invocations and edited proxies. Only when fire()d the RequestContext will flush that queue into an HTTP request.Each invocation can have a Receiver set using Request#to(Receiver), and the RequestContext can have a global Receiver passed to the fire() method (note: its onFailure will only be called when the server cannot be reached or failed to decode the request or encode the response; independently of invocations: each invocation can fail independently of the others, and even if all of them fail, it doesn't make the global Receiver's onFailure to be called)
--To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/wDLQdOYdWT0J.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bWYhohNWCz0J.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9dgB5t-XJIwJ.
@Override
public void onConstraintViolation(
Set<ConstraintViolation<?>> violations) {
Iterator<ConstraintViolation<?>> itr = violations
.iterator();
while (itr.hasNext()) {
ConstraintViolation<?> viola = itr.next();
log.log(Level.WARNING,
"Violation : [ " + viola.getMessage() + ": "
+ viola.getPropertyPath() + " : "
+ viola.getInvalidValue() + " ]");
}
// set the contraints in the editor
view.getEditor().setConstraintViolations(violations);
}
Now the violations are passed onto the editor. In the editor you can
use wrap the controls which needs to display the violation messages
using the ValueBoxEditorDecorator
example :
<e:ValueBoxEditorDecorator ui:field="titleDecorator"
addStyleNames="{style.common.separator10} {style.common.txtClrRed}
{style.common.separatorT}">
<e:valuebox>
<g:TextBox ui:field="title"
addStyleNames="{style.common.textHldr}"/>
</e:valuebox>
</e:ValueBoxEditorDecorator>
Thanks
Ashwin
> <mailto:google-we...@googlegroups.com>.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com
> <mailto:google-web-toolkit%2Bunsu...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.