Friday, September 30, 2011

Re: GWT Developer Plugin for Firefox 6

Um...  OK... As much as I hate to be the one to throw gasoline on the fire here...  FF 7?  GWT plug-in is disabled again when the update happens.

[Come to think of it, what exactly is the deal with all of these FF updates?  I seem to recall using FF3.6 just about a year ago.]

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/UWSOPrnBN1UJ.
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.

CAS SSO

I'm working on a proof-of-concept in an effort to persuade my shop to
move at least some of our development-efforts from other frameworks
over to GWT.

But one of the requirements is that our apps have to be able to
authenticate against our CAS-server.

I have tried mocking-up the web.xml similar to how we do it in our
other apps but I keep running into problems.

Has anyone else successfully incorporated CAS-authentication into a
GWT-app?
If so, any tips would be greatly appreciated.

--
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.

Re: GWT Developer Plugin for Firefox 6

Firefox is talking about the version 10 by Nov 8,2011 (https://wiki.mozilla.org/Releases#Firefox_10)

Whats the plan for the GWT dev plug-in development?

Do you guys have any news on how this plug-in is going to cope up with this crazy release cycles of Firefox?


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/uy3u4YwObNUJ.
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.

Re: GWT 2.4 CellTable issue

Here's a better example:

Running this code works fine in GWT 2.3 but throws the exception in
GWT 2.4

CellTable<String> table = new CellTable<String>();

table.addColumn(new TextColumn<String>() {
@Override
public String getValue(String object) {
return object;
}
}, "Col");

List<String> list = new ArrayList<String>();
list.add("abc");
list.add("def");
table.setRowData(list);

NodeList<Element> els =
table.getElement().getElementsByTagName("THEAD");
if (els.getLength() == 0) {
return;
}

final Element e = els.getItem(0);
e.removeFromParent();

--
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.

Issue with Overlay Types and JSON structure.

Hi guys,

I have a question about overlay types. I have a JSON with the
following structure:

"styles" : {
"property1" : "value1",
"property2" : "value2"
}

and I defined a method like:

public final native JsMap<String, String> getStyles() /*-{
return this.styles;
}-*/

When I call the getStyles method from my application I get an instance
of JsMap<String,String> but it have only the keys, I mean when I call
the keys() methods I returns an array of strings with property1 and
property2, wich is Ok, but when I make a call to the get("property1")
or get("property2") method, that keys return always null.

I don't know if there is an error on the JSON structure and if it is
match with, what the JsMap object expect. I think that is a simple
structure, but effectively I am missing something.

Cheers!.
M.

--
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.

GWT Developer Plugin for Firefox 6.0.2

I was just forced to upgrade to Firefox 6.0.2. However, I'm unable to
find a GWT Developer Plugin for Firefox 6.0.2. Where can I find it?

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-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.

Re: GWT and IE8

Okay after hours for trying out different things I found out that the
problem should be something with RPC calls.
So if a RPC call is being executed I get the java script error. Then I
reload the the site and execute the RPC call again => it works.
I hope someone can help me further.

On Sep 30, 4:44 pm, mkn <m.kho...@gmail.com> wrote:
> to add some more information:
> I think there is something wrong with the cache. Because when I clear
> the cache, then it works. But then when I visit the page once again, I
> get the java script error. And then, when I click on the refresh
> button of the IE Browser, it works again.
>
> On Sep 30, 3:12 pm, mkn <m.kho...@gmail.com> wrote:
>
>
>
>
>
>
>
> > > No, it'll be worse.
>
> > > Juan Pablo asked you *whether* you were doing such things (because that
> > > could have triggered the issue), not that you change you module.
>
> > So the answer would be no, I haven't modified anything. How can I
> > found out what this function does (because obviously it throws the
> > Exception):
>
> > function entry_0(jsFunction){
> >   return function(){
> >     try {
> >       return entry0(jsFunction, this, arguments);
> >     }
> >      catch (e) {
> >       throw e;
> >     }
> >   }
> >   ;
>
> > }
>
> > On Sep 30, 10:45 am, Thomas Broyer <t.bro...@gmail.com> wrote:
>
> > > On Friday, September 30, 2011 9:02:46 AM UTC+2, mkn wrote:
>
> > > > Now I have only the line:
> > > > <set-property name="user.agent" value="gecko1_8"/>
>
> > > > I'm not so sure why this should fix the problem.
>
> > > No, it'll be worse.
>
> > > Juan Pablo asked you *whether* you were doing such things (because that
> > > could have triggered the issue), not that you change you module.
>
> > > > By specifying that
> > > > line I speed up the compiler because it doesn't compile all the
> > > > versions anymore.
> > > > If run my application in IE8 now, then I just see a blank page and no
> > > > sign indicating any java script errors. However, when I click on the
> > > > refresh button. I get an error box with message: " ERROR: Possible
> > > > problem with your *.gwt.xml module file. The compile time user.agent
> > > > value (gecko1_8) does not match the runtime user.agent value (ie8).
> > > > Expect more errors.
>
> > > Yes, you only compiled for Firefox, so its' no longer working in other
> > > browsers (IE, Chrome/Safari, Opera)
>
> > > P.S. If it helps you I can send you the link to the application.
>
> > > That could help, yes.

--
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.

Re: [RequestFactory] Updating a proxy

On 30 September 2011 00:54, Thomas Broyer <t.broyer@gmail.com> wrote:
> Why would BasicUserService ( = GizmoService?) be called if you invoke
> UserRequest#persist(UserProxy) ( = ThingRequest#persist(ThingProxy) ?)

Because BasicUserProxy is part of UserProxy.

> It's hard to follow what you're expecting given that you switched from
> thing/gizmo/setSomething to [something-else]/user/basicUser/set[what?]

I wanted to keep it generic but see below.

> Could you post the actual code that led to the request whose payload you
> posted already?

Here you go:

final UserRequest userRequest =
domainRequestApi.getRequestBuilder().newUserRequest();
final UserProxy mutableUser =
userRequest.edit(domainRequestApi.getCache().getCurrentUser());
final BasicUserProxy mutableBasicUser = mutableUser.getBasicUser();
final int level = mutableBasicUser.getLevel();
final int basicCurrencyDelta = ...;
final int premiumCurrencyDelta = ...;
final int newLevel = level + 1;
final String comment = "Level Up to Level " + newLevel + ".";
mutableBasicUser.setLevel(newLevel);
final Receiver<Integer> levelUpReceiver = new LevelUpReceiver(...,
mutableUser, comment, basicCurrencyDelta, premiumCurrencyDelta);
userRequest.persist(mutableUser).fire(levelUpReceiver);

LevelUpReceiver's onSuccess simply fires some events, including one
that sends out the by then presumably updated UserProxy (hence the
mutableUser in the constructor).

Given that BasicUserProxy is part of UserProxy, I would expect its
changes to be stored, i.e. I expect the entire object graph that is
UserProxy to be stored (as necessary).

Just to be complete:

@ProxyForName(value = "com.company.domain.api.User", locator =
"com.company.domain.service.api.UserService")
public interface UserProxy extends EntityProxy
{
BasicUserProxy getBasicUser();
void setBasicUser(BasicUserProxy basicUser);
... a few others ...
}

@ProxyForName(value = "com.company.domain.api.BasicUser", locator =
"com.company.domain.service.api.BasicUserService")
public interface BasicUserProxy extends EntityProxy
{
int getLevel();
void setLevel(int level);
... a few others ...
}

In very short pseudo code, what I want to happen is the following:

User.BasicUser.Level := User.BasicUser.Level + 1;
Persist User (or BasicUser, I don't care);
Make sure that User.BasicUser.Level == BasicUser.Level, i.e. User's
BasicUser should be the newly updated one.

(I've tried persisting User but then BasicUser's changes are ignored;
persisting BasicUser works but then User references an outdated
BasicUser; I tried using the Editor framework but that didn't make any
difference either.)

--
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.

Testing GWT Touch in Android browsers

I put together a simple applet implementing Touch-related event
handlers on a Canvas element, to test support for Touch in various
browsers on my Android Honeycomb tablet (Toshiba Thrive). I posted
the results on my Wordpress blog:

http://cs.jsu.edu/wordpress/?p=346

I was actually somewhat shocked at how bad the results were: of 5
browsers tested (counting Firefox and Firefox Beta separately even
though they behaved identically), none got everything right and only 1
browser, the (Chrome-based) default Android browser, passed 3 out of 4
of my tests. Firefox only passed 1 test, and Opera failed every test.

None of the browsers passed the last test, but to be honest, I can't
really say it was a fair test, since the problem may not even be the
browsers. I set up the Canvas to respond also to mouse events, with a
visual difference between mouse events and touch events, then tried to
use a Bluetooth mouse with the Canvas. All of the browsers seemed to
treat the mouse events as single-touch events. The OS may be sending
these to the browser as touch events, though.

I would like to pass these results along to some of the browser
development forums, too, but I'm not sure which forums would be
appropriate.

--
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.

UiBinder Maps

Hi I'm trying to use Google Maps in my project so I add
<inherits name='com.google.gwt.maps.GoogleMaps' />
in the gwt.xml file. I use deferred binding for create the UI and the
View.ui.xml file's code is:
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:p1="urn:import:com.google.gwt.user.cellview.client"
xmlns:p2="urn:import:com.google.gwt.maps.client">

<ui:style>
.important {
font-weight: bold;
}
</ui:style>
<g:VerticalPanel ui:field="rootPanel" width="100%" height="100%">
<p2:MapWidget ui:field='map' />
</g:VerticalPanel>
</ui:UiBinder>

The View.java file's code is:
import com.google.gwt.core.client.GWT;
import com.google.gwt.maps.client.MapWidget;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.MenuBar;
import com.google.gwt.user.cellview.client.CellTable;

public class View extends Composite {

private static ViewUiBinder uiBinder = GWT
.create(ViewUiBinder.class);
@UiField VerticalPanel rootPanel;
@UiField MapWidget map;

interface ViewUiBinder extends UiBinder<Widget, View> {
}

public View() {
initWidget(uiBinder.createAndBindUi(this));
}
}

The problem is when i switch from the code view to the design view
elipse show me this error:
Error loading module(s).

GWT Designer can't load a module because of error in gwt.xml module
description, incorrect resource which requires processing with GWT
generator or by some other configuration error.

Please check your $project_dir/.gwt/.gwt-log for GWT-specific errors.

This log has the following error messages:

[ERROR] Failed to create an instance of
'com.google.gwt.maps.client.MapWidget' via deferred binding


Show stack trace.
Hide stack trace.

Stack trace:
org.eclipse.wb.internal.core.utils.exception.DesignerException: 4108
(Error loading module(s).).
[ERROR] Failed to create an instance of
'com.google.gwt.maps.client.MapWidget' via deferred binding.

The Google Maps API's version is gwt-maps-1.1.1-rc1.jar.

I would like to know what I doing wrong.??
Is the Google Maps API version the lastest version??

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-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.

Re: Add style for even row and add row in cellTable.

If you use a global CSS file, you can do this:

.cellTable tr : even {
color: red;
}

Similarly for odd rows. Then all you need is to assign cellTable style
to your table.

--
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.

Re: RequestFactory and JSR 303 validator behavior customization

You can turn validation off (or customize it) in RF using a ServiceLayerDecorator.

If you want, using the same approach, you could also implement some kind of "validate the arguments of this method before calling it" (triggered, or disabled, by an annotation on the method) but then you couldn't trigger an onConstraintViolations on the client, only an onFailure for that particular invocation.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/685mmVl8tIsJ.
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.

Re: CellSampler

DataGrid is from GWT 2.4: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/cellview/client/DataGrid.html

Everything else is in the sample's code (PendingChange, BirthdayChange, CategoryChange, etc.) or in the ContactDatabase.java (Category, ContactInfo, DatabaseConstants)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/b7SKhrErJRAJ.
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.

Re: GWT Designer and Google Maps

In general, you can add new GWT widgets to the palette by using the palette context menu or the Palette Manager.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/vR3XcjdkD7gJ.
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.

CellSampler

I'd like to reiterate the sentiment in this message:

http://groups.google.com/group/google-web-toolkit/browse_frm/thread/34aaaefe6c35a7f5/ed4fb0378cbf88d2?lnk=gst&q=cellsampler#ed4fb0378cbf88d2

The CellSampler code is difficult to understand. The sample is here:

http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler

I'm not even sure if it will compile. It refers to a DataGrid, which I
can not find anywhere. It also refers to a CategoryChange class,
which I can not find. Has this been kept up to date? Where can I
find DataGrid and CategoryChange? They don't appear in the gwt
javadoc.

This would be a great example if it were simpler to understand.

Mike

--
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.

ScrollPanel

Hi,

I should like to customize a ScrollPanel, and particulary the
scrollbar in order to have a beautiful scollbar.
For example: remove the 2 buttons for the vertical scrollbar(top and
bottom)
or
change the background color of the scrollbar


--
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.

visualization API and Shape Markers Option

Hi to all,
i want to use Shape markers described in this
http://code.google.com/intl/it-IT/apis/chart/image/docs/gallery/line_charts.html#gcharts_background_fills
I can't succeed to use Options class to set the property chm to use
markers like arrow,

USAGE
chm=

[@]<marker_type>,<color>,<series_index>,<opt_which_points>,<size>,<opt_z_order>,<opt_offset>


I tryed this code

LineChart.Options options = LineChart.Options.create();
options.setWidth(800);
options.setHeight(540);
options.setTitle("PREM");
options.set("chm", "c,FF0000,0,1.0,20.0");
return options;


It doesn't works. Can anyone help me?

thaks

--
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.

Re: GWT Developer Plugin for Firefox 7

Can you upload it to svn or somewhere?


2011/9/30 wbabachan <wbabachan@googlemail.com>
It works for me too. Ubuntu 11.04 x86_64 But I got xullrunner 7.0.1

--
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.


--
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.

Re: GWT and IE8

to add some more information:
I think there is something wrong with the cache. Because when I clear
the cache, then it works. But then when I visit the page once again, I
get the java script error. And then, when I click on the refresh
button of the IE Browser, it works again.

On Sep 30, 3:12 pm, mkn <m.kho...@gmail.com> wrote:
> > No, it'll be worse.
>
> > Juan Pablo asked you *whether* you were doing such things (because that
> > could have triggered the issue), not that you change you module.
>
> So the answer would be no, I haven't modified anything. How can I
> found out what this function does (because obviously it throws the
> Exception):
>
> function entry_0(jsFunction){
>   return function(){
>     try {
>       return entry0(jsFunction, this, arguments);
>     }
>      catch (e) {
>       throw e;
>     }
>   }
>   ;
>
> }
>
> On Sep 30, 10:45 am, Thomas Broyer <t.bro...@gmail.com> wrote:
>
>
>
>
>
>
>
> > On Friday, September 30, 2011 9:02:46 AM UTC+2, mkn wrote:
>
> > > Now I have only the line:
> > > <set-property name="user.agent" value="gecko1_8"/>
>
> > > I'm not so sure why this should fix the problem.
>
> > No, it'll be worse.
>
> > Juan Pablo asked you *whether* you were doing such things (because that
> > could have triggered the issue), not that you change you module.
>
> > > By specifying that
> > > line I speed up the compiler because it doesn't compile all the
> > > versions anymore.
> > > If run my application in IE8 now, then I just see a blank page and no
> > > sign indicating any java script errors. However, when I click on the
> > > refresh button. I get an error box with message: " ERROR: Possible
> > > problem with your *.gwt.xml module file. The compile time user.agent
> > > value (gecko1_8) does not match the runtime user.agent value (ie8).
> > > Expect more errors.
>
> > Yes, you only compiled for Firefox, so its' no longer working in other
> > browsers (IE, Chrome/Safari, Opera)
>
> > P.S. If it helps you I can send you the link to the application.
>
> > That could help, yes.

--
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.

GWT 2.4 CellTable issue

Upgrading from GWT 2.3 to 2.4 caused a client-side exception in a
class of mine that extends CellTable. There has been no loss of
functionality, but the exception is a constant development annoyance.

com.google.gwt.core.client.JavaScriptException: (TypeError):
this.insertBefore is not a function

I've identified the line that causes this, though the exception
doesn't get thrown until the table is rendering later. In a row change
handler, MyCellTable removes the header Element when there are no rows
in the CellTable. Here's the code from inside the RowCountChangeEvent:

if (event.getNewRowCount() == 0) {
NodeList<Element> els =
getElement().getElementsByTagName("THEAD");
if (els.getLength() == 0) {
return;
}

Element headerElement = els.getItem(0);

headerElement.removeFromParent();
}

Downgrading to GWT 2.3 fixes the problem. I tried calling
headerElement.setAttribute("style", "display: none") instead of
removing the element, but that doesn't look the same (it still keeps a
few pixels there). I'm aware that creating a CellTable and then
ripping out pieces of it is probably a bad practice.

Are there any known changes in GWT 2.4 that could be causing this
problem? Can anyone think of a workaround?

--
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.

Re: Module Load Failure with GWT 2.4.0 (but not with 2.3.0)

See this pom.xml and fow define gwt-maven-plugin.

PD: The gwt-user jar you must put in scope provided.


2011/9/30 K H <konrad@gmx.at>
I use GWT with Maven and with GWT 2.3.0, "mvn clean gwt:run" works without problems.
When I upgrade to GWT 2.4.0 however, I get an "Module Load Error" (see linked image).

The GWT Version is controled by the following excerpt from my pom.xml:

    <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-servlet</artifactId>
            <version>${gwtVersion}</version>
        </dependency>
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-user</artifactId>
            <version>${gwtVersion}</version>
            <scope>compile</scope>
        </dependency>

gwtVersion is defined as either "2.3.0" or "2.4.0".
How can I get rid of the error while still using an up-to-date GWT?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/vcVn_DsuzLEJ.
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.

--
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.

Module Load Failure with GWT 2.4.0 (but not with 2.3.0)

I use GWT with Maven and with GWT 2.3.0, "mvn clean gwt:run" works without problems.
When I upgrade to GWT 2.4.0 however, I get an "Module Load Error" (see linked image).

The GWT Version is controled by the following excerpt from my pom.xml:

    <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-servlet</artifactId>
            <version>${gwtVersion}</version>
        </dependency>
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-user</artifactId>
            <version>${gwtVersion}</version>
            <scope>compile</scope>
        </dependency>

gwtVersion is defined as either "2.3.0" or "2.4.0".
How can I get rid of the error while still using an up-to-date GWT?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/vcVn_DsuzLEJ.
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.

Re: GWT Developer Plugin for Firefox 7

It works for me too. Ubuntu 11.04 x86_64 But I got xullrunner 7.0.1

--
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.

Re: GWT 2 Servlet

See http://code.google.com/intl/es-419/webtoolkit/doc/latest/DevGuideServerCommunication.html

2011/9/30 Navindian <navindian@gmail.com>
Hi foks,
 
I wish to have GWT component talk to a Servlet. Any quick suggestion?
 
Thanks
Naveen Gayar

--
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.

--
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.

GWT 2 Servlet

Hi foks,
 
I wish to have GWT component talk to a Servlet. Any quick suggestion?
 
Thanks
Naveen Gayar

--
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.

RequestFactory and JSR 303 validator behavior customization

Hi all,

My project has some Entities stored in Mysql and we are using Hibernate Validator as JSR 303 implementation.

My problem is that GWT ServiceLayerDecorator considers that any operations on the database need a complete validation on the objects, even delete (in my case).

Maybe it would be nice if we had the possibility to choose "FOR A GIVEN METHOD" declared in a RequestContext to skip the validation and just execute the method, bypassing the validation.
(maybe with a @ValidatorPolicy(ValidatorPolicy.SKIPPED))

Even if I'm conscious that my DB should not be invalid toward my validators,it is very embarrassing because it need a intervention directly on the DB (validators block the GWT user and even a Administrator could not repair the damages done in the DB through my app).

What do you think about this ?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/qJfh_gGGi4IJ.
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.

Re: GWT and IE8

> No, it'll be worse.
>
> Juan Pablo asked you *whether* you were doing such things (because that
> could have triggered the issue), not that you change you module.

So the answer would be no, I haven't modified anything. How can I
found out what this function does (because obviously it throws the
Exception):

function entry_0(jsFunction){
return function(){
try {
return entry0(jsFunction, this, arguments);
}
catch (e) {
throw e;
}
}
;
}

On Sep 30, 10:45 am, Thomas Broyer <t.bro...@gmail.com> wrote:
> On Friday, September 30, 2011 9:02:46 AM UTC+2, mkn wrote:
>
> > Now I have only the line:
> > <set-property name="user.agent" value="gecko1_8"/>
>
> > I'm not so sure why this should fix the problem.
>
> No, it'll be worse.
>
> Juan Pablo asked you *whether* you were doing such things (because that
> could have triggered the issue), not that you change you module.
>
> > By specifying that
> > line I speed up the compiler because it doesn't compile all the
> > versions anymore.
> > If run my application in IE8 now, then I just see a blank page and no
> > sign indicating any java script errors. However, when I click on the
> > refresh button. I get an error box with message: " ERROR: Possible
> > problem with your *.gwt.xml module file. The compile time user.agent
> > value (gecko1_8) does not match the runtime user.agent value (ie8).
> > Expect more errors.
>
> Yes, you only compiled for Firefox, so its' no longer working in other
> browsers (IE, Chrome/Safari, Opera)
>
> P.S. If it helps you I can send you the link to the application.
>
> That could help, yes.

--
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.

DataGrid Issue : Deferred binding failed for 'com.google.gwt.user.client.ui.NativeHorizontalScrollbar.ResourcesTransparant'; expect subsequent failures

Hi all,

I just update my GWT version to the newest version : 2.4.
I have tried to create a DataGrid in a DialogBox, and i got the error
below :

[DEBUG] [visu] - Rebinding
com.google.gwt.user.client.ui.NativeHorizontalScrollbar.ResourcesTransparant
[DEBUG] [visu] - Invoking generator
com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
[DEBUG] [visu] - Preparing method nativeHorizontalScrollbarStyle
[DEBUG] [visu] - Parsing CSS stylesheet jar:file:/D:/Documents/
eclipse/plugins/
com.google.gwt.eclipse.sdkbundle_2.4.0.r36v201109211906/gwt-2.4.0/gwt-
user.jar!/com/google/gwt/user/client/ui/
NativeHorizontalScrollbarTransparent.css
[ERROR] [visu] - Unable to parse CSS
[INFO] [visu] - The following problems were detected
[WARN] [visu] - Line 1 column 12: encountered "_". Was expecting
one of: "}" "+" "-" "," ";" "/" <STRING> <IDENT> <NUMBER> <URL>
<PERCENTAGE> <PT> <MM> <CM> <PC> <IN> <PX> <EMS> <EXS> <DEG> <RAD>
<GRAD> <MS> <SECOND> <HZ> <KHZ> <DIMEN> <HASH> <IMPORTANT_SYM>
<UNICODERANGE> <FUNCTION>
[ERROR] [visu] - Deferred binding failed for
'com.google.gwt.user.client.ui.NativeHorizontalScrollbar.ResourcesTransparant';
expect subsequent failures
[ERROR] [visu] - Uncaught exception escaped

If I replace DataGrid by CellTable, it works great.
Could you please have a look ?

It seems that there is an issue linked to the transparent scrollbar.
It there any possibility to use standard scrollbar instead ?

Thanks in advance !
Stephane


I have another issue ( smaller ) to report : in the GWT 2.4 javadoc,
the DataGrid object has exactly the same example code as the CellTable
object ->( I suppose that it's a bad copy paste )

--
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.

Gwt stream version.

GWT RPC Request contains stream version. Now stream version is 5. May
be somebody knows how can I get stream version from code?

--
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.

Re: Add style for even row and add row in cellTable.

There are three ways to add style to celltable
1. Global css
2. Inline Style sheet using UiBinder
3. Using CellTable.Resources

Extend the CellTable.Resources interface and specify the
CellTableStyle.css in source attribute. I send the code segment of
CellTable.Resources used in CellTable.

// In .java file use the below code. CellTableStyle.css file in your
project directory.

interface TableResources extends CellTable.Resources
{
@Source(value = { CellTable.Style.DEFAULT_CSS,
"CellTableStyle.css" })
CellTable.Style cellTableStyle();
}

//add CellTableStyle.css in cellTable

CellTable<Your_domain_class> result = new CellTable(15,
GWT.<TableResources> create(TableResources.class));

//CellTableStyle.css

.cellTableCell
{
height: 20px;
padding: 2px 25px;
}

.cellTableHeader
{
height: 20px;
border-bottom: 2px solid #60a6bf;
}

.cellTableEvenRow
{
background: #fffaf0;
border:solid 1px red;
}

.cellTableEvenRowCell
{
border:solid 1px green;
}

.cellTableOddRow
{
background: #fff8e8;
}

.cellTableOddRowCell
{
border:solid 1px red;
}

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

--
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.

Re: how to give a external link inot a samrtgwt portlet

For external link please use following code

com.google.gwt.user.client.ui.Anchor lAncInvoiceNo = new
com.google.gwt.user.client.ui.Anchor("Google", false);
lAncInvoiceNo.addClickListener(new ClickListener() {
public void onClick(Widget w) {

//TODO--Your code -- Like
Window.open("href://www.google.com");
}
});

On Sep 30, 9:35 am, yashujn <yashssharma@gmail.com> wrote:
> hi ,
>         please tell me how to give a external link into a smartgwt
> portlet....
>
> i mean to say like in gwt we use this:
>
> String link = "http://code.google.com/webtoolkit";
> HTML html = new HTML("<a href=\"" + link + "\">GWT Website</a>");
> RootPanel.get().add(html);
>
> if I use this in smartgwt then link is appear in the protlet but when
> i move the portelt from one column to other column then portlet is
> disappeared ..............
>
> somebody plz help me.........

--
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.

Add style for even row and add row in cellTable.

I created a cellTable having more number of rows and columns. I wana
add background color for each row in celltable. Shall I change the
property in celltable? Help me.

--
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.

Re: FlexTable border and TabPanel

Hi,

Thanks for your help.
I try run it and the tab panel is working.
For the border I see the different border fot the cell but I don't see
the any border for the row.
Do you have any idea why is that ?

BTW - how can I send a screenshot ?

Thanks

On Sep 29, 3:35 pm, Sudhakar Abraham <s.abra...@datastoregwt.com>
wrote:
> You didn't add the border property in .FlexTable-diffPrev
> and .FlexTable-diffCurr.
>
> Add your FlexTable style property in global css file. The global css
> file name should be your_Project.css  in your project  /war
> directory.  About your TabPanel problem, I send the edited  code
> segment of your existing code.
>
> S. Abrahamwww.DataStoreGwt.com
> Persist objects directly in GAE
>
> // Corrected code.
>
> public void onModuleLoad() {
>
>         TabPanel tabPanel = new TabPanel();
>         FlowPanel flowPanel = new FlowPanel();
>
>         FlexTable flexTable1 = new FlexTable();
>         flexTable1.addStyleName("FlexTable");
>
>         HTMLTable.RowFormatter rf = flexTable1.getRowFormatter();
>         for(int i = 0; i < 6; i+=2)
>         {
>                 rf.addStyleName(i, "FlexTable-PrevRow");
>                 rf.addStyleName(i+1, "FlexTable-CurrRow");
>                 flexTable1.setText(i, 0, "Text1"+i);
>                 flexTable1.setText(i, 1, "Text2"+i);
>                 flexTable1.setText(i+1, 0, "Text1"+i);
>                 flexTable1.setText(i+1, 1, "Text4"+i);
>                 flexTable1.getCellFormatter().addStyleName(i,
> 1,"FlexTable-diffPrev");
>                 flexTable1.getCellFormatter().addStyleName(i+1,
> 1,"FlexTable-diffCurr");
>         }
>
>         flowPanel.add(flexTable1);
>         tabPanel.add(flowPanel,"FlexTable");
>         tabPanel.selectTab(0);
>         tabPanel.setSize("500px", "250px");
>         tabPanel.addStyleName("table-center");
>         RootPanel.get().add(tabPanel);
>
> }
>
> // Corrected css file.
>
> .FlexTable
>  {
>   border-top: thin solid #444444;
>   border-left: thin solid #444444;
>   border-right: thin solid #111111;
>   border-bottom: thin solid #111111;
>
> }
>
> .FlexTable-PrevRow
> {
>   border-bottom: solid 1px red;
>
> }
>
> .FlexTable-CurrRow
>  {
>   border-bottom: dashed 1px blue;
>
> }
>
> .FlexTable-diffPrev
> {
>   color: blue;
>   border-bottom: solid 1px red;
>
> }
>
> .FlexTable-diffCurr
>  {
>   color:  red;
> border-bottom: solid 1px green;
>
>
>
>
>
>
>
> }

--
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.

Re: FlexTable border and TabPanel

Hi,

Thanks for your help.
I try run it and the tab panel is working.
For the border I see the different border fot the cell but I don't see
the any border for the row.
Do you have any idea why is that ?

BTW - how can I send a screenshot ?

Thanks

On Sep 29, 3:35 pm, Sudhakar Abraham <s.abra...@datastoregwt.com>
wrote:
> You didn't add the border property in .FlexTable-diffPrev
> and .FlexTable-diffCurr.
>
> Add your FlexTable style property in global css file. The global css
> file name should be your_Project.css  in your project  /war
> directory.  About your TabPanel problem, I send the edited  code
> segment of your existing code.
>
> S. Abrahamwww.DataStoreGwt.com
> Persist objects directly in GAE
>
> // Corrected code.
>
> public void onModuleLoad() {
>
>         TabPanel tabPanel = new TabPanel();
>         FlowPanel flowPanel = new FlowPanel();
>
>         FlexTable flexTable1 = new FlexTable();
>         flexTable1.addStyleName("FlexTable");
>
>         HTMLTable.RowFormatter rf = flexTable1.getRowFormatter();
>         for(int i = 0; i < 6; i+=2)
>         {
>                 rf.addStyleName(i, "FlexTable-PrevRow");
>                 rf.addStyleName(i+1, "FlexTable-CurrRow");
>                 flexTable1.setText(i, 0, "Text1"+i);
>                 flexTable1.setText(i, 1, "Text2"+i);
>                 flexTable1.setText(i+1, 0, "Text1"+i);
>                 flexTable1.setText(i+1, 1, "Text4"+i);
>                 flexTable1.getCellFormatter().addStyleName(i,
> 1,"FlexTable-diffPrev");
>                 flexTable1.getCellFormatter().addStyleName(i+1,
> 1,"FlexTable-diffCurr");
>         }
>
>         flowPanel.add(flexTable1);
>         tabPanel.add(flowPanel,"FlexTable");
>         tabPanel.selectTab(0);
>         tabPanel.setSize("500px", "250px");
>         tabPanel.addStyleName("table-center");
>         RootPanel.get().add(tabPanel);
>
> }
>
> // Corrected css file.
>
> .FlexTable
>  {
>   border-top: thin solid #444444;
>   border-left: thin solid #444444;
>   border-right: thin solid #111111;
>   border-bottom: thin solid #111111;
>
> }
>
> .FlexTable-PrevRow
> {
>   border-bottom: solid 1px red;
>
> }
>
> .FlexTable-CurrRow
>  {
>   border-bottom: dashed 1px blue;
>
> }
>
> .FlexTable-diffPrev
> {
>   color: blue;
>   border-bottom: solid 1px red;
>
> }
>
> .FlexTable-diffCurr
>  {
>   color:  red;
> border-bottom: solid 1px green;
>
>
>
>
>
>
>
> }

--
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.

Re: GWT Developer Plugin for Firefox 7

Yeah I'm on Ubuntu 64 bit

For other 64 bit users out there, I needed to do the following:
 - Get your Linux 64bit gecko sdk from Mozilla (available here: http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/7.0/sdk )
 - Add "-std=gnu++0x" to CFLAGS in the Makefile
 - Make sure I had the 32 bit building stuff - I needed to install libc6-dev-i386 & g++-multilib

(The error I got previously was from not editing the Makefile correctly so I deleted my post)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/1zdUyD1yiCwJ.
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.

Re: GWT and IE8



On Friday, September 30, 2011 9:02:46 AM UTC+2, mkn wrote:
Now I have only the line:
<set-property name="user.agent" value="gecko1_8"/>

I'm not so sure why this should fix the problem.

No, it'll be worse.

Juan Pablo asked you *whether* you were doing such things (because that could have triggered the issue), not that you change you module.
 
By specifying that
line I speed up the compiler because it doesn't compile all the
versions anymore.
If run my application in IE8 now, then I just see a blank page and no
sign indicating any java script errors. However, when I click on the
refresh button. I get an error box with message: " ERROR: Possible
problem with your *.gwt.xml module file. The compile time user.agent
value (gecko1_8) does not match the runtime user.agent value (ie8).
Expect more errors.

Yes, you only compiled for Firefox, so its' no longer working in other browsers (IE, Chrome/Safari, Opera)

P.S. If it helps you I can send you the link to the application.

That could help, yes. 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/L-0kOnVMfu0J.
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.

Re: How can i delete a GWT Module?

In your project's settings, go to Google → Google Web Toolkit and make sure your module is no longer referenced there.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/4ZwwPEqgcHEJ.
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.

Re: Failure Parsing XML Document from Servlet



On Thursday, September 29, 2011 10:39:40 PM UTC+2, Laura Bickle wrote:
Hi Jeff,

I set the content type like so:  response.setContentType("text/xml");

I think MIME is a superset of content type.  I don't explicitly set any other MIME things.  How do I look up the MIME type of a file?

My previous errors are from firefox.  Per your suggestion, I tried using safari and chrome instead and they each gave me this error.  The first line is the result of requesting the xml file.  The second line comes from trying to parse it.

(-:-) 2011-09-29 13:32:28,825 [DEBUG] result:<?xml version="1.0" encoding="UTF-8"?><stuff>

IIRC, some browsers (can't remember which ones) choke on the XMLDecl when it specifies an encoding; because you're parsing a String, which is a stream of characters, and encodings only applies to streams of bytes (to actually turn the bytes into characters).
Try trimming the XMLDecl from your XML before giving it to XMLParser.parse().
Something like (untested):
if (xml.substring(0, 5).equalsIgnoreCase("<?xml")) {
   xml = xml.substring(xml.indexOf("?>") + 2);
}

Best would of course be to emit the encoding in the Content-Type HTTP header (application/xml; charset=UTF-8) and not send the XMLDecl at all.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/1h74ivOd75AJ.
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.

Re: AutoBean Deserialization of JSON that can be an Array or single Object

Thanks for the reply, the server is using JSON-lib to serialize an XML representation of the data (as two REST APIs are provided), I will look into altering the servers JSON output to force arrays where needed.

Thanks again,

Rich

On 30 September 2011 05:56, -sowdri- <sowdri@gmail.com> wrote:
>> but I cannot guarantee the JSON format.

What library are you using on the server? 

>> Should I look to change my JSON server output so that even if a 
single object is returned it is still wrapped in an array? 

Yes!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/sUIzUnQtICkJ.
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.

--
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.