How to use
ui:data, ui:ph (what's that??), ui:attribute, etc??
In
http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html,
it says
"You can make resources available to your template via the <ui:with>
element, but at the cost of having them instantiated for you."
Is it implying that with @uifactory or @uifield(provided=true),
ui:with is not needed?
because it seems to say
You can use ui:with but it will cost you by having it instantiated for
you but you don't have to use ui:with if you used @uifactory or
@uifield(provided=true).
But if I don't use ui:with, how to get the handle to the @uifactory
or @uifield method?
And btw what then would @uifield(provided=false) do?
I need the template java class source to act as a bean to the ui
template.
Let's say,
ZZTop.java and ZZTop.ui.xml.
ZZBot.java and ZZBot.ui.xml.
ZZLeft ...
public @uiconstructor ZZBot(ZZTop top){
....
}
public @uiconstructor ZZLeft(String city){
....
}
So that, in ZZTop.ui.xml
<gwt:verticalPanel .....>
<ZZBot top="{this}" .../>
<ZZBot top="{this.getCity()}" .../>
</gwt:verticalPanel>
What should I use as argument in place of "this" in top="{this}"?
Do I have to define <ui:with field="this" type="ZZTop"/> ?
Will I be certain that ui:with will not instantiate a new copy of
ZZTop rather than using the current ZZTop?
Where is there a comprehensive documentation for uibuilder, or do I
have to read the code to read the specification?
--
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.