Hi all,

I have a view which is supposed to show some components differently based 
on a general view mode (e.g. read-only or write). This view implements 
IsEditor.

For the fields which are supposed to be different depending on this mode, I 
have added @UiField(provided=true) in the Java file and declared them as 
Widget in the UIBinder and Java class. But doing this somehow prevent the 
Driver.flush() method to work for those fields.
Maybe this is because the type is not read at runtime and only rely on what 
was written/declared ?

So I tried to mark them as IsEditor<SomeTypeInCommon> in Java and IsEditor in 
UIBinder but the binding of the view fails with:

Not allowed in an HTML context: <e:IsEditor>

Is there a way through this ? I would like to avoid to write 2 different 
(but very identical) views if possible...


Thanks for your help.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to