DockLayoutPanel and MVP

2010-07-07 Thread xworker
Hi

I want to create a simple app with a DockLayoutPanel with a tree for
navigation west and a content panel center which switches when
selection a node in the tree. I'm using the MVP pattern with
Presenters,Views and ui bindings. All my components work by them selfs
but when I try to load the Dock nothing besides the top is shown.
(north)

this is my ui.xml:

ui:style
.header {
background-color: #00;
}

/ui:style


g:DockLayoutPanel unit='EM'
g:north size='15'
g:Label styleName={style.header}Header/g:Label
/g:north


g:center
g:SplitLayoutPanel
g:west size='15'
contacts:MyTree ui:field=treeView /
/g:west

g:center
contacts:ContactsView 
ui:field='contactsView' /
/g:center
/g:SplitLayoutPanel
/g:center
/g:DockLayoutPanel

What could be wrong?

Thanks

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DockLayoutPanel and MVP

2010-07-07 Thread xworker
Please ignore this... OFC I was using the RootPanel instead of the
RootLayoutPanel.

/A

On 7 Juli, 15:58, xworker blomqvist.andr...@gmail.com wrote:
 Hi

 I want to create a simple app with a DockLayoutPanel with a tree for
 navigation west and a content panel center which switches when
 selection a node in the tree. I'm using the MVP pattern with
 Presenters,Views and ui bindings. All my components work by them selfs
 but when I try to load the Dock nothing besides the top is shown.
 (north)

 this is my ui.xml:

         ui:style
                 .header {
                         background-color: #00;
                 }

         /ui:style

         g:DockLayoutPanel unit='EM'
                 g:north size='15'
                         g:Label styleName={style.header}Header/g:Label
                 /g:north

                 g:center
                         g:SplitLayoutPanel
                                 g:west size='15'
                                         contacts:MyTree ui:field=treeView 
 /
                                 /g:west

                                 g:center
                                         contacts:ContactsView 
 ui:field='contactsView' /
                                 /g:center
                         /g:SplitLayoutPanel
                 /g:center
         /g:DockLayoutPanel

 What could be wrong?

 Thanks

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.