Google Code

Re-Using ".gwt-DialogBox .Caption" in UiBinder, how?

GWT Group - Mon, 06/21/2010 - 00:00
Hi Guys,
I'd really like to re-use the ".gwt-DialogBox .Caption" style outside of a
DialogBox. We have a bunch of widgets and raw html inside UiBinder that we'd
like to have styled the same way (for consistency of course).
Here's a BROKEN example:
<!DOCTYPE ui:UiBinder SYSTEM "[link]">
Categories: Google Code

Re: UIBinder Benefits?

GWT Group - Mon, 06/21/2010 - 00:00
[link]
I think you will have idea of the benefits once you start reading that. :)
Categories: Google Code

UIBinder Benefits?

GWT Group - Mon, 06/21/2010 - 00:00
Does using the UI Binder provide any benefits? I watched some of the I/
O conference, and it seemed like they made reference that the UI
Binder using the browsers native rendering engine (or something like
that), and it being a lot faster, but they didn't really specify
whether that was the layout panels, or using the ui binder.
Categories: Google Code

Re: Programmatic access to inline Styles...?

GWT Group - Mon, 06/21/2010 - 00:00
OK, so the methods defined in MyStyle interface only return class-names
defined in the UiBinder XML. So the proper method is addClassName.
2010/6/20 Jaroslav Záruba <jaroslav.zar...@gmail.com>
Categories: Google Code

Programmatic access to inline Styles...?

GWT Group - Mon, 06/21/2010 - 00:00
Could someone help me understand this please?
widget.getElement().addStyle(" ...");
(taken from Programmatic access to inline
Styles<[link]>
)
The problem is that
*com.google.gwt.user.client.El ement<[link]>
Categories: Google Code

Re: Redirect loop

GWT Group - Mon, 06/21/2010 - 00:00
I ran into it today again, clearing cookies helped. But obviously I hate to
lose all my cookie-based setting because of that. :(
Categories: Google Code

Re: Adding widgets to PagingScrollTable

GWT Group - Mon, 06/21/2010 - 00:00
If you have to use dynamic images, then you have to ask the server for a
proper image to display it with Image.
For example:
String avatarUrl = userProfile.getAvatarUrl(); // it may point to
[link]
Image avatar = new Image(avatarUrl);
but if you want to use a static image resources, then you can take a
Categories: Google Code

Re: Maven is obfuscating and GWT2.1 should not depend on it

GWT Group - Mon, 06/21/2010 - 00:00
2010/6/14 Matthias Groß <f0r7y....@googlemail.com>
Just to make things clear, I hope you're describing your experience with
Roo, right? Why would GWT "absorb flaws from Maven" then? I'm using GWT2.1m1
w/o Roo and I don't use/need Maven.
???
In fact, if Roo requires Maven then I'm not interested anymore. I don't want
Categories: Google Code

Re: server side entry point to open/close database?

GWT Group - Mon, 06/21/2010 - 00:00
Hi Magnus.

Your server-side service implementation is a class that extends GWT's
RemoteServiceServlet, which itself extends the Servlet interface. If
you need to perform once-only initialization, you can do so by
overriding the init() method in your class.

Note, however, that init() is probably a bad place to open database

Categories: Google Code

Adding widgets to PagingScrollTable

GWT Group - Mon, 06/21/2010 - 00:00
Hi,

I would like to add some gwt-widgets (e.g. like images) to
PagingScrollTable from google-web-toolkit-incubator. If my
understanding of it is correct, there must be an attribute in my
object for each cell of a row. So, if want to have widgets in my
table, there must be an attribute for this widget, i.e. there must be

Categories: Google Code

Is it possible to _replace_ element with my widget?

GWT Group - Sat, 06/19/2010 - 00:00
Hi
I know how to insert widget into element...
RootPanel.get("placeholder").a dd(new MyWidget("hello"));
But is it possible to *replace* element with my widget?
I already tried following...
Element placeholder = RootPanel.get("debatePlacehold er").getElement();
placeholder.getParentElement() .replaceChild(commentPanel.get Element(),
Categories: Google Code

Redirect loop

GWT Group - Sat, 06/19/2010 - 00:00
[link] ->
[link]
.............
Seems to be the same with all Google groups. Am I the only one?
Categories: Google Code

Re: Compile and Run gwt web application from Command Line

GWT Group - Sat, 06/19/2010 - 00:00
This is the javadoc for History.getToken() in 2.1:

[link]()
Gets the current history token. The handler will not receive a
ValueChangeHandler.onValueChan ge(com.google.gwt.event.logica l.shared.ValueChangeEvent)

Categories: Google Code

Re: GWT 2.1.0 M1 and Roo development lifecycle. What would you do?

GWT Group - Sat, 06/19/2010 - 00:00
I don't dare teach anyone Roo, I'm yet to try it myself. :) Let me only tell
you that I'm having pretty similar concerns to yours whenever I hear "code
generation". And after watching the video I know I will try it, it has
impressed me enough.
2010/6/19 André Moraes <andr...@gmail.com>
Categories: Google Code

ClickHandler on ListBox. Problems in Safari and Chrome

GWT Group - Sat, 06/19/2010 - 00:00
Hello,

I'm working on a small GWT application, but I'm experiencing a
problem.

When I add a ClickListener to a ListBox there is no functionality in
Safari and limited functionality in Chrome(both browsers in their
newest versions).

However in IE and Firefox everything is working fine so I'm wondering

Categories: Google Code

Re: GWT 2.1.0 M1 and Roo development lifecycle. What would you do?

GWT Group - Sat, 06/19/2010 - 00:00
Jaroslav,

But how can I control the merge process?
In my case the code is generated, than i can edit make any changes in
the generated code (which will be preserved by the safe-code-marks)
and then the GWT compiler (or any other compiler) will compile the
code that i wrote.

I don't really know/use Roo, but I used some code generation tools

Categories: Google Code

Re: GWT 2.1.0 M1 and Roo development lifecycle. What would you do?

GWT Group - Sat, 06/19/2010 - 00:00
Well not exactly like that but it does not mess-up your code irreversibly.
Here is kind-of introduction if you haven't seen it already:
[link]
<[link]>(Don't go fullscreen when watching
the video, there goes a screen-cast under its frame.)
Categories: Google Code

Re: GWT 2.1.0 M1 and Roo development lifecycle. What would you do?

GWT Group - Sat, 06/19/2010 - 00:00
2010/6/18 André Moraes <andr...@gmail.com>
Roo keeps your code untouched. It stores the modifications elsewhere and
merges those files at compilation-time.
Categories: Google Code

Re: GWT 2.1.0 M1 and Roo development lifecycle. What would you do?

GWT Group - Sat, 06/19/2010 - 00:00
I'm not using the integration with Roo, but I dislike the idea of
having a tool that after generating my code difficult to customize the
generated code.

A while ago I wrote a code generator that allows reuse of code and
Retrieval without losing the customizations made.

Through some markings (in comments) in the code the user can define

Categories: Google Code

Re: java.util.Map with Javascript Overlay example?

GWT Group - Sat, 06/19/2010 - 00:00
In JavaScript world, almost everything is a Dictionary.

If you simply need a dictionary, just use a JavaScriptObject.
Here is a example:

public final native void setValue(String key, String value) /*-{
this[key] = value;
}-*/;

private native static JavaScriptObject _createInstance() /*-{

Categories: Google Code
Syndicate content