Re: Insert TabLayoutPanel in a SimplePanel

2012-12-11 Thread tugg
thx a lot for this little gem, Per, this made my day! Apparently simple things seem so complicated in GWT at times, awful... Uwe Am Freitag, 17. Dezember 2010 19:32:51 UTC+1 schrieb Per Gustås: > > Hi Aldo, > > another approach is not to use a SimplePanel at all. But rather to > implement so

Re: Insert TabLayoutPanel in a SimplePanel

2010-12-17 Thread Per Gustås
Hi Aldo, another approach is not to use a SimplePanel at all. But rather to implement something like a SimpleLayoutPanel yourself. It will work fine with xxxLayout components embedded within it. (I really think it is something Google missed to include in GWT 2.1.) Please see below for one impleme

Re: Insert TabLayoutPanel in a SimplePanel

2010-12-16 Thread Subhrajyoti Moitra
As John has already pointed out Line will become On Thu, Dec 16, 2010 at 11:02 PM, Aldo Neto wrote: > Hi Subhro, > > Thanks once again. > > You are right...I have to set the height/width to get the content to be > displayed. However, for some reason, I'm not being able to do that. > > My

Re: Insert TabLayoutPanel in a SimplePanel

2010-12-16 Thread Jeff Larsen
I think you need to add @external gwt-TabLayoutPanelTab; to your

Re: Insert TabLayoutPanel in a SimplePanel

2010-12-16 Thread Aldo Neto
Thanks for your help, but for some reason my UIBinder is not binding the panel to the style part. I'm really running out of ideas, so in case any of you see where I'm wrong, it'll help me a lot. Otherwise I'll have to change my design to not have tabs nested with the forms. My ui.xml file: http:

Re: Insert TabLayoutPanel in a SimplePanel

2010-12-16 Thread John LaBanca
You have to reference the style like this: addStyleNames='{style.mycssstyle}' Thanks, John LaBanca jlaba...@google.com On Thu, Dec 16, 2010 at 12:32 PM, Aldo Neto wrote: > Hi Subhro, > > Thanks once again. > > You are right...I have to set the height/width to get the content to be > displayed

Re: Insert TabLayoutPanel in a SimplePanel

2010-12-16 Thread Aldo Neto
Hi Subhro, Thanks once again. You are right...I have to set the height/width to get the content to be displayed. However, for some reason, I'm not being able to do that. My UIBinder is the following: Tab 1 Test 1 Tab 2 Test 2 As you can see, I

Re: Insert TabLayoutPanel in a SimplePanel

2010-12-16 Thread Subhrajyoti Moitra
either should work. I set in the UIBinder xml the height and width attributes for the TabLayoutPanel widget. U can also use CSS. Define the height/widths in the CSS selector and then do a addStyleNames="mycssstyle" in the uibinder XML Also u can do the same programatically, setWidth and setHeig

Re: Insert TabLayoutPanel in a SimplePanel

2010-12-16 Thread Aldo Neto
Thanks for your reply. Do you mean setting them on the TabLayoutPanel XML declaration or via CSS? If CSS, what classes did you use to set them? Thanks, Aldo On Thu, Dec 16, 2010 at 8:04 AM, Subhrajyoti Moitra wrote: > Try setting Width/Height of the TabLayoutPanel widget to 100%. > I had a simi

Re: Insert TabLayoutPanel in a SimplePanel

2010-12-16 Thread Subhrajyoti Moitra
Try setting Width/Height of the TabLayoutPanel widget to 100%. I had a similar problem, and explicitly setting the height and width solved it. Not sure if this would help you. Thanks, Subhro. On Thu, Dec 16, 2010 at 1:12 AM, Aldo Neto wrote: > Hi all, > > I need to create a TabLayoutPanel and i

Insert TabLayoutPanel in a SimplePanel

2010-12-15 Thread Aldo Neto
Hi all, I need to create a TabLayoutPanel and insert it as part of my editing page. In other words, I'm filling a given form and as part of that form I need some information to display inside the Tabs. I'm using the DockLayoutPanel to split the screen and as part of the center I have a SimplePanel