DoubleBox cell decimals positions formatting

2011-08-22 Thread fabio.bozzo
I have this in my uiBinder:

e:ValueBoxEditorDecorator ui:field=importoEditor
e:valuebox
g:DoubleBox /
/e:valuebox
/e:ValueBoxEditorDecorator

Declared as @UiField ValueBoxEditorDecoratorDouble importoEditor; in
my code.

It behaves correctly: 50 displays as 50.0.
Now I want to display it as 50.00, since it is a currency euro
value.

How can I set a number formatter on that field?

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



Regular expressions in GWT

2011-08-22 Thread Raja Shekhar
Hi,

Can we use java.util.regex.Pattern in GWT?
i'm getting the following error.

[ERROR] [esms] - Line 31: No source code is available for type
java.util.regex.Pattern; did you forget to inherit a required module?

I included JRE.

-- 
Thanks,
Raja

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



Re: image.preFetch - How to determine its loaded?

2011-08-22 Thread StrongSteve
apply a loadhandler onto the image.
Something like the code below...

final Image imgPin = new
Image(WhiteBoardImageBundle.INSTANCE.pin().getURL());
imgPin.addLoadHandler(new LoadHandler() {

@Override
public void onLoad(LoadEvent event) {

//Do something with the image

}

});
//Add the image invisible to the root panel to force an image load
event
imgPin.setVisible(false);
RootPanel.get().add(imgPin);


On 21 Aug., 16:50, al76 alan.bl...@gmail.com wrote:
 How can I check that an image has been prefetched and is ready to be
 displayed?

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



Re: Regular expressions in GWT

2011-08-22 Thread StrongSteve
java.util.regex is not available on the client-side.
Use com.google.gwt.regexp.shared Class RegExp instead.

Greetings
Stefan

On 22 Aug., 08:57, Raja Shekhar grsvarma...@gmail.com wrote:
 Hi,

 Can we use java.util.regex.Pattern in GWT?
 i'm getting the following error.

 [ERROR] [esms] - Line 31: No source code is available for type
 java.util.regex.Pattern; did you forget to inherit a required module?

 I included JRE.

 --
 Thanks,
 Raja

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



Re: DoubleBox cell decimals positions formatting

2011-08-22 Thread Thomas Broyer
DoubleBox is simply a ValueBox using DoubleParser/DoubleRenderer; and 
DoubleRenderer uses NumberFormat.getDecimalFormat().

If you want a (even slightly) different renderer, you'll have to use a 
ValueBox with your own values for the parser and renderer.

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



Re: Generating XML

2011-08-22 Thread DarthG
Thank you both for your assistance. I will attempt to use the XStream
library first, but the XML is not intended to to be parsed and objects
re-built from it; rather the information will be used by another
system. Thus, it depends how much I can customise the XStream output
to suit the desired XML format. Karim, upon investigating the JAXB
framework I discovered that this is the standard practise in the
company I work for(student internship, hence why I was unaware) but as
I have stated the simplicity of the objects and resulting XML may suit
a simpler method. I had never considered manipulating the toString
methods to my advantage, so if XStream does not suit then this is the
path I will take.

Thanks again,
Gary

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



How to center element containing CellTable?

2011-08-22 Thread Ionuț G. Stan
I'm trying to center an element that contains a CellTable. The actual 
centering logic works okay, but I'm having problems with all those 
attaching/detaching events. Basically, I'm doing this in my container 
widget:


  @Override
  public void onLoad() {
super.onLoad();
center();
  }

However, it seems that `onLoad` on the container does not mean that all 
children have loaded, so... the actual centering routine is called to 
early and Element.getOffsetWidth/getOffsetHeight are both returning 0.
This results in the container being displayed with the left upper corner 
in the center of the screen.


Same thing happens if I use an AttachEvent.Handler on the CellTable.

So... is there any event on CellTable, or on Widget or whatever that 
allows me to trigger an action when the DOM subtree has been attached to 
the DOM?


Thanks in advance.

--
Ionuț G. Stan  |  http://igstan.ro

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



Re: CellTable + Editor displaying only those rows based on a flag in the bean

2011-08-22 Thread Uemit
You will probably use an AbstractDataProvider instance to fill the 
CellTable. You have to create a helper method which retrieves the list of 
beans based on the flag and sets it in the AbstractDataProvider (or 
ListDataProvider). 
Something like this:

final ListDataProviderUser dataProvider = new ListDataProviderUser();

ListUser listToDisplay = new ArrayListUser();

for (User user: userList) {

if (user.isActive())

   listToDisplay.add(user);

}

dataProvider.setList(listToDisplay);

dataProvider.addDataDisplay(cellList);


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



Re: Regular expressions in GWT

2011-08-22 Thread Jim Douglas
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/regexp/shared/RegExp.html

On Aug 21, 11:57 pm, Raja Shekhar grsvarma...@gmail.com wrote:
 Hi,

 Can we use java.util.regex.Pattern in GWT?
 i'm getting the following error.

 [ERROR] [esms] - Line 31: No source code is available for type
 java.util.regex.Pattern; did you forget to inherit a required module?

 I included JRE.

 --
 Thanks,
 Raja

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



Insane RPC Serialization Error.

2011-08-22 Thread Gianluigi
Hi to all, 

It's several days I'm struggling with this error.
I make a rpc call from GWT client to a server passing an object.

This pojo contain several data ... and a String with some JSON stuff.

The call in DEBUG mode works absolutely fine. Not only in debug mode, but when 
I use the application connected with the GWT browser plugin.

In production mode... the seralization fails!!! Nothing on server side. I 
investigate the call in firebug... and the output is:

Fri Aug 19 18:13:11 GMT+100 2011 com.google.gwt.logging.client.LogConfiguration 
SEVERE: null java.lang.ClassCastException: null 

at Unknown.collect_0(Unknown Source) 
at Unknown.createStackTrace_0(Unknown Source) 
at Unknown.fillInStackTrace_0(Unknown Source) 
at Unknown.fillInStackTrace(Unknown Source) 
at Unknown.$fillInStackTrace(Unknown Source) 
at Unknown.$$init_14(Unknown Source) 
at Unknown.Throwable_0(Unknown Source) 
at Unknown.Exception_0(Unknown Source) 
at Unknown.RuntimeException_0(Unknown Source) 
at Unknown.ClassCastException_0(Unknown Source) at Unknown.dynamicCast(Unknown 
Source) 
at Unknown.makeValue(Unknown Source) 
at Unknown.makeValue_0(Unknown Source) 
at Unknown.$extractField(Unknown Source) 
at Unknown.extractField(Unknown Source) 
at Unknown.$extractData_0(Unknown Source) 
at Unknown.$makeObject(Unknown Source) 
at Unknown.makeValue(Unknown Source) 
at Unknown.writeObject(Unknown Source) 
at Unknown.serialize_33(Unknown Source) 
at Unknown.serialize_28(Unknown Source) 
at Unknown.$serialize(Unknown Source)
...


That error output comes thanks to the -Dgwt.style=PRETTY ... otherwise would be 
obfuscated.

I'm struggling with this error. How is it possible that in debug mode works 
properly? 

Any hints to resolve the issue?! THANKS! 


Muzero

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



Re: CellTable custom footer

2011-08-22 Thread Uemit
Hi John 

I do have a question regarding redrawing the entire DataGrid/CellTable when 
new data is pushed in. 
I tried to implement a SearchTextBoxes in the ColumnHeader for filtering the 
data which is displayed in the CellTable. 
As soon as I type a character into the SearchTextBox in one of the column 
headers I filter the ListDataProvider and the CellTable is refreshed. 
However the refresh/redraw of the celltable causes the SearchTextBox input 
to lose its focus and currently in GWT 2.3 there is no way to specify that 
the SearchTextBox gets the focus back which leads to painful user experience 
(the user has to click into the SearchTextBox again to type in the next 
character). 

I have posted this question in Stackoverflow (
http://stackoverflow.com/questions/6422896/celltable-with-custom-header-containing-searchbox-and-focus-problem)
 
but got no responses. 

https://lh5.googleusercontent.com/-QSUJ0kixSwc/TlIhZUqdDGI/AFs/o48fsjiC5Yc/celltable_search_header.png
I solved this problem by creating another table above my CellTable,  putting 
the Searchboxes there and trying to align them to my CellTable headers. But 
that doesn't seem to be a really good way to do it (check screenshot). 

Can this problem be solved with the new CellWidget API in 2.4 ?


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



Re: Funny behaviour in CellTable.

2011-08-22 Thread jsg
Hi Jeff,

Given both our experience and your confirmation, I'm going to file a
bug report in case this thread isn't being noticed.

Thanks for your effort.

On Aug 22, 12:46 am, jchimene jchim...@gmail.com wrote:
 Hi Julian,

 I was too glib in my earlier reply.

 I, too, am seeing this problem. I hadn't completetly tested this app
 in production mode, and it fails miserably when compiled.

 So, I will post updates to this thread when I get a solution that
 works not only in development mode, but also when compiled.

 On Aug 19, 8:17 am, jsg jgerso...@gmail.com wrote:







  We have refreshed the view because instead of calling
  ListDataProvider.refresh() which simply calls updateRowData() for all
  the registered displays, we've done the following:

  By calling batchTable.setRowData() we are simply more directly
  targeting both the display and only the row that has changed. (Rather
  than all visible rows by calling refresh().)
  As far as I can tell from the system, the DataProviders have no
  knowledge of the internal column data and so they can't know if any of
  the values of the rows have been updated. Only that the row instances
  themselves have changed. (I have tested it now, just to be safe,
  replacing setRowData() with refresh() with the same results.)

  Our use case is not so uncommon that we should be struggling so much
  with this intended functionality.

  Thanks for your prompt reply.
  Julian

  On Aug 19, 4:16 pm, Jeffrey Chimene jchim...@gmail.com wrote:

   On 8/19/2011 4:53 AM, jsg wrote:

Thanks for your insight.

However, after wrapping the setRowData() in a ScheduleDeferred like
so:

Scheduler.get().scheduleDeferred(new ScheduledCommand() {
                                           @Override
                                           public void execute() {
                                                   
batchTable.setRowData(index,
Collections.singletonList(object));
                                           }
                                   });

There is no perceived change in behaviour.
I've tried wrapping the whole FieldUpdater.update() contents inside
the execute() action, but to no avail.

   I'm not sitting in front of my GWT development machine,so I don't have
   this exactly right,but where are you calling the list.refresh() method?
   You've updated the backing list, but not refreshed the view (at least in
   the sample).

On Aug 18, 10:01 pm, Jeff Chimenejchim...@gmail.com  wrote:
On 08/18/2011 12:05 PM, jsg wrote:

Hello.
I've created a test case of my CellTable issue as a self contained
panel that can easily be imported into any project:
   http://pastebin.com/zDLPKUNh
Basically I have two Date class fields in my row model, a startDate
and an endDate. Each Date has two columns in the CellTable (called
batchTable), one to display the actual date (a DatePickerCell) and
the other being a text input cell for the time.
When the FieldUpdater of the startTime or endTime is fired we parse
the value, save the new time and call batchTable.setRowData() with
the updated object and row index.
The problem is that when FieldUpdater is fired, the cells do not
update. I specifically edited the FieldUpdater of the endTime cell
to be an hour later than what it was set at.
I've checked as best as I can that all the gets and sets of the
respective startDate and endDate are in order, but I'm thinking that
there's something about CellTable I'm not getting.
Apologies if I've missed anything.
I'm running: GWT 2.3
I've tested it in the latest Chrome and IE9.
Regards, Julian
Try putting your update actions inside a ScheduleDeferred command.

The issue seems to be the coupling between the FieldUpdater and the
cellTable refresh logic. Running the FieldUpdate.update() action after
the browser's refresh loop seems to address this issue.

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



Re: Extend GWT-RPC protocol to support AMF3 protocol

2011-08-22 Thread Alain Ekambi
Like Don said  the Flex module in the gwt4air project is not ment  for
existing Flex projects written in Action Script.
It s  for new Flex projects and for Java Developers willing to use Flex as
the UI technology of their projects.
By leveraging GWT there is no need to use stuff like BlaseDS, GraniteDS
etc...  because one can directly use the powerfull GWT backend APIs (RF,
RPC, Requestbuildere, etc..)

2011/8/21 Don Rudo carlosalbert...@gmail.com

 Thanks for the suggestion; I think gwt4air is for the client side;
 what we need is actually a way to make GWT RPC understand AMF3
 requests from already implemented clients, the actual JEE
 implementation is done at GraniteDS but it would make no sense to have
 it running for GWT adding all this extra overhead just for the AMF
 compatibility, the another solution would be to leave JEE and go for
 AMFPHP.

 But a good chance would be to extend the GWT protocol in order to have
 an RPC which understands the AMF3 requests without adding extra
 complexity to the project itself.

 Best regards,
 Carlos.

 On Aug 16, 1:27 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  Are you look gwt4air?
 
  2011/8/16 Don Rudo carlosalbert...@gmail.com
 
 
 
 
 
 
 
   Hello I'm looking for a way to extend the GWT-RPC protocol in order to
   make the RPC service able to be used from more products (more specific
   flex and flash products).
 
   The intention is to be able to use GWT RPC for applications using the
   Action Message Format (AMF 3) which specification is open source and
   according to this benchmarks (
  http://www.jamesward.com/2007/04/30/ajax-and-flex-data-loading-benchm.
 ..
   )  it's a very efficient RPC protocol.
 
   Best regards,
 
   Carlos.
 
   --
   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+unsubscr...@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+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Re: Regular expressions in GWT

2011-08-22 Thread Raja Shekhar
Thanks.

+Raja

On Mon, Aug 22, 2011 at 2:51 PM, Jim Douglas jdou...@basis.com wrote:


 http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/regexp/shared/RegExp.html

 On Aug 21, 11:57 pm, Raja Shekhar grsvarma...@gmail.com wrote:
  Hi,
 
  Can we use java.util.regex.Pattern in GWT?
  i'm getting the following error.
 
  [ERROR] [esms] - Line 31: No source code is available for type
  java.util.regex.Pattern; did you forget to inherit a required module?
 
  I included JRE.
 
  --
  Thanks,
  Raja

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




-- 
Thanks,
Raja

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



Re: Controlling Size(screen) on Mobile Device

2011-08-22 Thread Uemit
Well, the whole resolution independent web development is really cumbersome 
especially with GWT like web-application UI. 

Static web-sites either stick to the static (i.e. 960 grid system) or 
fluid/liquid (floating) UI design. 
With the static design the content size is always the same no matter of the 
resolution you are viewing the web-page. This is done because there is an 
optimal text length. If you expand text-content to the complete size of the 
display it becomes really hard to read with high resolution displays. So 
static web-pages tend to stick the fixed sized layouts. However there is 
also a move to liquid/fluid layouts where you resize the layout based on the 
viewport. 
Check out this articles for more information: 
http://coding.smashingmagazine.com/2009/06/02/fixed-vs-fluid-vs-elastic-layout-whats-the-right-one-for-you/
http://www.maxdesign.com.au/articles/liquid/

These two concepts work well in the desktop context where you can expect 
screen resolutions  1024px.
However in the mobile context you have to expect lower screen sizes. 

So there are two solutions to that:
You can either use liquid/fluid design. However this doesn't always work 
well because the sections in of your web-app will be to small and the user 
has to zoom in and out constantly. 
For example on a tablet it might be viable to have a navigation panel on the 
left side and a content panel on the right (DockLayoutPanel). However on a 
mobile phone it might be better to just have the navigation panel  and on 
clicking an item the content panel is displayed. 

The second solution is to use different View implementations based on the 
UserAgent (device). 
There was a talk on the last Google IO conference on that and a sample 
project on how to implement it. 

http://www.google.com/events/io/2011/sessions/using-gwt-and-eclipse-to-build-great-mobile-web-apps.html
http://code.google.com/p/google-web-toolkit/source/browse/#svn%2Ftrunk%2Fsamples%2Fmobilewebapp

Developing a GWT web-app which works on all desktop resolutions as well as 
on mobile devices are real challenger. Actually it is difficult enough to 
achieve this if you only want to optimize for different desktop resolutions, 
especially if you use
Charts which require explicit sizes. 
The MVP pattern can help to have different view implementations and still 
avoid redundant code. 

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



Use Uploaded Image as Panel Background

2011-08-22 Thread DarthG
Hello,

I have an AbsolutePanel that acts as a graphical workspace. The user
should be able to specify a local image to upload and this image will
appear as the background on the panel, for them to work on top of.

I understand the background can be set using CSS, but how would one do
this dynamically after the image is uploaded? Is there a simpler way
to do this using an Image widget the same size as the panel and having
the panel sit on top of this widget and set as transparent?

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



Re: Remove ALL CSS from GWT

2011-08-22 Thread Sudhakar Abraham

Change the property in gwt.xml file as follows.

In the Project.gwt.xml file do not inherit the css  file.
comment as follows !-- inherits
name='com.google.gwt.user.theme.standard.Standard'/ --

Hope it helps.

S. Abraham
www.DataStoreGwt.com

On Aug 19, 7:57 pm, Alexander Orlov alexander.or...@loxal.net wrote:
 Even if you don't specify any specific theme in the *.gwt.xml some CSS
 directives are always inserted into the app. How can I specify that GWT
 should not insert any single line of CSS into the app?

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



Re: Insane RPC Serialization Error.

2011-08-22 Thread Gianluigi
The problem is that the serialization behaviour is different from web and 
hosted mode... 
I don't know how I should resolve this...



Da: Gianluigi dava...@yahoo.it
A: Google Web Toolkit google-web-toolkit@googlegroups.com
Inviato: Lunedì 22 Agosto 2011 10:30
Oggetto: Insane RPC Serialization Error.


Hi to all, 

It's several days I'm struggling with this error.
I make a rpc call from GWT client to a server passing an object.

This pojo contain several data ... and a String with some JSON stuff.

The call in DEBUG mode works absolutely fine. Not only in debug mode, but when 
I use the application connected with the GWT browser plugin.

In production mode... the seralization fails!!! Nothing on server side. I 
investigate the call in firebug... and the output is:

Fri Aug 19 18:13:11 GMT+100 2011 com.google.gwt.logging.client.LogConfiguration 
SEVERE: null java.lang.ClassCastException: null 

at Unknown.collect_0(Unknown Source) 
at Unknown.createStackTrace_0(Unknown Source) 
at
 Unknown.fillInStackTrace_0(Unknown Source) 
at Unknown.fillInStackTrace(Unknown Source) 
at Unknown.$fillInStackTrace(Unknown Source) 
at Unknown.$$init_14(Unknown Source) 
at Unknown.Throwable_0(Unknown Source) 
at Unknown.Exception_0(Unknown Source) 
at Unknown.RuntimeException_0(Unknown Source) 
at Unknown.ClassCastException_0(Unknown Source) at Unknown.dynamicCast(Unknown 
Source) 
at Unknown.makeValue(Unknown Source) 
at Unknown.makeValue_0(Unknown Source) 
at Unknown.$extractField(Unknown Source) 
at Unknown.extractField(Unknown Source) 
at Unknown.$extractData_0(Unknown Source) 
at Unknown.$makeObject(Unknown Source) 
at Unknown.makeValue(Unknown Source) 
at Unknown.writeObject(Unknown Source) 
at Unknown.serialize_33(Unknown Source) 
at Unknown.serialize_28(Unknown Source) 
at Unknown.$serialize(Unknown Source)
...


That error output comes thanks to the -Dgwt.style=PRETTY ... otherwise would be 
obfuscated.

I'm struggling with this error. How is it possible that in debug mode works 
properly? 

Any hints to resolve the issue?! THANKS! 


Muzero





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



Re: Remove ALL CSS from GWT

2011-08-22 Thread Alexander Orlov
On Mon, Aug 22, 2011 at 1:36 PM, Sudhakar Abraham 
s.abra...@datastoregwt.com wrote:


 Change the property in gwt.xml file as follows.

 In the Project.gwt.xml file do not inherit the css  file.
 comment as follows !-- inherits
 name='com.google.gwt.user.theme.standard.Standard'/ --


...is supposed to work only if you are using non-Layout widgets, i.e.
RootPanel instead of RootLayoutPanel. If you use it with RLP some
layout-related CSS properties still remain.

Fortunately you can override RootLayoutPanel's defaults with your own CSS
values.

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



TabLayoutPanel problem with IE7 and input box

2011-08-22 Thread hriess
I'm using a TabLayoutPanel. GWT always generates a div element as the first 
child of the TabLayoutPanel's div.
This div has the following styles:
div style=position: absolute; z-index: -32767; top: -20ex; width: 10em; 
height: 10ex;nbsp;/div
Although the z-index is -32767 this div covers a an above situated input 
box, so that you can't place the cursor in it.
This behaviour is only in IE7.

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



Re: Insane RPC Serialization Error.

2011-08-22 Thread J.Ganesan
Any anonymous inner class you have ? That could be a problem.

J.Ganesan
www.DataStoreGwt.com

On Aug 22, 4:38 pm, Gianluigi dava...@yahoo.it wrote:
 The problem is that the serialization behaviour is different from web and 
 hosted mode... 
 I don't know how I should resolve this...

 
 Da: Gianluigi dava...@yahoo.it
 A: Google Web Toolkit google-web-toolkit@googlegroups.com
 Inviato: Lunedì 22 Agosto 2011 10:30
 Oggetto: Insane RPC Serialization Error.

 Hi to all,

 It's several days I'm struggling with this error.
 I make a rpc call from GWT client to a server passing an object.

 This pojo contain several data ... and a String with some JSON stuff.

 The call in DEBUG mode works absolutely fine. Not only in debug mode, but 
 when I use the application connected with the GWT browser plugin.

 In production mode... the seralization fails!!! Nothing on server side. I 
 investigate the call in firebug... and the output is:

 Fri Aug 19 18:13:11 GMT+100 2011 
 com.google.gwt.logging.client.LogConfiguration
 SEVERE: null java.lang.ClassCastException: null 

 at Unknown.collect_0(Unknown Source)
 at Unknown.createStackTrace_0(Unknown Source)
 at
  Unknown.fillInStackTrace_0(Unknown Source)
 at Unknown.fillInStackTrace(Unknown Source)
 at Unknown.$fillInStackTrace(Unknown Source)
 at Unknown.$$init_14(Unknown Source)
 at Unknown.Throwable_0(Unknown Source)
 at Unknown.Exception_0(Unknown Source)
 at Unknown.RuntimeException_0(Unknown Source)
 at Unknown.ClassCastException_0(Unknown Source) at 
 Unknown.dynamicCast(Unknown Source)
 at Unknown.makeValue(Unknown Source)
 at Unknown.makeValue_0(Unknown Source)
 at Unknown.$extractField(Unknown Source)
 at Unknown.extractField(Unknown Source)
 at Unknown.$extractData_0(Unknown Source)
 at Unknown.$makeObject(Unknown Source)
 at Unknown.makeValue(Unknown Source)
 at Unknown.writeObject(Unknown Source)
 at Unknown.serialize_33(Unknown Source)
 at Unknown.serialize_28(Unknown Source)
 at Unknown.$serialize(Unknown Source)
 ...

 That error output comes thanks to the -Dgwt.style=PRETTY ... otherwise would 
 be obfuscated.

 I'm struggling with this error. How is it possible that in debug mode works 
 properly?

 Any hints to resolve the issue?! THANKS!

 Muzero

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



Re: Use Uploaded Image as Panel Background

