I also need to understand what means this part of the javadoc com.google.gwt.uibinder.rebind.FieldWriter:
Le dimanche 18 mai 2014 22:01:33 UTC+1, Zied Hamdi OneView a écrit :
-- * A field can have a custom initialization statement, set via
* {@link #setInitializer}. Without one it will be initialized via a
* {@link com.google.gwt.core.client.GWT#create} call. (In the rare case that
* you need a field not to be initialized, initialize it to "null".)
do I have to call setInitializer() with a null value param from com.google.gwt.uibinder.rebind.FieldManager.registerField(String, FieldWriter) ???
Hi all,I have a special need in authorization where I want to control if UiBinder will create or not a widget (I could use visibility visible={roles.admin} in my widgets but I want a smarter solution).I'd like to use the info in ui:field at template parsing and decide whether the field should be created or not: a central singleton will say if yes or no, that element should be created.So is there an extension point where I can centrally intercept the internal widget factory?If the idea is not clear, I'd like to extend a GWT class where I could have a method somehow likepublic void createWidget( Class widgetClass, Widget parent, String uiField )then rebind the default factory interface with mine in the module definition.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment