Hello all,
I have a widget is sort of a custom implementation of
ValueBoxEditorDecorator.
This widget has a @UiChild method which receives a String for the error
message:
@UiChild(limit=1, tagname="errorMessage")
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
So, in my ui.xml file, I'd like to use a <ui:msg> tag to set the error
message, so that it could eventually be translated.
Obviously, it is not working.
But I can't find a simple tutorial explaining how to make your custom
widget accept the result of <ui:msg>. I've inspected the code of classes
like Label or Button which frequently have <ui:msg> tags inside, but I
can't figure out how they do it. Is it the wrap(Element) static method? I
don't want to wrap anything, actually errorMessage isn't the only child of
my widget...
Does anyone has any tip on how could I implement this?
Thanks,
--
Tiago Rinck Caveden
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.