ui:with - calling methods with arguments
I want to dynamically set values to a field in uibinder. I am trying
something like this
<ui:with field="valuesStore" type='x.y.client.ValuesStore' />
and the field is set with value like this
<g:Label text='{valuesStore.getValue}'>Name</g:Label>
and the ValueStore has 2 methods
public String getValue(String key) {
return localizedValues.get(key);
}
public String getValue() {
return null;
}
The problem is i am unable to call the getValue(key). I could only
call the no-args method meaning the following is not possible
<g:Label text='{valuesStore.getValue('name')}'>Name</g:Label>
Please clarify if there is a way to achieve this where i can call a
method with arguments passed to it.
--
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home