2011-08-22 Thread Nicolas Antoniazzi
As soon as your image is uploaded, you can have a link to it. something like
http://my.site.com/images/uploaded_img.png
Then, you only have to dynamically change the background of your element :
myWidget.getElement().getStyle().setBackgroundImage(
http://my.site.com/images/uploaded_img.png);

The only trick is to upload the image, move it to a folder visible for your
website users, and get the valid url associated.
To help uploads, you can use gwt-upload project (
http://code.google.com/p/gwtupload/). Really easy to use.

2011/8/22 DarthG garyker...@gmail.com

 Hello,

 I have an AbsolutePanel that acts as a graphical workspace. The user
 should be able to specify a local image to upload and this image will
 appear as the background on the panel, for them to work on top of.

 I understand the background can be set using CSS, but how would one do
 this dynamically after the image is uploaded? Is there a simpler way
 to do this using an Image widget the same size as the panel and having
 the panel sit on top of this widget and set as transparent?

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



Re: Insane RPC Serialization Error.

2011-08-22 Thread Stefan Ollinger
Some days ago I had a similar problem. Development version worked fine, 
but the compiled version gave those errors. What I did to resolve them, 
was to build my project from scratch. At the end I had a compiled and 
working version, having the same codebase like before.


In the progress of resolving the error I also changed some eclipse settings:

- Google Plugin for Eclipse - Default GWT Version from 2.2 to 2.3
- Updated Maven Dependencies: GWT 2.2. to 2.3.0, GWT Maven Plugin 2.2 to 
2.3.0-1


Finally I cannot say where this behaviour results from, but this is how 
I solved the problem.


Regards,
Stefan


Am 22.08.2011 14:16, schrieb J.Ganesan:

Any anonymous inner class you have ? That could be a problem.

J.Ganesan
www.DataStoreGwt.com

On Aug 22, 4:38 pm, Gianluigidava...@yahoo.it  wrote:
The problem is that the serialization behaviour is different from web and hosted mode... 
I don't know how I should resolve this...



Da: Gianluigidava...@yahoo.it
A: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
Inviato: Lunedì 22 Agosto 2011 10:30
Oggetto: Insane RPC Serialization Error.

Hi to all,

It's several days I'm struggling with this error.
I make a rpc call from GWT client to a server passing an object.

This pojo contain several data ... and a String with some JSON stuff.

The call in DEBUG mode works absolutely fine. Not only in debug mode, but when 
I use the application connected with the GWT browser plugin.

In production mode... the seralization fails!!! Nothing on server side. I 
investigate the call in firebug... and the output is:

Fri Aug 19 18:13:11 GMT+100 2011 com.google.gwt.logging.client.LogConfiguration
SEVERE: null java.lang.ClassCastException: null 


at Unknown.collect_0(Unknown Source)
at Unknown.createStackTrace_0(Unknown Source)
at
  Unknown.fillInStackTrace_0(Unknown Source)
at Unknown.fillInStackTrace(Unknown Source)
at Unknown.$fillInStackTrace(Unknown Source)
at Unknown.$$init_14(Unknown Source)
at Unknown.Throwable_0(Unknown Source)
at Unknown.Exception_0(Unknown Source)
at Unknown.RuntimeException_0(Unknown Source)
at Unknown.ClassCastException_0(Unknown Source) at Unknown.dynamicCast(Unknown 
Source)
at Unknown.makeValue(Unknown Source)
at Unknown.makeValue_0(Unknown Source)
at Unknown.$extractField(Unknown Source)
at Unknown.extractField(Unknown Source)
at Unknown.$extractData_0(Unknown Source)
at Unknown.$makeObject(Unknown Source)
at Unknown.makeValue(Unknown Source)
at Unknown.writeObject(Unknown Source)
at Unknown.serialize_33(Unknown Source)
at Unknown.serialize_28(Unknown Source)
at Unknown.$serialize(Unknown Source)
...

That error output comes thanks to the -Dgwt.style=PRETTY ... otherwise would be 
obfuscated.

I'm struggling with this error. How is it possible that in debug mode works 
properly?

Any hints to resolve the issue?! THANKS!

Muzero

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



How would you replicate Google+ layout?

2011-08-22 Thread Amit Prahesh
Hi there,

I've been banging my head against the wall trying to replicate Google+'s 
layout, but haven't been succesful. This is what I want to achieve:


   1. A 100% browser width bar at the top of the page, styled with a 
   background. Even if this bar -- or panel -- goes edge to edge, it's actual 
   content has the same limitations as number 2, below.
   2. Three fixed-width columns, horizontally centered on the page 
   (browser).
   3. An ever present clickable box, much like +'s Send feedback.

Any ideas?

TIA,
Amit.

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



Code Does not Compile

2011-08-22 Thread Kb .
I have a Java code that uses

java.net.DatagramPacket;
java.net.DatagramSocket;
java.net.InetAddress;

It runs fine in eclipse if Run as Java application
But when using it in GWT client code it does not compile.

I tried copying files to GWT server package and then importing in
Client But Stil Does not Compile.

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



Re: Insane RPC Serialization Error.

2011-08-22 Thread Jambi
Could you post the class contents? Maybe we can see something in your
code.

On 22 Aug., 15:08, Stefan Ollinger stefan.ollin...@gmx.de wrote:
 Some days ago I had a similar problem. Development version worked fine,
 but the compiled version gave those errors. What I did to resolve them,
 was to build my project from scratch. At the end I had a compiled and
 working version, having the same codebase like before.

 In the progress of resolving the error I also changed some eclipse settings:

 - Google Plugin for Eclipse - Default GWT Version from 2.2 to 2.3
 - Updated Maven Dependencies: GWT 2.2. to 2.3.0, GWT Maven Plugin 2.2 to
 2.3.0-1

 Finally I cannot say where this behaviour results from, but this is how
 I solved the problem.

 Regards,
 Stefan

 Am 22.08.2011 14:16, schrieb J.Ganesan:

  Any anonymous inner class you have ? That could be a problem.

  J.Ganesan
 www.DataStoreGwt.com

  On Aug 22, 4:38 pm, Gianluigidava...@yahoo.it  wrote:
  The problem is that the serialization behaviour is different from web and 
  hosted mode...
  I don't know how I should resolve this...

  
  Da: Gianluigidava...@yahoo.it
  A: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
  Inviato: Luned 22 Agosto 2011 10:30
  Oggetto: Insane RPC Serialization Error.

  Hi to all,

  It's several days I'm struggling with this error.
  I make a rpc call from GWT client to a server passing an object.

  This pojo contain several data ... and a String with some JSON stuff.

  The call in DEBUG mode works absolutely fine. Not only in debug mode, but 
  when I use the application connected with the GWT browser plugin.

  In production mode... the seralization fails!!! Nothing on server side. I 
  investigate the call in firebug... and the output is:

  Fri Aug 19 18:13:11 GMT+100 2011 
  com.google.gwt.logging.client.LogConfiguration
  SEVERE: null java.lang.ClassCastException: null

  at Unknown.collect_0(Unknown Source)
  at Unknown.createStackTrace_0(Unknown Source)
  at
    Unknown.fillInStackTrace_0(Unknown Source)
  at Unknown.fillInStackTrace(Unknown Source)
  at Unknown.$fillInStackTrace(Unknown Source)
  at Unknown.$$init_14(Unknown Source)
  at Unknown.Throwable_0(Unknown Source)
  at Unknown.Exception_0(Unknown Source)
  at Unknown.RuntimeException_0(Unknown Source)
  at Unknown.ClassCastException_0(Unknown Source) at 
  Unknown.dynamicCast(Unknown Source)
  at Unknown.makeValue(Unknown Source)
  at Unknown.makeValue_0(Unknown Source)
  at Unknown.$extractField(Unknown Source)
  at Unknown.extractField(Unknown Source)
  at Unknown.$extractData_0(Unknown Source)
  at Unknown.$makeObject(Unknown Source)
  at Unknown.makeValue(Unknown Source)
  at Unknown.writeObject(Unknown Source)
  at Unknown.serialize_33(Unknown Source)
  at Unknown.serialize_28(Unknown Source)
  at Unknown.$serialize(Unknown Source)
  ...

  That error output comes thanks to the -Dgwt.style=PRETTY ... otherwise 
  would be obfuscated.

  I'm struggling with this error. How is it possible that in debug mode 
  works properly?

  Any hints to resolve the issue?! THANKS!

  Muzero

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



Re: Code Does not Compile

2011-08-22 Thread Kb .
I am using them for Game Server Querying.
Is there any other way to put it somewhere and use info in some other
form in the code.

On Aug 22, 7:23 pm, Mark mdshol...@gmail.com wrote:
 You cannot use every Java class in GWT client code; I'm pretty sure
 that java.net classes are not included.  
 Seehttp://code.google.com/webtoolkit/doc/latest/RefJreEmulation.htmlfor
 a list of emulated classes.

 On Aug 22, 8:35 am, Kb . kb.kb.1...@gmail.com wrote:







  I have a Java code that uses

      java.net.DatagramPacket;
      java.net.DatagramSocket;
      java.net.InetAddress;

  It runs fine in eclipse if Run as Java application
  But when using it in GWT client code it does not compile.

  I tried copying files to GWT server package and then importing in
  Client But Stil Does not Compile.

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



Re: Insane RPC Serialization Error.

2011-08-22 Thread Gianluigi
Well, actually It's a massive class definition. 
There are 2 piece of that class that I suspect gives troubles...

1) a string with a json definition inside
2) This typed map: MapKeyItem, LookupRow where KeyItem and LookupRow are 
other 2 objects with hashcode and equality methods defined properly...

I guess that there are some issues about the map due to the fact that firebug 
report to me this stuff...

level = SEVERE { impl=SEVERE,  castableTypeMap$={...},  $H=374}
msg = null
thrown = java.lang.ClassCastException { stackTrace=[72],  $H=240,  
castableTypeMap$={...}

...



Da: Jambi michael.lukaszc...@googlemail.com
A: Google Web Toolkit google-web-toolkit@googlegroups.com
Inviato: Lunedì 22 Agosto 2011 14:48
Oggetto: Re: Insane RPC Serialization Error.

Could you post the class contents? Maybe we can see something in your
code.

On 22 Aug., 15:08, Stefan Ollinger stefan.ollin...@gmx.de wrote:
 Some days ago I had a similar problem. Development version worked fine,
 but the compiled version gave those errors. What I did to resolve them,
 was to build my project from scratch. At the end I had a compiled and
 working version, having the same codebase like before.

 In the progress of resolving the error I also changed some eclipse settings:

 - Google Plugin for Eclipse - Default GWT Version from 2.2 to 2.3
 - Updated Maven Dependencies: GWT 2.2. to 2.3.0, GWT Maven Plugin 2.2 to
 2.3.0-1

 Finally I cannot say where this behaviour results from, but this is how
 I solved the problem.

 Regards,
 Stefan

 Am 22.08.2011 14:16, schrieb J.Ganesan:

  Any anonymous inner class you have ? That could be a problem.

  J.Ganesan
 www.DataStoreGwt.com

  On Aug 22, 4:38 pm, Gianluigidava...@yahoo.it  wrote:
  The problem is that the serialization behaviour is different from web and 
  hosted mode...
  I don't know how I should resolve this...

  
  Da: Gianluigidava...@yahoo.it
  A: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
  Inviato: Luned 22 Agosto 2011 10:30
  Oggetto: Insane RPC Serialization Error.

  Hi to all,

  It's several days I'm struggling with this error.
  I make a rpc call from GWT client to a server passing an object.

  This pojo contain several data ... and a String with some JSON stuff.

  The call in DEBUG mode works absolutely fine. Not only in debug mode, but 
  when I use the application connected with the GWT browser plugin.

  In production mode... the seralization fails!!! Nothing on server side. I 
  investigate the call in firebug... and the output is:

  Fri Aug 19 18:13:11 GMT+100 2011 
  com.google.gwt.logging.client.LogConfiguration
  SEVERE: null java.lang.ClassCastException: null

  at Unknown.collect_0(Unknown Source)
  at Unknown.createStackTrace_0(Unknown Source)
  at
    Unknown.fillInStackTrace_0(Unknown Source)
  at Unknown.fillInStackTrace(Unknown Source)
  at Unknown.$fillInStackTrace(Unknown Source)
  at Unknown.$$init_14(Unknown Source)
  at Unknown.Throwable_0(Unknown Source)
  at Unknown.Exception_0(Unknown Source)
  at Unknown.RuntimeException_0(Unknown Source)
  at Unknown.ClassCastException_0(Unknown Source) at 
  Unknown.dynamicCast(Unknown Source)
  at Unknown.makeValue(Unknown Source)
  at Unknown.makeValue_0(Unknown Source)
  at Unknown.$extractField(Unknown Source)
  at Unknown.extractField(Unknown Source)
  at Unknown.$extractData_0(Unknown Source)
  at Unknown.$makeObject(Unknown Source)
  at Unknown.makeValue(Unknown Source)
  at Unknown.writeObject(Unknown Source)
  at Unknown.serialize_33(Unknown Source)
  at Unknown.serialize_28(Unknown Source)
  at Unknown.$serialize(Unknown Source)
  ...

  That error output comes thanks to the -Dgwt.style=PRETTY ... otherwise 
  would be obfuscated.

  I'm struggling with this error. How is it possible that in debug mode 
  works properly?

  Any hints to resolve the issue?! THANKS!

  Muzero

  --
  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+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group 

Re: Basic CellTree tutorial not working

2011-08-22 Thread Sudhakar Abraham

In  Entrypoint,  add  CellTreeExample  object into RootLayoutPanel. It
binds the CellTree Widget with uiBinder.
Try the following example.

S. Abraham
www.DataStoreGwt.com

package com.college.client;
import com.google.gwt.cell.client.TextCell;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.cellview.client.CellTree;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.view.client.ListDataProvider;
import com.google.gwt.view.client.TreeViewModel;

public class CellTreeExample extends Composite {
  interface Binder extends UiBinderWidget, CellTreeExample{}
  @UiField(provided = true)
  CellTree cellTree;
  public CellTreeExample()
  {
TreeViewModel model = new CustomTreeModel();
cellTree = new CellTree(model, Tree 1);
initWidget(GWT.Binder
create(Binder.class).createAndBindUi(this));
  }
  public class CustomTreeModel implements TreeViewModel
  {
@Override
public T NodeInfo? getNodeInfo(T value)
{
  // TODO Auto-generated method stub
  ListDataProviderString dataProvider = new
ListDataProviderString();
  for (int i = 0; i  2; i++) {
dataProvider.getList().add(value + . + String.valueOf(i));
  }
  // Return a node info that pairs the data with a cell.
  return new DefaultNodeInfoString(dataProvider, new
TextCell());
}
@Override
public boolean isLeaf(Object value)
{
  // TODO Auto-generated method stub
  return value.toString().length()  10;
}
  }
}

On Aug 21, 10:12 pm, fabio.bozzo fabio.bo...@gmail.com wrote:
 Trying to copy and paste the most basic celltree 
 example:http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideUiCel...

 But it only shows two blocks, without tree look and feel. Here's my
 code:

 public class CategorieTreeViewModel implements TreeViewModel {

         @Override
         public T NodeInfo? getNodeInfo(T value) {
                 ListDataProviderString dataProvider = new
 ListDataProviderString();
                 for (int i = 0; i  2; i++) {
                     dataProvider.getList().add(value + . + 
 String.valueOf(i));
                   }

                   // Return a node info that pairs the data with a cell.
                   return new DefaultNodeInfoString(dataProvider, new 
 TextCell());
         }

         @Override
         public boolean isLeaf(Object value) {
                 // The maximum length of a value is ten characters.
               return value.toString().length()  10;
         }

 }

 public class Categorie extends Composite implements Constructable {

         private static CategorieUiBinder uiBinder =
 GWT.create(CategorieUiBinder.class);
         interface CategorieUiBinder extends UiBinderWidget, Categorie {}

         @UiField(provided=true)
         CellTree cellTree;

         public Categorie() {

                 // Create a model for the tree.
             TreeViewModel model = new CategorieTreeViewModel();

             // Create the tree using the model. We specify the default value
 of the
             // hidden root node as Item 1.
             cellTree = new CellTree(model, Elemento 1);

                 initWidget(uiBinder.createAndBindUi(this));
         }

 }

The corresponding .xml file CellTreeExample

ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:cv='urn:import:com.google.gwt.user.cellview.client'

g:DockLayoutPanel ui:field=dock unit=PX
g:center
cv:CellTree ui:field=cellTree/
/g:center
/g:DockLayoutPanel
/ui:UiBinder



 Is there something wrong? What do you think?

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



Re: Code Does not Compile

2011-08-22 Thread Mark
You cannot use every Java class in GWT client code; I'm pretty sure
that java.net classes are not included.  See
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html for
a list of emulated classes.



On Aug 22, 8:35 am, Kb . kb.kb.1...@gmail.com wrote:
 I have a Java code that uses

     java.net.DatagramPacket;
     java.net.DatagramSocket;
     java.net.InetAddress;

 It runs fine in eclipse if Run as Java application
 But when using it in GWT client code it does not compile.

 I tried copying files to GWT server package and then importing in
 Client But Stil Does not Compile.

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



Re: Code Does not Compile

2011-08-22 Thread Mark
Everything to/from the client must be a valid emulated class so one
way you can achieve this is to use a Data Transfer Object composed of
classes that are valid for the client side.  Write a server-side
RemoteServlet to receive and translate this DTO into the calls you
want to perform and then translate the results into something that you
can send back to the client.  That's the most straight-forward way I
know if doing that you want to do.  Others may suggest a different
approach but I don't believe it's possible to make these calls
directly because of the restrictions imposed by GWT.

On Aug 22, 10:29 am, Kb . kb.kb.1...@gmail.com wrote:
 I am using them for Game Server Querying.
 Is there any other way to put it somewhere and use info in some other
 form in the code.

 On Aug 22, 7:23 pm, Mark mdshol...@gmail.com wrote:







  You cannot use every Java class in GWT client code; I'm pretty sure
  that java.net classes are not included.  
  Seehttp://code.google.com/webtoolkit/doc/latest/RefJreEmulation.htmlfor
  a list of emulated classes.

  On Aug 22, 8:35 am, Kb . kb.kb.1...@gmail.com wrote:

   I have a Java code that uses

       java.net.DatagramPacket;
       java.net.DatagramSocket;
       java.net.InetAddress;

   It runs fine in eclipse if Run as Java application
   But when using it in GWT client code it does not compile.

   I tried copying files to GWT server package and then importing in
   Client But Stil Does not Compile.

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



Re: How would you replicate Google+ layout?

2011-08-22 Thread Kees de Kooter
Take a look at the DockLayoutPanel.


On Mon, Aug 22, 2011 at 07:27, Amit Prahesh amit.prah...@gmail.com wrote:

 Hi there,

 I've been banging my head against the wall trying to replicate Google+'s
 layout, but haven't been succesful. This is what I want to achieve:


1. A 100% browser width bar at the top of the page, styled with a
background. Even if this bar -- or panel -- goes edge to edge, it's actual
content has the same limitations as number 2, below.
2. Three fixed-width columns, horizontally centered on the page
(browser).
3. An ever present clickable box, much like +'s Send feedback.

 Any ideas?

 TIA,
 Amit.

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



Re: Insane RPC Serialization Error.

2011-08-22 Thread dreamer
I had similar issues, all pointed back to some defensive coding.
As all calls are aync , behavior will be some what unexpected in few
situations.

Here are some tricks I played to such errors.

1) try in different browsers.
2) Load the app instance, then  try, meaning use once, and second,
third, is problem persistent.
2) In your loginConfig file, if is client side code, check for
nullability of the object you are casting, sure, what ever object ,
you are
are casting to is null, depending, how implemented the call, async
call might be delaying.
One trick, test for null and throw Window.alert(blah blah
object is null at line and class - till you resolve these issues.
3) I had the habit of coding this.variable=param - this thew null
pointer exception in IE9, I removed all this.variable
and named params with non-conflicting name. Obviously
javascript is not as robust as java, so we have code very
defensively.
4) I found, rather I coded more procedural way than forcing all OO
concepts in to code, this gave small footprint and performance. GWT
likes procedure code.
5) Client side, I did not spend much time but Window.alert is
working great for me. These are the things I should not see, if shows,
code broke some where, even I kept these in app engine uploaded, of-
course I don't have 1000's of users right now.

These are my experiences, You can experiment and find what works in
your situation.

-venu
http:schoolk12.appspot.com


On Aug 22, 6:48 am, Jambi michael.lukaszc...@googlemail.com wrote:
 Could you post the class contents? Maybe we can see something in your
 code.

 On 22 Aug., 15:08, Stefan Ollinger stefan.ollin...@gmx.de wrote:







  Some days ago I had a similar problem. Development version worked fine,
  but the compiled version gave those errors. What I did to resolve them,
  was to build my project from scratch. At the end I had a compiled and
  working version, having the same codebase like before.

  In the progress of resolving the error I also changed some eclipse settings:

  - Google Plugin for Eclipse - Default GWT Version from 2.2 to 2.3
  - Updated Maven Dependencies: GWT 2.2. to 2.3.0, GWT Maven Plugin 2.2 to
  2.3.0-1

  Finally I cannot say where this behaviour results from, but this is how
  I solved the problem.

  Regards,
  Stefan

  Am 22.08.2011 14:16, schrieb J.Ganesan:

   Any anonymous inner class you have ? That could be a problem.

   J.Ganesan
  www.DataStoreGwt.com

   On Aug 22, 4:38 pm, Gianluigidava...@yahoo.it  wrote:
   The problem is that the serialization behaviour is different from web 
   and hosted mode...
   I don't know how I should resolve this...

   
   Da: Gianluigidava...@yahoo.it
   A: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
   Inviato: Luned 22 Agosto 2011 10:30
   Oggetto: Insane RPC Serialization Error.

   Hi to all,

   It's several days I'm struggling with this error.
   I make a rpc call from GWT client to a server passing an object.

   This pojo contain several data ... and a String with some JSON stuff.

   The call in DEBUG mode works absolutely fine. Not only in debug mode, 
   but when I use the application connected with the GWT browser plugin.

   In production mode... the seralization fails!!! Nothing on server side. 
   I investigate the call in firebug... and the output is:

   Fri Aug 19 18:13:11 GMT+100 2011 
   com.google.gwt.logging.client.LogConfiguration
   SEVERE: null java.lang.ClassCastException: null

   at Unknown.collect_0(Unknown Source)
   at Unknown.createStackTrace_0(Unknown Source)
   at
     Unknown.fillInStackTrace_0(Unknown Source)
   at Unknown.fillInStackTrace(Unknown Source)
   at Unknown.$fillInStackTrace(Unknown Source)
   at Unknown.$$init_14(Unknown Source)
   at Unknown.Throwable_0(Unknown Source)
   at Unknown.Exception_0(Unknown Source)
   at Unknown.RuntimeException_0(Unknown Source)
   at Unknown.ClassCastException_0(Unknown Source) at 
   Unknown.dynamicCast(Unknown Source)
   at Unknown.makeValue(Unknown Source)
   at Unknown.makeValue_0(Unknown Source)
   at Unknown.$extractField(Unknown Source)
   at Unknown.extractField(Unknown Source)
   at Unknown.$extractData_0(Unknown Source)
   at Unknown.$makeObject(Unknown Source)
   at Unknown.makeValue(Unknown Source)
   at Unknown.writeObject(Unknown Source)
   at Unknown.serialize_33(Unknown Source)
   at Unknown.serialize_28(Unknown Source)
   at Unknown.$serialize(Unknown Source)
   ...

   That error output comes thanks to the -Dgwt.style=PRETTY ... otherwise 
   would be obfuscated.

   I'm struggling with this error. How is it possible that in debug mode 
   works properly?

   Any hints to resolve the issue?! THANKS!

   Muzero

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

Re: Insane RPC Serialization Error.

2011-08-22 Thread Stefan Ollinger

Try to reproduce the error with a small example.

Am 22.08.2011 16:29, schrieb Gianluigi:

Well, actually It's a massive class definition.
There are 2 piece of that class that I suspect gives troubles...

1) a string with a json definition inside
2) This typed map: MapKeyItem, LookupRow where KeyItem and LookupRow 
are other 2 objects with hashcode and equality methods defined properly...


I guess that there are some issues about the map due to the fact that 
firebug report to me this stuff...


level = SEVERE { impl=SEVERE, castableTypeMap$={...}, $H=374}
msg = null
thrown = java.lang.ClassCastException { stackTrace=[72], $H=240, 
castableTypeMap$={...}


...


*Da:* Jambi michael.lukaszc...@googlemail.com
*A:* Google Web Toolkit google-web-toolkit@googlegroups.com
*Inviato:* Lunedě 22 Agosto 2011 14:48
*Oggetto:* Re: Insane RPC Serialization Error.

Could you post the class contents? Maybe we can see something in your
code.

On 22 Aug., 15:08, Stefan Ollinger stefan.ollin...@gmx.de 
mailto:stefan.ollin...@gmx.de wrote:

 Some days ago I had a similar problem. Development version worked fine,
 but the compiled version gave those errors. What I did to resolve them,
 was to build my project from scratch. At the end I had a compiled and
 working version, having the same codebase like before.

 In the progress of resolving the error I also changed some eclipse 
settings:


 - Google Plugin for Eclipse - Default GWT Version from 2.2 to 2.3
 - Updated Maven Dependencies: GWT 2.2. to 2.3.0, GWT Maven Plugin 2.2 to
 2.3.0-1

 Finally I cannot say where this behaviour results from, but this is how
 I solved the problem.

 Regards,
 Stefan

 Am 22.08.2011 14:16, schrieb J.Ganesan:

  Any anonymous inner class you have ? That could be a problem.

  J.Ganesan
 www.DataStoreGwt.com

  On Aug 22, 4:38 pm, Gianluigidava...@yahoo.it 
mailto:dava...@yahoo.it  wrote:
  The problem is that the serialization behaviour is different from 
web and hosted mode...

  I don't know how I should resolve this...

  
  Da: Gianluigidava...@yahoo.it mailto:dava...@yahoo.it
  A: Google Web Toolkitgoogle-web-toolkit@googlegroups.com 
mailto:google-web-toolkit@googlegroups.com

  Inviato: Luned 22 Agosto 2011 10:30
  Oggetto: Insane RPC Serialization Error.

  Hi to all,

  It's several days I'm struggling with this error.
  I make a rpc call from GWT client to a server passing an object.

  This pojo contain several data ... and a String with some JSON stuff.

  The call in DEBUG mode works absolutely fine. Not only in debug 
mode, but when I use the application connected with the GWT browser 
plugin.


  In production mode... the seralization fails!!! Nothing on server 
side. I investigate the call in firebug... and the output is:


  Fri Aug 19 18:13:11 GMT+100 2011 
com.google.gwt.logging.client.LogConfiguration

  SEVERE: null java.lang.ClassCastException: null

  at Unknown.collect_0(Unknown Source)
  at Unknown.createStackTrace_0(Unknown Source)
  at
Unknown.fillInStackTrace_0(Unknown Source)
  at Unknown.fillInStackTrace(Unknown Source)
  at Unknown.$fillInStackTrace(Unknown Source)
  at Unknown.$$init_14(Unknown Source)
  at Unknown.Throwable_0(Unknown Source)
  at Unknown.Exception_0(Unknown Source)
  at Unknown.RuntimeException_0(Unknown Source)
  at Unknown.ClassCastException_0(Unknown Source) at 
Unknown.dynamicCast(Unknown Source)

  at Unknown.makeValue(Unknown Source)
  at Unknown.makeValue_0(Unknown Source)
  at Unknown.$extractField(Unknown Source)
  at Unknown.extractField(Unknown Source)
  at Unknown.$extractData_0(Unknown Source)
  at Unknown.$makeObject(Unknown Source)
  at Unknown.makeValue(Unknown Source)
  at Unknown.writeObject(Unknown Source)
  at Unknown.serialize_33(Unknown Source)
  at Unknown.serialize_28(Unknown Source)
  at Unknown.$serialize(Unknown Source)
  ...

  That error output comes thanks to the -Dgwt.style=PRETTY ... 
otherwise would be obfuscated.


  I'm struggling with this error. How is it possible that in debug 
mode works properly?


  Any hints to resolve the issue?! THANKS!

  Muzero

  --
  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 
mailto:google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com 
mailto:unsubscr...@googlegroups.com.
  For more options, visit this group 
athttp://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 
mailto:google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com 

How to show a User view in GWT app by typing in browser address bar

2011-08-22 Thread Xybrek
I have this gwt app which say, runs on http://mygwtapp.com/ (which is 
actually: http://mygwtapp.com/index.html)


The application host a database of users, queried by searching usernames 
using the search view and results are shown in the user results view. 
Pretty useful enough. However I need to bb add a way that user view can 
be viewed by just typing http://myapp.com/user123


I am thinking that the question I have here, the answer is a server side 
solution. However if there's a client side solution, please let me know.


One fellow here in StackOVerflow suggested that the format would be like 
this: mygwtapp.com/index.html#user123 however the format is important to 
be like: http://myapp.com/user123


I have tried using GWT Fragment Identifier approach well and works well 
when the app is in debug mode and when deployed in Tomcat it works when 
the main page has loaded already. This approach though it works the page 
is not bookmark-able, i.e. when users type 
http://myapp.com/index.html#user123 in the browser I get a blank page.


Is there any way to achieve this kind of feature?

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



Aw: How to show a User view in GWT app by typing in browser address bar

2011-08-22 Thread Jens
You have to use redirect rules on your web server, e.g. nginx, apache, 
tomcat, etc. That way you can deliver your app's index.html for different 
URLs based on regular expressions. Once your server delivers your index.html 
you can do Window.Location.getPath() in your EntryPoint and then do whatever 
you have to do.

The only downside is, that if your user names doesn't follow a specific 
pattern then you have to redirect nearly every request to your index.html 
(you would exclude your GWT-RPC/RequestFactory servlet URLs and in general 
all URLs that point to a file that really exists on your server). So you 
loose HTTP 404 errors on your web server because you can not decide if the 
request, that will point to a folder/file that does not exist on your 
server, e.g. /user123, is wrong and you should do a 404 or if its wrong but 
you have to redirect to index.html. If you want to keep 404's I think you 
have to change your desired URL to something like:
http://app.com/u/username. That way you could redirect only if you receive 
a request that starts with /u/.

A nice way to make your GWT pages bookmarkable is to use GWT's places 
framework. GWT Places uses the hash fragment of the URL to store information 
about the place (what place is active and what application state belongs to 
that place).

-- J.

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



Editor framework and polymorphic types.

2011-08-22 Thread Aidan O'Kelly
Anyone have any tips on using polymorphic types within the editor framework?
I have some paths of my object graph that hold polymorphic types, and
their getters return the super type. How can I create the correct
editor for these paths?
Creating a ValueAwareEditorT where T is the super-type, and I can
check what concrete type the object is in the setValue() method, and
then... ?  Or perhaps another way?

Cheers,
Aidan.

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



Re: Editor framework and polymorphic types.

2011-08-22 Thread Aidan O'Kelly
Actually I just found:
http://stackoverflow.com/questions/7043760/using-gwt-editors-with-a-complex-usecase
where bobv explains some ways to do it, so can ignore this question.

On Mon, Aug 22, 2011 at 6:35 PM, Aidan O'Kelly aida...@gmail.com wrote:
 Anyone have any tips on using polymorphic types within the editor framework?
 I have some paths of my object graph that hold polymorphic types, and
 their getters return the super type. How can I create the correct
 editor for these paths?
 Creating a ValueAwareEditorT where T is the super-type, and I can
 check what concrete type the object is in the setValue() method, and
 then... ?  Or perhaps another way?

 Cheers,
 Aidan.


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



Re: Aw: How to show a User view in GWT app by typing in browser address bar

2011-08-22 Thread Xybrek

On Tuesday, 23 August, 2011 01:08 AM, Jens wrote:

You have to use redirect rules on your web server, e.g. nginx, apache,
tomcat, etc. That way you can deliver your app's index.html for
different URLs based on regular expressions. Once your server delivers
your index.html you can do Window.Location.getPath() in your EntryPoint
and then do whatever you have to do.

The only downside is, that if your user names doesn't follow a specific
pattern then you have to redirect nearly every request to your
index.html (you would exclude your GWT-RPC/RequestFactory servlet URLs
and in general all URLs that point to a file that really exists on your
server). So you loose HTTP 404 errors on your web server because you can
not decide if the request, that will point to a folder/file that does
not exist on your server, e.g. /user123, is wrong and you should do a
404 or if its wrong but you have to redirect to index.html. If you want
to keep 404's I think you have to change your desired URL to something like:
http://app.com/u/username. That way you could redirect only if you
receive a request that starts with /u/.

A nice way to make your GWT pages bookmarkable is to use GWT's places
framework. GWT Places uses the hash fragment of the URL to store
information about the place (what place is active and what application
state belongs to that place).

-- J.

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



So you mean with gwt places when user type in the browser url like 
http://mygwtapp.com/user456 it will show the view for the user? Even if 
user page has not been browsed in the browser used? I am really 
unfamiliar with gwt places.


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



Re: Funny behaviour in CellTable.

2011-08-22 Thread Jeff Chimene
On 08/22/2011 02:34 AM, jsg wrote:
 Hi Jeff,
 
 Given both our experience and your confirmation, I'm going to file a
 bug report in case this thread isn't being noticed.
 
 Thanks for your effort.
 
 On Aug 22, 12:46 am, jchimene jchim...@gmail.com wrote:
 Hi Julian,

 I was too glib in my earlier reply.

 I, too, am seeing this problem. I hadn't completetly tested this app
 in production mode, and it fails miserably when compiled.

 So, I will post updates to this thread when I get a solution that
 works not only in development mode, but also when compiled.

The answer (at least in my case), was the following:

try {
   switch (MyVariable) {
case 1: return 1;
case 2: return 2;
.
.
.
} catch (NullPointerException e) {
   return 1;
}

In compiled mode, the try/catch doesn't, so the Javascript was failing
at the switch expression evaluation. So, the side-effect was that the
display was never refresh()-ing

Try compiling in PRETTY mode and checking for exceptions.


 On Aug 19, 8:17 am, jsg jgerso...@gmail.com wrote:

 We have refreshed the view because instead of calling
 ListDataProvider.refresh() which simply calls updateRowData() for all
 the registered displays, we've done the following:

 By calling batchTable.setRowData() we are simply more directly
 targeting both the display and only the row that has changed. (Rather
 than all visible rows by calling refresh().)
 As far as I can tell from the system, the DataProviders have no
 knowledge of the internal column data and so they can't know if any of
 the values of the rows have been updated. Only that the row instances
 themselves have changed. (I have tested it now, just to be safe,
 replacing setRowData() with refresh() with the same results.)

 Our use case is not so uncommon that we should be struggling so much
 with this intended functionality.

 Thanks for your prompt reply.
 Julian

 On Aug 19, 4:16 pm, Jeffrey Chimene jchim...@gmail.com wrote:

 On 8/19/2011 4:53 AM, jsg wrote:

 Thanks for your insight.

 However, after wrapping the setRowData() in a ScheduleDeferred like
 so:

 Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {

 batchTable.setRowData(index,
 Collections.singletonList(object));
}
});

 There is no perceived change in behaviour.
 I've tried wrapping the whole FieldUpdater.update() contents inside
 the execute() action, but to no avail.

 I'm not sitting in front of my GWT development machine,so I don't have
 this exactly right,but where are you calling the list.refresh() method?
 You've updated the backing list, but not refreshed the view (at least in
 the sample).

 On Aug 18, 10:01 pm, Jeff Chimenejchim...@gmail.com  wrote:
 On 08/18/2011 12:05 PM, jsg wrote:

 Hello.
 I've created a test case of my CellTable issue as a self contained
 panel that can easily be imported into any project:
 http://pastebin.com/zDLPKUNh
 Basically I have two Date class fields in my row model, a startDate
 and an endDate. Each Date has two columns in the CellTable (called
 batchTable), one to display the actual date (a DatePickerCell) and
 the other being a text input cell for the time.
 When the FieldUpdater of the startTime or endTime is fired we parse
 the value, save the new time and call batchTable.setRowData() with
 the updated object and row index.
 The problem is that when FieldUpdater is fired, the cells do not
 update. I specifically edited the FieldUpdater of the endTime cell
 to be an hour later than what it was set at.
 I've checked as best as I can that all the gets and sets of the
 respective startDate and endDate are in order, but I'm thinking that
 there's something about CellTable I'm not getting.
 Apologies if I've missed anything.
 I'm running: GWT 2.3
 I've tested it in the latest Chrome and IE9.
 Regards, Julian
 Try putting your update actions inside a ScheduleDeferred command.

 The issue seems to be the coupling between the FieldUpdater and the
 cellTable refresh logic. Running the FieldUpdate.update() action after
 the browser's refresh loop seems to address this issue.
 

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



What content management system are you using with GWT?

2011-08-22 Thread Nano Elefant
Hello folks,

I'm curious what content management system is mostly used to embed GWT
apps into. Are you using a CMS at all? If so please post the name and
or a link.

Thank you!

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



Re: JQuery like animation

2011-08-22 Thread Dimitrijević Ivan
You can include jQuery fraework in your application and use JSNI to invoke 
jQuery's animation function.

public class Animation {
public static int SPEED_SLOW = 1300;
public static int SPEED_NORMAL = 800;
public static int SPEED_FAST = 400;
 public static native void doFadeInAnimation(Element e, int speed)/*-{
$wnd.jQuery(e).fadeIn(speed);
}-*/;
}

In order to animate some GWT UI element you should write:

Animation.doFadeInAnimation(*yourGWTUIElement*.getElement(), 
Animation.SPEED_SLOW);

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



Re: DoubleBox cell decimals positions formatting

2011-08-22 Thread fabio.bozzo
Can you help me with a little example 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Funny behaviour in CellTable.

2011-08-22 Thread jsg
We haven't tried it in compiled mode yet, but it definitely doesn't
work in dev mode for us.

What is your code that returns a value? Neither the
FieldUpdate.update() nor the ScheduledCommand.execute() expects a
value back so I'm a little perplexed as to your context? And what is
MyVariable?

Sorry if I've just lost the plot.

On Aug 22, 8:47 pm, Jeff Chimene jchim...@gmail.com wrote:
 On 08/22/2011 02:34 AM, jsg wrote:









  Hi Jeff,

  Given both our experience and your confirmation, I'm going to file a
  bug report in case this thread isn't being noticed.

  Thanks for your effort.

  On Aug 22, 12:46 am, jchimene jchim...@gmail.com wrote:
  Hi Julian,

  I was too glib in my earlier reply.

  I, too, am seeing this problem. I hadn't completetly tested this app
  in production mode, and it fails miserably when compiled.

  So, I will post updates to this thread when I get a solution that
  works not only in development mode, but also when compiled.

 The answer (at least in my case), was the following:

 try {
    switch (MyVariable) {
     case 1: return 1;
     case 2: return 2;
     .
     .
     .

 } catch (NullPointerException e) {
    return 1;
 }

 In compiled mode, the try/catch doesn't, so the Javascript was failing
 at the switch expression evaluation. So, the side-effect was that the
 display was never refresh()-ing

 Try compiling in PRETTY mode and checking for exceptions.









  On Aug 19, 8:17 am, jsg jgerso...@gmail.com wrote:

  We have refreshed the view because instead of calling
  ListDataProvider.refresh() which simply calls updateRowData() for all
  the registered displays, we've done the following:

  By calling batchTable.setRowData() we are simply more directly
  targeting both the display and only the row that has changed. (Rather
  than all visible rows by calling refresh().)
  As far as I can tell from the system, the DataProviders have no
  knowledge of the internal column data and so they can't know if any of
  the values of the rows have been updated. Only that the row instances
  themselves have changed. (I have tested it now, just to be safe,
  replacing setRowData() with refresh() with the same results.)

  Our use case is not so uncommon that we should be struggling so much
  with this intended functionality.

  Thanks for your prompt reply.
  Julian

  On Aug 19, 4:16 pm, Jeffrey Chimene jchim...@gmail.com wrote:

  On 8/19/2011 4:53 AM, jsg wrote:

  Thanks for your insight.

  However, after wrapping the setRowData() in a ScheduleDeferred like
  so:

  Scheduler.get().scheduleDeferred(new ScheduledCommand() {
                                             @Override
                                             public void execute() {
                                                     
  batchTable.setRowData(index,
  Collections.singletonList(object));
                                             }
                                     });

  There is no perceived change in behaviour.
  I've tried wrapping the whole FieldUpdater.update() contents inside
  the execute() action, but to no avail.

  I'm not sitting in front of my GWT development machine,so I don't have
  this exactly right,but where are you calling the list.refresh() method?
  You've updated the backing list, but not refreshed the view (at least in
  the sample).

  On Aug 18, 10:01 pm, Jeff Chimenejchim...@gmail.com  wrote:
  On 08/18/2011 12:05 PM, jsg wrote:

  Hello.
  I've created a test case of my CellTable issue as a self contained
  panel that can easily be imported into any project:
 http://pastebin.com/zDLPKUNh
  Basically I have two Date class fields in my row model, a startDate
  and an endDate. Each Date has two columns in the CellTable (called
  batchTable), one to display the actual date (a DatePickerCell) and
  the other being a text input cell for the time.
  When the FieldUpdater of the startTime or endTime is fired we parse
  the value, save the new time and call batchTable.setRowData() with
  the updated object and row index.
  The problem is that when FieldUpdater is fired, the cells do not
  update. I specifically edited the FieldUpdater of the endTime cell
  to be an hour later than what it was set at.
  I've checked as best as I can that all the gets and sets of the
  respective startDate and endDate are in order, but I'm thinking that
  there's something about CellTable I'm not getting.
  Apologies if I've missed anything.
  I'm running: GWT 2.3
  I've tested it in the latest Chrome and IE9.
  Regards, Julian
  Try putting your update actions inside a ScheduleDeferred command.

  The issue seems to be the coupling between the FieldUpdater and the
  cellTable refresh logic. Running the FieldUpdate.update() action after
  the browser's refresh loop seems to address this issue.

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

Aw: Re: Aw: How to show a User view in GWT app by typing in browser address bar

2011-08-22 Thread Jens
Well it would, but your problem is your URL requirement. 

With standard GWT Places your URL would look like: 
http://mygwtapp.com/#UserPlace:unique username or db id or if you 
customize GWT Places you could achieve URLs like 
http://mygwtapp.com/#/user/unique username or db id. So as you can see GWT 
places also uses the hash fragment of an URL to store information.  So you 
should only use it if you can change your URL requirement to something that 
GWT places is able to give you. 

If you really need this URL requirement then your only chance is to 
configure your server side rewrite correctly so that your app starts and 
read the URL path from within your app. Your app then has to decide what to 
do when it sees the path userXYZ or something other.

-- J.





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



Re: JQuery like animation

2011-08-22 Thread Christian Goudreau
I remember seeing a race between Gwt-Query and jQuery with animations where
Gwt-Query run that race, does anyone has de link to that video somewhere?

2011/8/22 Dimitrijević Ivan dim...@gmail.com

 You can include jQuery fraework in your application and use JSNI to invoke
 jQuery's animation function.

 public class Animation {
 public static int SPEED_SLOW = 1300;
 public static int SPEED_NORMAL = 800;
 public static int SPEED_FAST = 400;
  public static native void doFadeInAnimation(Element e, int speed)/*-{
 $wnd.jQuery(e).fadeIn(speed);
 }-*/;
 }

 In order to animate some GWT UI element you should write:

 Animation.doFadeInAnimation(*yourGWTUIElement*.getElement(),
 Animation.SPEED_SLOW);

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

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Christian Goudreau
www.arcbees.com

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



CellTree isLeaf() in practice

2011-08-22 Thread fabio.bozzo
I'm trying to display a tree of Categories, following the basic
CellTree gwt examples.
What I am stuck at is determining the leaf condition of a Category.
A Category is-a-leaf when it hasn't children, right? So, here's my
Category (I am using Objectify for appengine persistence):

@Entity
public class Categoria implements Serializable {

private static final long serialVersionUID = 1L;

@Id
Long id;

String nome;
KeyCategoria parent;

public Categoria() { }

public Categoria(String nome) {
super();
this.nome = nome;
}

public String getNome() {
return nome;
}

public void setNome(String nome) {
this.nome = nome;
}

public KeyCategoria getParent() {
return parent;
}

public void setParent(KeyCategoria parent) {
this.parent = parent;
}
}

My TreeViewModel is based on AsyncDataProvider (which I pass from
outside):

public class CategorieTreeViewModel implements TreeViewModel {

private AbstractDataProviderCategoria dataProvider;

public CategorieTreeViewModel(AbstractDataProviderCategoria
dataProvider) {
this.dataProvider = dataProvider;
}

@Override
public T NodeInfo? getNodeInfo(T value) {
return new DefaultNodeInfoCategoria(dataProvider, new
CategoriaCell());
}

@Override
public boolean isLeaf(Object value) {
return false;
}
}

So here it is:

dataProvider = new AsyncDataProviderCategoria() {
@Override
protected void onRangeChanged(HasDataCategoria display)
{
updateTree();
}
};

private void updateTree() {
rpcService.getCategorie(new AsyncCallbackCategoria[]() {
@Override
public void onSuccess(Categoria[] result) {
dataProvider.updateRowCount(result.length, true);
dataProvider.updateRowData(0, Arrays.asList(result));
}
@Override
public void onFailure(Throwable caught) {
Window.alert(caught.toString());
}
});
}

The question is: since I don't have a leaf property on my Category
bean, how can I know if it has children or not? By doing a query
obviously, but the isLeaf method needs to return synchronously, how
can I make my rpc call?

Or I can retrieve that leaf information in the getCategorie() call,
filling the property at runtime, but this could be a performance
problem.

What can I do?

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



Re: Funny behaviour in CellTable.

2011-08-22 Thread Jeff Chimene
On 08/22/2011 01:13 PM, jsg wrote:
 We haven't tried it in compiled mode yet, but it definitely doesn't
 work in dev mode for us.

Alright - at least that's better than what was happening on my side. The
problem was that in dev mode, the NPE exception was correctly caught in
the try/catch block.

In compiled mode, the NPE doesn't exist, it's caught as a
JavaScriptException.

My code example was intended to demonstrate that when MyVariable is
null, then the catch of the NPE doesn't happen in compiled mode.

I was hoping that you were seeing the same thing: the refresh() succeeds
in dev mode, but not in compiled mode because the NPE can't be caught in
compiled mode. The refresh() never got called because of the NPE.

In your case, it's not working in dev mode. In that case, what do you
see when the presenter does not refresh?

Also, is the celltable setup to allow focus to one cell? If so, does the
refresh occur if you set focus to a cell, the blur out of that cell? One
thing I was going to try before I figured out the NPE, was to subclass
CellTable, and start hooking into some of the protected() routines.

 
 What is your code that returns a value? Neither the
 FieldUpdate.update() nor the ScheduledCommand.execute() expects a
 value back so I'm a little perplexed as to your context? And what is
 MyVariable?
 
 Sorry if I've just lost the plot.
 
 On Aug 22, 8:47 pm, Jeff Chimene jchim...@gmail.com wrote:
 On 08/22/2011 02:34 AM, jsg wrote:









 Hi Jeff,

 Given both our experience and your confirmation, I'm going to file a
 bug report in case this thread isn't being noticed.

 Thanks for your effort.

 On Aug 22, 12:46 am, jchimene jchim...@gmail.com wrote:
 Hi Julian,

 I was too glib in my earlier reply.

 I, too, am seeing this problem. I hadn't completetly tested this app
 in production mode, and it fails miserably when compiled.

 So, I will post updates to this thread when I get a solution that
 works not only in development mode, but also when compiled.

 The answer (at least in my case), was the following:

 try {
switch (MyVariable) {
 case 1: return 1;
 case 2: return 2;
 .
 .
 .

 } catch (NullPointerException e) {
return 1;
 }

 In compiled mode, the try/catch doesn't, so the Javascript was failing
 at the switch expression evaluation. So, the side-effect was that the
 display was never refresh()-ing

 Try compiling in PRETTY mode and checking for exceptions.









 On Aug 19, 8:17 am, jsg jgerso...@gmail.com wrote:

 We have refreshed the view because instead of calling
 ListDataProvider.refresh() which simply calls updateRowData() for all
 the registered displays, we've done the following:

 By calling batchTable.setRowData() we are simply more directly
 targeting both the display and only the row that has changed. (Rather
 than all visible rows by calling refresh().)
 As far as I can tell from the system, the DataProviders have no
 knowledge of the internal column data and so they can't know if any of
 the values of the rows have been updated. Only that the row instances
 themselves have changed. (I have tested it now, just to be safe,
 replacing setRowData() with refresh() with the same results.)

 Our use case is not so uncommon that we should be struggling so much
 with this intended functionality.

 Thanks for your prompt reply.
 Julian

 On Aug 19, 4:16 pm, Jeffrey Chimene jchim...@gmail.com wrote:

 On 8/19/2011 4:53 AM, jsg wrote:

 Thanks for your insight.

 However, after wrapping the setRowData() in a ScheduleDeferred like
 so:

 Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {

 batchTable.setRowData(index,
 Collections.singletonList(object));
}
});

 There is no perceived change in behaviour.
 I've tried wrapping the whole FieldUpdater.update() contents inside
 the execute() action, but to no avail.

 I'm not sitting in front of my GWT development machine,so I don't have
 this exactly right,but where are you calling the list.refresh() method?
 You've updated the backing list, but not refreshed the view (at least in
 the sample).

 On Aug 18, 10:01 pm, Jeff Chimenejchim...@gmail.com  wrote:
 On 08/18/2011 12:05 PM, jsg wrote:

 Hello.
 I've created a test case of my CellTable issue as a self contained
 panel that can easily be imported into any project:
 http://pastebin.com/zDLPKUNh
 Basically I have two Date class fields in my row model, a startDate
 and an endDate. Each Date has two columns in the CellTable (called
 batchTable), one to display the actual date (a DatePickerCell) and
 the other being a text input cell for the time.
 When the FieldUpdater of the startTime or endTime is fired we parse
 the value, save the new time and call batchTable.setRowData() with
 the updated object 

GWT Date 'week of year' and 'day of week' problem

2011-08-22 Thread md
Hi!







Due to the fact that the Java Calendar Class is (unfortunately) not
compatible with GWT I’m having some problems:

I need to generate a Date-Object out of the Information by “week of
year” and “day of week”.

With the Calendar-class my code looks like:





Calendar cal = Calendar.getInstance();

cal.set(Calendar.WEEK_OF_YEAR, getComboBox_6().getSelectedIndex()+1 );

cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);





Is there any possibility to solve this problem by using the normal
‘Date’-class or ‘DateTimeFormat’ or any other suggestions?

Thanks for your reply!

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



GWTCanvas alternatives

2011-08-22 Thread AThinerCoin
I'm trying to create a chart using GWT.  The chart has a grid and x
and y axis labels and at least one line indicating status over time.
The example code I got from a co-worker uses two classes the
com.google.gwt.widgetideas.graphics.client package: GWTCanvas and
Color.

The documentation about GWTCanvas says to use Canvas instead, but
Canvas has a very limited number of methods.  How do I replicate these
methods?
- clear()
- setFillStyle(Color color)
- fillRect(double startX, double startY, double width, double height)
- setLineWidth(double width)
- setStrokeStyle(Color color)
- beginPath()
- moveTo(double x, double y)
- lineTo(double x, double y)
- stoke()

Any help is appreciated.  Thanks!
-Laura

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



Re: Insane RPC Serialization Error.

2011-08-22 Thread Jambi
 Try to reproduce the error with a small example.


I would also recommend that. Are the classes KeyItem and LookupRow
serializable? Do they implement an interface for serialization?
Because they need to.

check out this documentation:
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes

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



AutoBean with JSONP

2011-08-22 Thread pash7ka
Hi! I'm trying to use AutoBean framework to transfer data from server
to GWT App. GWT-RPC is not good for me, because i need to cache
responces.
So I'm trying to use JsonpRequestBuilder to fetch data and AutoBean
framework for encoding/decoding.

The simple (and not working) aproach is like this:
  servlet's doGet() method ---
String json = AutoBeanCodex.encode(data).getPayload();
String callback = request.getParameter(callback);
PrintWriter out = response.getWriter();
try {
out.write(callback);
out.write(();
out.write(json);
out.write(););
} finally {
out.close();
}

--- client ---
JsonpRequestBuilder jrb; // = ...
jrb.requestString(url, new AsyncCallbackString(){
public void onSuccess(String result) {
AutoBeanDataType bean = AutoBeanCodex.decode(factory,
DataType.class, result);
DataType data = bean.as();
//
}
public void onFailure(Throwable caught) {
}
});
-
Unfortunately, this does not work, because returned data is not
actualy a String, it's a JavaScript object.

I've tried to escape json on the server to make it String:
---
out.write(callback);
out.write((\);
out.write(escape(json));
out.write(\););
---
This works, but in my case it increases responce size from 700kb to
3Mb which is really not good.

Any ideas what to with this?

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



Re: GWTCanvas alternatives

2011-08-22 Thread Seth Hollyman
Generally you grab a Context2d object from the canvas, and most of the 
methods you identified are exposed there.

See:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/canvas/dom/client/Context2d.html


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



Re: AutoBean with JSONP

2011-08-22 Thread pash7ka
I've found a solution: it's possible to convert Object to String on
the client:
---
JsonpRequestBuilder jrb; // = ...
jrb.requestObject(url, new AsyncCallbackJavaScriptObject(){
public void onSuccess(String result) {
JSONObject jsObj = new JSONObject(result);
AutoBeandatatype bean = AutoBeanCodex.decode(factory,
DataType.class, jsObj.toString());
DataType data = bean.as();
//
}
public void onFailure(Throwable caught) {
}
});
-
But I don't know about performance: parsing this object 2 times on the
client may be slow.
May be there are some better solutions?

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



CellTree: is anybody working on fixing it?

2011-08-22 Thread ussuri
Hello!

In its current form, CellTree is unusable for anything but simplest
use cases. For example, removing a selected node from its parent's
ListDataProvider breaks the tree in the debug mode (the tree becomes
unresponsive to the user); basically, almost any programmatic
operation on a populated CellTree (via ListDataProviders) breaks it
visually in some way.

Is there an effort under way to fix this widget, or should we use the
old widget, or something from a third-party?

Thanks,
MG

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



Re: CellTree: is anybody working on fixing it?

2011-08-22 Thread Jim Douglas
I haven't tried CellTree myself, so I don't have an opinion on it one
way or the other, but if it was me, I'd start by reviewing the list of
open bug reports against it and starring the ones that seem to be
affecting my app.

http://code.google.com/p/google-web-toolkit/issues/list?q=CellTree
http://code.google.com/p/google-web-toolkit/issues/list?q=Cell

On Aug 22, 6:42 pm, ussuri michael.glas...@gmail.com wrote:
 Hello!

 In its current form, CellTree is unusable for anything but simplest
 use cases. For example, removing a selected node from its parent's
 ListDataProvider breaks the tree in the debug mode (the tree becomes
 unresponsive to the user); basically, almost any programmatic
 operation on a populated CellTree (via ListDataProviders) breaks it
 visually in some way.

 Is there an effort under way to fix this widget, or should we use the
 old widget, or something from a third-party?

 Thanks,
 MG

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



(perplexing + frustrating) CSS image not found

2011-08-22 Thread Shawn Brown
Hi,

I have a compiled project deployed on AppEngine.

Some .gif files are not found by GWT.

I am perplexed.

The CSS file is found.
Other .gif images used by the CSS file are found.

Looking at DevTools in Chrome, I see which ones are not found.
Clicking on the link, the server finds them and shows them in my
browser.

Why can I directly access them using the url that it is being reported
GWT can not find them at.

I mean:

/images/panel/top.gif  --- is found
/images/panel/bottom.gif -- is not found by gwt but can be accessed
by using the link DevTools says GWT says it's not at.

Dev mode shows the same things.

It's just beyond crazy.

If client bundle is the only way to use things, the docs should say that.

Shawn

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



Warning while add a widget to absolute panel

2011-08-22 Thread Charan
Warning: com.google.gwt.user.client.ui.AbsolutePanel descendants will
be incorrectly positioned, i.e. not relative to their parent element,
when 'position:static', which is the CSS default, is in effect. One
possible fix is to call
'panel.getElement().getStyle().setPosition(Position.RELATIVE)'.

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



Error while compiling gwt module ?.

2011-08-22 Thread suresh babu
Hi,

I am using *Gwt 2.3.0* and Eclipse Version: 3.6.1 IDE, when I try to compile
my module I am getting following error:

Compiling module com.veersoft.gwt.AgeingReport
   Validating newly compiled units
  [ERROR] Errors in
'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/EditorDriver.java'
 [ERROR] Line 20: The import javax.validation.ConstraintViolation
cannot be resolved
 [ERROR] Line 97: ConstraintViolation cannot be resolved to a type
  [ERROR] Errors in
'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/impl/AbstractSimpleBeanEditorDriver.java'
 [ERROR] Line 28: Name clash: The method
setConstraintViolations(IterableConstraintViolation?) of type
BaseEditorDriverT,E has the same erasure as
setConstraintViolations(IterableConstraintViolation?) of type
EditorDriverT but does not override it
  [ERROR] Errors in
'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'
 [ERROR] Line 31: The import javax.validation.ConstraintViolation
cannot be resolved
 [ERROR] Line 67: ConstraintViolation cannot be resolved to a type
  [ERROR] Errors in
'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java'
 [ERROR] Line 25: The import javax.validation.ConstraintViolation
cannot be resolved
 [ERROR] Line 40: ConstraintViolation cannot be resolved to a type
 [ERROR] Line 43: ConstraintViolation cannot be resolved to a type
 [ERROR] Line 44: Missing code implementation in the compiler
 [ERROR] Line 49: ConstraintViolation cannot be resolved to a type
 [ERROR] Line 49: Missing code implementation in the compiler
 [ERROR] Line 70: ConstraintViolation cannot be resolved to a type
 [ERROR] Line 72: ConstraintViolation cannot be resolved to a type
 [ERROR] Line 73: ConstraintViolation? cannot be resolved to a
type
 [ERROR] Line 77: ConstraintViolationcapture#2-of ? cannot be
resolved to a type
 [ERROR] Line 81: ConstraintViolationcapture#3-of ? cannot be
resolved to a type
 [ERROR] Line 89: ConstraintViolationcapture#4-of ? cannot be
resolved to a type
 [ERROR] Line 93: ConstraintViolationcapture#5-of ? cannot be
resolved to a type
 [ERROR] Line 98: ConstraintViolation cannot be resolved to a type
  [ERROR] Errors in
'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/testing/MockSimpleBeanEditorDriver.java'
 [ERROR] Line 26: The import javax.validation.ConstraintViolation
cannot be resolved
 [ERROR] Line 35: The type MockSimpleBeanEditorDriverT,E must
implement the inherited abstract method
EditorDriverT.setConstraintViolations(IterableConstraintViolation?)
 [ERROR] Line 107: Name clash: The method
setConstraintViolations(IterableConstraintViolation?) of type
MockSimpleBeanEditorDriverT,E has the same erasure as
setConstraintViolations(IterableConstraintViolation?) of type
EditorDriverT but does not override it
 [ERROR] Line 108: ConstraintViolation cannot be resolved to a type
  [ERROR] Errors in
'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/javax/validation/super/javax/validation/Configuration.java'
 [ERROR] Line 93: TraversableResolver cannot be resolved to a type
 [ERROR] Line 105: ConstraintValidatorFactory cannot be resolved to
a type
 [ERROR] Line 182: TraversableResolver cannot be resolved to a type
 [ERROR] Line 182: No source code is available for type
TraversableResolver; did you forget to inherit a required module?
 [ERROR] Line 194: ConstraintValidatorFactory cannot be resolved to
a type
 [ERROR] Line 194: No source code is available for type
ConstraintValidatorFactory; did you forget to inherit a required module?
 [ERROR] Line 202: ValidatorFactory cannot be resolved to a type
 [ERROR] Line 202: No source code is available for type
ValidatorFactory; did you forget to inherit a required module?
  [ERROR] Errors in
'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/javax/validation/ConstraintViolationException_CustomFieldSerializer.java'
 [ERROR] Line 30: ConstraintViolationException cannot be resolved to
a type
 [ERROR] Line 34: ConstraintViolationException cannot be resolved to
a type
 [ERROR] Line 34: No source code is available for type
ConstraintViolationException; did you forget to inherit a required module?
 [ERROR] Line 39: ConstraintViolation cannot be resolved to a type
 [ERROR] Line 39: ConstraintViolation cannot be resolved to a type
 [ERROR] Line 40: ConstraintViolationException cannot be resolved to
a type
 [ERROR] Line 44: ConstraintViolationException cannot be resolved to
a type
  [ERROR] Errors in
'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/javax/validation/super/javax/validation/MessageInterpolator.java'
 

JUnit testcase with SmartGwt

2011-08-22 Thread Raja Shekhar
Hi,

i'm using SmartGwt for xpath.
i'm able to execute it successfully in webapplication.
i have written a GWTTestcase to test this.
when i run that testcase, it is failing in runtime by throwing runtime
exception.

could someone please help me resolving this issue

here is the exception info:

java.lang.RuntimeException: Remote test failed at 10.64.123.39 / Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19) Gecko/2010031422
Firefox/3.0.19

at
com.google.gwt.junit.JUnitShell.processTestResult(JUnitShell.java:1288)

at
com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1408)

at
com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1309)

at
com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:650)

at
com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:441)

at junit.framework.TestCase.runBare(TestCase.java:130)

at junit.framework.TestResult$1.protect(TestResult.java:106)

at
junit.framework.TestResult.runProtected(TestResult.java:124)

at junit.framework.TestResult.run(TestResult.java:109)

at junit.framework.TestCase.run(TestCase.java:120)

at
com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:296)

at junit.framework.TestSuite.runTest(TestSuite.java:230)

at junit.framework.TestSuite.run(TestSuite.java:225)

at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)

at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Caused by: java.lang.Exception:
com.google.gwt.core.client.JavaScriptException: (null): null

at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)

at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132)

at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)

at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)

at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)

at
com.smartgwt.client.data.XMLTools.selectString(XMLTools.java)

.. ... 


-- 
Thanks,
Raja

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



RequestFactory Objectify One to One Relationship

2011-08-22 Thread MaximeMularz
Hello,

I've a problem with RequestFactory, Objectify and One to One
RelationShip. The problem is at the bottom of this post.

Entities :
Class Owner :
public class Owner extends DatastoreObject {

private String name;
transient @Transient
private Animal animal;

private KeyAnimal keyAnimal;

public Owner() {
}

public void setname(String name) {
this.name = name;
}

public String getname() {
return name;
}


public Animal getAnimal() {
return new AnimalDao().get(keyAnimal);
}

public void setAnimal(Animal Animal) {
this.keyAnimal = new AnimalDao().key(Animal);
}


public void setAnimalTransient(Animal Animal) {
this.AnimalTransient = Animal;
}

public Animal getAnimalTransient() {
return AnimalTransient;
}

}

Class Animal :
public class Animal extends DatastoreObject {
private static final long serialVersionUID = 1L;

private String name;


public Animal()
{
// No-arg constructor required by Objectify
}

public void setName(String name) {
this.code = code;
}

public String getName() {
return code;
}

}


EntityProxy :
@ProxyFor(value = Owner.class, locator = ObjectifyLocator.class)
public class OwnerProxy extends EntityProxy {
void setname(String name);

String getname();

public AnimalProxy getAnimalTransient();

}


Interface AnimalProxy :

@ProxyFor(value = Animal.class, locator = ObjectifyLocator.class)
public interface AnimalProxy extends EntityProxy {

Long getId();

String getName();

void setName(String name);

}

Interface OwnerRequest :

@Service(value = OwnerDao.class, locator = DaoServiceLocator.class)
public interface OwnerRequest extends RequestContext {

RequestOwnerProxy saveandReturn(animalProxy animalProxy);
}


Class OwnerDao :

public Owner saveee(Owner p) {

p.setAnimal(new AnimalDao().get(new Long(259))); // name is 
Milou
p.setAnimalTransient(p.getAnimal);
this.put(p);
System.out.println(p.getAnimalTransient.getName()); It works 
Milou
return p;
}

Appiclation Implementation :

OwnerRequest animalRequest = requestFactory.ownerRequest();

OwnerProxy ownerProxy = ownerRequest.create(OwnerProxy.class);
ownerProxy.setName(Jean de la Fontaine);
ownerRequest.saveandReturn(ownerProxy).fire(new
ReceiverOwnerProxy() {

// The problem is
here*
@Override
public void onSuccess(OwnerProxy response) {
System.out.println(My name is + 
response.getValue()); // It
works My name is Jean de la Fontaine

System.out.println(response.getAnimalTransient().getName()); // It
doesn't work Error :
// Caused by: java.lang.NullPointerException: null

}
});

I can't use the methods getAnimalTransient() on client side,
animalTransient looks empty.

Thanks for your help

Maxime

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



[gwt-contrib] Re: Add bootstrap tests (issue1526804)

2011-08-22 Thread rchandia

On 2011/08/20 04:04:50, Nick Chalko wrote:

LGTM

http://gwt-code-reviews.appspot.com/1526804/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] [google-web-toolkit] r10559 committed - Add bootstrap tests...

2011-08-22 Thread codesite-noreply

Revision: 10559
Author:   gwt.mirror...@gmail.com
Date: Mon Aug 22 09:48:40 2011
Log:  Add bootstrap tests
159 of 257 (61.87%) Pass with 32 Failures and 7 Errors.

Review at http://gwt-code-reviews.appspot.com/1526804

Review by: rchan...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10559

Added:
 /trunk/user/test/com/google/gwt/validation/tck/BootstrapGwtSuite.java
 /trunk/user/test/org/hibernate/jsr303/tck/tests/bootstrap
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/bootstrap/ConfigurationGwtTest.java
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/bootstrap/CustomMessageInterpolatorGwtTest.java

 /trunk/user/test/org/hibernate/jsr303/tck/tests/bootstrap/TckTest.gwt.xml
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/bootstrap/TckTestValidatorFactory.java
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/bootstrap/ValidationProviderGwtTest.java
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/bootstrap/ValidationProviderResolverGwtTest.java
  
/trunk/user/test-super/org/hibernate/jsr303/tck/super/org/hibernate/jsr303/tck/tests/bootstrap
  
/trunk/user/test-super/org/hibernate/jsr303/tck/super/org/hibernate/jsr303/tck/tests/bootstrap/CustomMessageInterpolatorTest.java


===
--- /dev/null
+++ /trunk/user/test/com/google/gwt/validation/tck/BootstrapGwtSuite.java	 
Mon Aug 22 09:48:40 2011

@@ -0,0 +1,39 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.validation.tck;
+
+import junit.framework.Test;
+
+import org.hibernate.jsr303.tck.tests.bootstrap.ConfigurationGwtTest;
+import  
org.hibernate.jsr303.tck.tests.bootstrap.CustomMessageInterpolatorGwtTest;

+import org.hibernate.jsr303.tck.tests.bootstrap.ValidationProviderGwtTest;
+import  
org.hibernate.jsr303.tck.tests.bootstrap.ValidationProviderResolverGwtTest;

+import org.hibernate.jsr303.tck.util.TckTestSuiteWrapper;
+
+/**
+ * Tck Tests for the {@code bootstrap} package.
+ */
+public class BootstrapGwtSuite {
+  public static Test suite() {
+TckTestSuiteWrapper suite = new TckTestSuiteWrapper(
+TCK for GWT Validation, constraints bootstrap package);
+suite.addTestSuite(ConfigurationGwtTest.class);
+suite.addTestSuite(CustomMessageInterpolatorGwtTest.class);
+suite.addTestSuite(ValidationProviderGwtTest.class);
+suite.addTestSuite(ValidationProviderResolverGwtTest.class);
+return suite;
+  }
+}
===
--- /dev/null
+++  
/trunk/user/test/org/hibernate/jsr303/tck/tests/bootstrap/ConfigurationGwtTest.java	 
Mon Aug 22 09:48:40 2011

@@ -0,0 +1,41 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package org.hibernate.jsr303.tck.tests.bootstrap;
+
+import com.google.gwt.junit.client.GWTTestCase;
+
+import org.hibernate.jsr303.tck.util.client.Failing;
+import org.hibernate.jsr303.tck.util.client.NonTckTest;
+
+/**
+ * Wraps {@link ConfigurationTest} .
+ */
+public class ConfigurationGwtTest extends GWTTestCase {
+
+  @Override
+  public String getModuleName() {
+return org.hibernate.jsr303.tck.tests.bootstrap.TckTest;
+  }
+
+  @Failing(issue = 6663)
+  public void testProviderUnderTestDefinesSubInterfaceOfConfiguration() {
+fail(TODO(nchalko) figure out how to test this in GWT);
+  }
+
+  @NonTckTest
+  public void testThereMustBeOnePassingTest() {
+  }
+}
===
--- /dev/null
+++  
/trunk/user/test/org/hibernate/jsr303/tck/tests/bootstrap/CustomMessageInterpolatorGwtTest.java	 
Mon Aug 22 09:48:40 2011

@@ -0,0 +1,41 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law 

[gwt-contrib] Implements * globbing for RequestFactory with(), the simpler half of (issue1520808)

2011-08-22 Thread rjrjr

Reviewers: bobv,

Description:
Implements * globbing for RequestFactory with(), the simpler half of
the proposal in
http://code.google.com/p/google-web-toolkit/issues/detail?id=6697

Also fixes bugs exposed in using null members in collections


Please review this at http://gwt-code-reviews.appspot.com/1520808/

Affected files:
  M user/src/com/google/web/bindery/requestfactory/server/Resolver.java
  M  
user/src/com/google/web/bindery/requestfactory/shared/impl/ProxySerializerImpl.java
  M  
user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryPolymorphicTest.java
  M  
user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java

  M user/test/com/google/web/bindery/requestfactory/server/SimpleFoo.java
  M  
user/test/com/google/web/bindery/requestfactory/shared/SimpleFooRequest.java



--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Implements * globbing for RequestFactory with(), the simpler half of (issue1520808)

2011-08-22 Thread rjrjr

On 2011/08/23 00:52:49, rjrjr wrote:

Ready for review

http://gwt-code-reviews.appspot.com/1520808/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Changes setters/clearers com.google.gwt.dom.client.Style to return Style instead of void (issue1530803)

2011-08-22 Thread larsenje

Reviewers: jlabanca, rjrjr,

Description:
Changes Style to return itself instead of returning void.

issue 6717

http://code.google.com/p/google-web-toolkit/issues/detail?id=6717

Please review this at http://gwt-code-reviews.appspot.com/1530803/

Affected files:
  user/src/com/google/gwt/dom/client/Style.java


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Changes setters/clearers com.google.gwt.dom.client.Style to return Style instead of void (issue1530803)

2011-08-22 Thread Ray Ryan
No good. This defeats compiler optimizations big time. We don't like void
returns either, but we like big fat slow apps even less.
On Aug 22, 2011 7:50 PM, larse...@gmail.com wrote:
 Reviewers: jlabanca, rjrjr,

 Description:
 Changes Style to return itself instead of returning void.

 issue 6717

 http://code.google.com/p/google-web-toolkit/issues/detail?id=6717

 Please review this at http://gwt-code-reviews.appspot.com/1530803/

 Affected files:
 user/src/com/google/gwt/dom/client/Style.java



-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: [gwt-contrib] Re: Changes setters/clearers com.google.gwt.dom.client.Style to return Style instead of void (issue1530803)

2011-08-22 Thread Daniel Bell
Just out of curiosity, does this have to defeat the compiler optimisations?
Isn't it known at compile time that those setters will always return the
same Style instance? In that sense, from the compiler's point of view, isn't
the situation with the setter returning the Style the same as the situation
with getStyle() returning the Style?

On 23 August 2011 14:00, Ray Ryan rj...@google.com wrote:

 No good. This defeats compiler optimizations big time. We don't like void
 returns either, but we like big fat slow apps even less.
 On Aug 22, 2011 7:50 PM, larse...@gmail.com wrote:
  Reviewers: jlabanca, rjrjr,
 
  Description:
  Changes Style to return itself instead of returning void.
 
  issue 6717
 
  http://code.google.com/p/google-web-toolkit/issues/detail?id=6717
 
  Please review this at http://gwt-code-reviews.appspot.com/1530803/
 
  Affected files:
  user/src/com/google/gwt/dom/client/Style.java
 
 

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: [gwt-contrib] Re: Changes setters/clearers com.google.gwt.dom.client.Style to return Style instead of void (issue1530803)

2011-08-22 Thread John Tamplin
On Tue, Aug 23, 2011 at 12:17 AM, Daniel Bell daniel.r.b...@gmail.comwrote:

 Just out of curiosity, does this have to defeat the compiler optimisations?
 Isn't it known at compile time that those setters will always return the
 same Style instance? In that sense, from the compiler's point of view, isn't
 the situation with the setter returning the Style the same as the situation
 with getStyle() returning the Style?


No -- it may be theoretically possible to analyze that all the methods
called don't mutate the object, the current compiler doesn't do it.  We have
talked about producing better code for the builder pattern,  but it is
surprisingly difficult to get right in all situations.

-- 
John A. Tamplin
Software Engineer (GWT), Google

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors