Wednesday, August 18, 2010

Re: How do I set the border around elements in a DockLayoutPanel?

I humbly disagree. You haven't added a feature to your product until
people can actually USE it. On something like this, that means adding
example code and samples showing how it should be used.

One hopes that the people building the features have such code, as
test cases if nothing else. I certainly can't find it, either on the
web site, or in the checked-in project available via SVN.

Seriously: If you were writing DockLayoutPanel, wouldn't one of your
test cases be "Make sure DockLayoutPanel can do everything that
DockPanel does in Showcase"?

Having done that, wouldn't you want your test code added to Showcase,
so potential users could see how to use your shiny new widget?

I'm writing a brand new GWT 2.0 app. And I'm writing it in Quirks
mode, using the non-LayoutPanel panels, because they WORK, and I don't
have the time to waste to try to figure out how to get the
*LayoutPanels to behave. I'm guessing I'm not the only person in that
situation.

On Aug 15, 9:29 am, Thomas Broyer <t.bro...@gmail.com> wrote:
> On 12 août, 19:09, GregDougherty<dougherty.greg...@mayo.edu> wrote:
>
> > The topic pretty much says it all.  I know how to do this for a
> > DockPanel.  How do I do it for a DockLayoutPanel?
>
> > Yes, I know, "use uibinder".  That doesn't work when you're building
> > things grammatically, which is what I'm doing.
>
> I believe getWidgetContainerElement() is designed for this kind of use
> cases.
>
> > BTW, why don't the Showcase application use ANY *LayoutPanels?  I
> > thought they were supposed to be the preferred way to do things, no?
>
> It doesn't use UiBinder either, because both have been added to GWT
> long after the Showcase sample was created. The Mail sample has been
> updated to use layout panels though if you want to see some example.
> Showcase also (still) demonstrates the "old" DockPanel/StackPanel/
> SplitPanel/etc. which should use "quirks mode", whereas layout panels
> should use "standards mode". I guess someone should revisit the
> sample, but it takes time, and having Cell widgets, RequestFactory,
> Activities, etc. ready are probably higher priority (and should IMO
> be).

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate