I have something like that in my code. I use a
com.google.gwt.user.client.ui.LayoutPanel

   <g:center>
     <g:LayoutPanel ui:field="placeholder" />
   </g:center>

and in java code :

    @UiField
    LayoutPanel placeholder;

    public void setPlaceHolder(IsWidget w)
    {
        placeholder.clear();
        if (w != null) {
            placeholder.add(w);
        }
    }

Hope it will help,
Alexandre.


2011/3/21 HelperMethod <[email protected]>

> I have this simple UiBinder template:
>
> <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent";>
> <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
>    xmlns:g="urn:import:com.google.gwt.user.client.ui">
>    <ui:style>
>
>    </ui:style>
>  <g:DockLayoutPanel unit="EM">
>    <g:north size="10">
>      <g:Label>Header</g:Label>
>    </g:north>
>
>    <g:center>
>      <g:Label ui:field="placeholder"></g:Label>
>    </g:center>
>
>    <g:south size="2.5">
>      <g:Label>Footer</g:Label>
>    </g:south>
>  </g:DockLayoutPanel>
> </ui:UiBinder>
>
> What I would like to do is dynamically replace content in <g:center>
> when application state changes. The problem is, which type of field
> should I use as a placeholder?
>
> --
> 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.
>
>

-- 
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.

Reply via email to