Grundle,

Whenever things that should obviously be displaying are not, the first
thing I do is dig into the document's structure using a DOM inspector
to see if the elements are even appearing.

If the elements are not there, then there is a procedural problem with
your code.  Maybe you can single-step it in Hosted Mode to see why
your widget is not getting attached.

If the elements are there, then it is usually a styling problem, and
again you can use the DOM inspector to see what styles did actually
get applied, and then trace those back to their source -- a CSS sheet,
or perhaps an inline style that was set in code.

Finally, the code you posted is not the real code of your
application.  This is evident in the way you are using FlexTable as
though its methods were static methods.  If you post code other than a
literal copy/paste of your actual code, you are probably hiding the
best clues anyone could use to find your problem.

Walden

On Sep 29, 1:12 pm, Grundle <[EMAIL PROTECTED]> wrote:
> After trying the suggestion to use pixels instead of percent in the
> flexTable.setWidth() method I have determined that the same error as
> before repeats.
>
> flexTable.setText(0, 0, "foo");
>
> appears easily, but any instance of
>
> flexTable.setWidget(0, 0, new Label("foobar));
>
> where anything is put into the Widget, will not appear.
>
> Any thoughts or advice?
>
> On Sep 29, 11:45 am, Grundle <[EMAIL PROTECTED]> wrote:
>
>
>
> > Srini,
>
> > Thanks I will try that and let you know what happens.  This still does
> > not adequately explain to me why a Text portion will show up, but not
> > a widget, including a Label widget that contains text.  What is
> > different about setText and setWidget that a pixel width setting would
> > make a noticeable difference?
>
> > -Zach
>
> > On Sep 29, 11:28 am, Srini Marreddy <[EMAIL PROTECTED]> wrote:
>
> > > Try setting FlexTable width in pixels instead of 100%.(Some times 100%
> > > of nothing is 0px depending on your layout)
>
> > > flexTable.setWidth("200px");
>
> > > -Srini
>
> > > On Sep 29, 9:59 am, Grundle <[EMAIL PROTECTED]> wrote:
>
> > > > I am currently developing an application where GWT has been the
> > > > primary API.  So far things have gone fairly well until I began trying
> > > > to implement a data entry portion.  I am experience strange behavior
> > > > with FlexTable where if I use
>
> > > > FlexTable.setText(0, 0, "foo");
> > > > FlexTable.setText(0, 1, "bar");
>
> > > > The data shows up as intended.  However if I do
>
> > > > FlexTable.setWidget(0, 0, new Label("FooBar"));
> > > > FlexTable.setWidget(0, 1, new TextBox());
>
> > > > suddenly the components are not appearing on the screen.  I cannot
> > > > figure out why setText data appears, but setWidget does not want to
> > > > render.  I experienced the same behavior using Grid as well, so I am
> > > > at the point where I feel like I have missed something obvious.  I
> > > > feel like I have tried everything, such as TextBox.setVisible() ,
> > > > TextBox.setVisibleSize("5"), FlexTable.setWidth("100%").
>
> > > > This really makes no sense.  As for the other Widgets/Panels that are
> > > > being used see the following:
>
> > > > Specifically I am adding the FlexTable to a VerticalPanel, which is
> > > > then being added to a DockPanel.
>
> > > > i.e.
>
> > > > VerticalPanel.add(FlexTable);
> > > > DockPanel.add(VerticalPanel, DockPanel.CENTER);- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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