Suggestbox suggestions not displayed when navigating using arrow keys

2012-05-02 Thread ALB-PSP-DV1
We have a suggestbox with approx. 50 suggestions. We are displaying a
scrollbar for the suggestbox using the following css

.suggestPopupContent{
height:auto;
width:auto !important;
max-width:400px;
max-height: 165px;
overflow-y: auto;
padding-right:18px;
}

Now when the user tries to navigate through the suggestions using the
Up/Down arrow key, the suggestions not within the current visible area
are not displayed.

Thanks in advance.

-- 
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: EventBus mechanism

2012-05-02 Thread Adio
Aha, got it !

On May 2, 2:14 am, Jambi michael.lukaszc...@googlemail.com wrote:
 Seems that the onAddButtonClicked and onItemClicked methods perform some
 actions that involve other Presenters/Views that listen to those kinds of
 events. deleteSelectedContacts is just performing local changes that don´t
 affect other views. If there would be a different view that is showing a
 (for example) contact count and this view needs to know about some changes
 in your contacts, you would fire an event in deleteSelectedContacts.

 Am Dienstag, 1. Mai 2012 15:01:20 UTC+2 schrieb Adio:









  Hi everyone, now that i am working with GWT i am facing a problem with
  the event handling mechanism the first problem was (

 http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
  ), but when i read this article MVP II (
 https://developers.google.com/web-toolkit/articles/mvp-architecture-2
  ) - actually i read it several times - i still don't understand when u
  to use EventBus mechanism and when not ? and if i have to use when u
  use EventBus Handler and HandlerManage ?.
  Here is what confuses me:

  public class ContactsPresenter implements Presenter,
  ContactsView.PresenterContactDetails {
  ..
  public void onAddButtonClicked() {
      eventBus.fireEvent(new AddContactEvent());
    }

    public void onDeleteButtonClicked() {
      deleteSelectedContacts();
    }

    public void onItemClicked(ContactDetails contactDetails) {
      eventBus.fireEvent(new EditContactEvent(contactDetails.getId()));
    }

  
  }

  Why one method fires and event and the other just do some logic witch
  is defined the class ?

  Thank you all for your replies.

  the source code of the example is here :
 http://google-web-toolkit.googlecode.com/files/Tutorial-Contacts2.zip

-- 
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 to build text trimming cell for GWT DataGrid

2012-05-02 Thread benb
Works good, thanks!

On May 1, 10:50 am, Andrei vol...@spiraluniverse.com wrote:
 @Jens,

 Just to expand on Jen's answer. For this solution to work, you need to
 apply it to a div inside a cell:

 .myDataGrid td div {
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;







 }
  Apply CSS to your cell:

  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;

  -- J.

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



Apache Proxy 500 error or RPC serialization

2012-05-02 Thread Kulnor
I'm trying to proxy a GWT app running on my local Tomcat server through 
Apache use AJP but am getting 500 errors during RPC calls.

I simply have a standard entry in my httpd.conf file:
Location /user/
ProxyPass ajp://localhost:9009/openmetadata-www-user-gwt/
/Location

When I run the app directly on 
http://localhost:9090/openmetadata-www-user-gwt/ I have no problem, but 
when I go through the proxy, I can see the RPC call go through but then 
getting serialization errors while returning objects:

SEVERE: Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type 
'org.openmetadata.www.user.client.UserServiceException' was not assignable 
to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a 
custom field serializer.For security purposes, this type will not be 
serialized.: instance = 
org.openmetadata.www.user.client.UserServiceException: User not found

Tried with http proxy (and on standard ports) but same issue. Seem like an 
RPC serialization policy problem but not sure what to do. Any suggestion 
would be appreciated.

best

*K

-- 
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/-/Riz4QVHEzDoJ.
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: EventBus mechanism

2012-05-02 Thread Adio
and thank you  !

On May 2, 9:40 am, Adio fireball...@gmail.com wrote:
 Aha, got it !

 On May 2, 2:14 am, Jambi michael.lukaszc...@googlemail.com wrote:







  Seems that the onAddButtonClicked and onItemClicked methods perform some
  actions that involve other Presenters/Views that listen to those kinds of
  events. deleteSelectedContacts is just performing local changes that don´t
  affect other views. If there would be a different view that is showing a
  (for example) contact count and this view needs to know about some changes
  in your contacts, you would fire an event in deleteSelectedContacts.

  Am Dienstag, 1. Mai 2012 15:01:20 UTC+2 schrieb Adio:

   Hi everyone, now that i am working with GWT i am facing a problem with
   the event handling mechanism the first problem was (

  http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
   ), but when i read this article MVP II (
  https://developers.google.com/web-toolkit/articles/mvp-architecture-2
   ) - actually i read it several times - i still don't understand when u
   to use EventBus mechanism and when not ? and if i have to use when u
   use EventBus Handler and HandlerManage ?.
   Here is what confuses me:

   public class ContactsPresenter implements Presenter,
   ContactsView.PresenterContactDetails {
   ..
   public void onAddButtonClicked() {
       eventBus.fireEvent(new AddContactEvent());
     }

     public void onDeleteButtonClicked() {
       deleteSelectedContacts();
     }

     public void onItemClicked(ContactDetails contactDetails) {
       eventBus.fireEvent(new EditContactEvent(contactDetails.getId()));
     }

   
   }

   Why one method fires and event and the other just do some logic witch
   is defined the class ?

   Thank you all for your replies.

   the source code of the example is here :
  http://google-web-toolkit.googlecode.com/files/Tutorial-Contacts2.zip

-- 
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: Apache Proxy 500 error or RPC serialization

2012-05-02 Thread Kulnor
The source of the problem seem to come from the fact that the proxy site 
URL is different from the GWT app URL. This is discussed and nicely 
documented in 
https://groups.google.com/forum/?fromgroups#!searchin/google-web-toolkit/proxypass$20serialization/google-web-toolkit/3wE9yWLMJo4/Mebd0XgW1EIJ
 (thanks 
to the authors for this!)

The following proxy setting works properly as the URL are the same:
Location /openmetadata-www-user-gwt/
ProxyPass ajp://localhost:9009/openmetadata-www-user-gwt/
/Location

In my case, I can rename the underlying GWT app on tomcat so that should 
solved the issue. The post above provide excellent alternate solutions.

best

*K

On Wednesday, 2 May 2012 03:56:10 UTC-4, Kulnor wrote:

 I'm trying to proxy a GWT app running on my local Tomcat server through 
 Apache use AJP but am getting 500 errors during RPC calls.

 I simply have a standard entry in my httpd.conf file:
 Location /user/
 ProxyPass ajp://localhost:9009/openmetadata-www-user-gwt/
 /Location

 When I run the app directly on 
 http://localhost:9090/openmetadata-www-user-gwt/ I have no problem, but 
 when I go through the proxy, I can see the RPC call go through but then 
 getting serialization errors while returning objects:

 SEVERE: Exception while dispatching incoming RPC call
 com.google.gwt.user.client.rpc.SerializationException: Type 
 'org.openmetadata.www.user.client.UserServiceException' was not assignable 
 to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a 
 custom field serializer.For security purposes, this type will not be 
 serialized.: instance = 
 org.openmetadata.www.user.client.UserServiceException: User not found

 Tried with http proxy (and on standard ports) but same issue. Seem like an 
 RPC serialization policy problem but not sure what to do. Any suggestion 
 would be appreciated.

 best

 *K


-- 
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/-/x4UkyaMTieQJ.
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: Suggestbox suggestions not displayed when navigating using arrow keys

2012-05-02 Thread ALB-PSP-DV1
Any help is appreciated.

On May 2, 11:39 am, ALB-PSP-DV1 albpsp...@gmail.com wrote:
 We have asuggestboxwith approx. 50suggestions. We are displaying a
 scrollbar for thesuggestboxusingthe following css

 .suggestPopupContent{
         height:auto;
         width:auto !important;
         max-width:400px;
         max-height: 165px;
         overflow-y: auto;
         padding-right:18px;

 }

 Now when the user tries to navigate through thesuggestionsusingthe
 Up/Downarrowkey, thesuggestionsnotwithin the current visible area
 arenotdisplayed.

 Thanks in advance.

-- 
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: Suggestbox suggestions not displayed when navigating using arrow keys

2012-05-02 Thread Jens
You probably have to implement your own SuggestionDisplay and add some 
logic to moveSelectionDown/moveSelectionUp to also adjust your scrollable 
container. You have made the container scrollable, so you must also 
implement your desired scrolling behavior.

-- J.



Am Mittwoch, 2. Mai 2012 08:39:16 UTC+2 schrieb ALB-PSP-DV1:

 We have a suggestbox with approx. 50 suggestions. We are displaying a 
 scrollbar for the suggestbox using the following css 

 .suggestPopupContent{ 
 height:auto; 
 width:auto !important; 
 max-width:400px; 
 max-height: 165px; 
 overflow-y: auto; 
 padding-right:18px; 
 } 

 Now when the user tries to navigate through the suggestions using the 
 Up/Down arrow key, the suggestions not within the current visible area 
 are not displayed. 

 Thanks in advance.

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



sending data from client to server

2012-05-02 Thread Ashu
Hi Everyone,
 
I have a requirement that, I have to search something from the db and 
get back some results(Like a search button functionality).For this I am 
giving some inputs.
I have to send these inputs(like Beans) to server side.
I am using GWT2.4 request factory.
How can i do this?
do i need to use value proxies here?

-- 
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/-/6nJVoE-VRtEJ.
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: GWT Remote Logging - Logger Name replaced by logOnServer

2012-05-02 Thread Marco
Just had the same problem. Seems to be Issue 
1930http://code.google.com/p/googleappengine/issues/detail?id=1930

As a (temporary) workaround I replaced the 
RemoteLoggingServiceUtilhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/logging/server/RemoteLoggingServiceUtil.htmlwith
 my own implementation. My logging util logs the JUL 
(java.util.logging) 
LogRecordhttp://docs.oracle.com/javase/6/docs/api/java/util/logging/LogRecord.htmls
 
to SLF4J through 
SLF4JBridgeHandlerhttp://www.slf4j.org/legacy.html#jul-to-slf4j
.

Hopefully this will not be neccessary any more in future versions of GWT.

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



abt the changin the size of panel

2012-05-02 Thread p fairoose
sir.i am using gxt frame work im that i want change the size of
boxes...and when i select a box then automatically other box will load
is there is any such listner pls give me idea abt the same

-- 
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: Firefox 12 release

2012-05-02 Thread Stanislav Baranov
Checked on Win 7 64bit. Works fine 

On Friday, April 27, 2012 3:38:05 AM UTC+3, Alan Leung wrote:

 http://acleung.com/ff12-win.xpi

 That should cover all the OS'es. I am going to put together all that and 
 check it in soon.

 Let me know if you run into problems.

 -Alan

 On Thu, Apr 26, 2012 at 6:45 AM, Marcel Stör mar...@frightanic.comwrote:

 What about Windows? 

 -- 
 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/-/fAwX-dqYQQAJ.

 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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/pGFMm_OpELUJ.
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: Problems compiling internationalisation files with GWT 2.0

2012-05-02 Thread sanjay puri


On Friday, December 11, 2009 4:45:44 PM UTC+5:30, grandfatha wrote:

 Changing the name of my interface and the properties files resolved at 
 least my issue. No clue what was wrong with the old one... It simply 
 disliked it. 


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



help celltable

2012-05-02 Thread Pablo Turcios
I could help. I need to show a celltable datastore records. the examples show
only arrangements and found no such link to thedata store. please someone can
help me with an example.

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.



Need help with GWT 2.4 project

2012-05-02 Thread Shwetha D
Hi,

We are starting a new initiative of developing a huge web app... We
have pretty much locked down the backed technologies, but still
struggling with the front end. Have looked around and found tons of
javascript frameworks and libs and tools to build them, but GWT really
caught our attention.

Can anyone pls point out to one good example using GWT2.4 with
activities, places and MVP. I am looking at an enterprise level (huge
app) example..

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: Hibernate ClassCastException in GWT hosted mode only

2012-05-02 Thread AK
Same question, as it has been almost 2 months.  Any word on ways to
get this to work without downgrading hibernate?

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



eclipse 4.2 juno

2012-05-02 Thread Sagi Bernstein
hi, the release is in less then 2 months, is there work to support juno?
it should be backwards compatible for plugins but right now the install 
does not work since gdt needed version is set to (3.7,3.8] (4.2 not in 
range...)

-- 
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/-/NNDVweTop38J.
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 when trying to contact the Owner of GWT

2012-05-02 Thread brent777
Hi,

I was trying to contact the GWT owner via the link on the GWT Articles 
page. However, when I try send the message I am just presented with an 
error page. It suggests that I report the error to Google Support but none 
of the categories shown are related to this issue.

Is there any other way to contact this owner? I am looking to get more info 
about how to contribute case studies / articles to the GWT site.

Thanks.

-- 
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/-/DsG_llwkJAQJ.
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: Error when trying to contact the Owner of GWT

2012-05-02 Thread Eric Clayberg (Google)
You can send your questions to me.

On Wednesday, May 2, 2012 5:49:24 AM UTC-4, brent777 wrote:

 Hi,

 I was trying to contact the GWT owner via the link on the GWT Articles 
 page. However, when I try send the message I am just presented with an 
 error page. It suggests that I report the error to Google Support but none 
 of the categories shown are related to this issue.

 Is there any other way to contact this owner? I am looking to get more 
 info about how to contribute case studies / articles to the GWT site.

 Thanks.


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



JPA1 vs JPA2 compat Issue with Jetty?

2012-05-02 Thread Carlos Alexandro Becker
Hello.

I'm coding an app with guice-persist, gwtp, jpa2 and hibernate. In the not 
web mode, the tests and everything about persistence run fine... but, when 
I try to use them in devmode I got many errors related to compatibility 
issues with JPA1 and 2.

Someone know anything about this? thanks

-- 
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/-/QFHhMFLhgYoJ.
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: GWT Mobile App Widgets

2012-05-02 Thread AgitoM
Hi Daniel,

Tried the mgwt, but it seems that the framework also only support
webkit based browsers?
I got some errors when trying to run in in Firefox.
Am I correct to say that only WebKit is supported?



On May 1, 2:52 am, Daniel Kurka kurka.dan...@googlemail.com wrote:
 if you are interested in mgwt there is a very friendly user group for
 the framework:http://groups.google.com/group/mgwt

 mgwt pays a lot of attention to do things in a GWT way, which brings
 big advantages to mobile device development.

 take a look for yourself athttp://www.m-gwt.com

 On 30 Apr., 20:43, Alfredo Quiroga-Villamil laww...@gmail.com wrote:







  Yes, if you are trying to cover that case, then you must absolutely
  find a mobile library that can potentially support any of the
  installable browsers in mobile devices. The important case to always
  keep in mind I would say is over engineering. Unless it's a
  requirement from the client, I would ask myself the question, what
  percentage of the market am I trying to support? Ideally the answer
  would be 100%, reality it's a different story. This is more the case
  since mobile web is fairly young. Even the web after all these years
  would be a nightmare if you removed GWT and libraries like it that
  have tried to make the developer experience better by hiding the
  browser differences or better said quirks.

  About a year and a half ago, perhaps more already, there was a point
  where the future of mobile web for developers looked bright. It was
  all going to be based on webkit or at least most of it and the world
  was going to be a happy place.

  Fast forward and we find a world where there is an incredible amount
  of fragmentation in the mobile market place with multiple versions of
  webkit, many don't exactly behaving consistently. Throw into the mix
  your request and it's almost starting to feel like we are right back
  to the web as we know it today where may browsers exists with
  difference in behavior not only between them but even among versions.

  Best of luck and wish your project the best.

  Alfredo

  On Mon, Apr 30, 2012 at 2:01 PM, AgitoM karel.m...@gmail.com wrote:
   Well the app runs fine on iPhone Safari, Google Chrome, and the
   Android Default Browser.
   However the app does not work on Firefox and Opera installations on
   the Android platform, so that could be a problem.
   So still hope someone can make a suggestion.

   On Apr 30, 10:53 pm, Alfredo Quiroga-Villamil laww...@gmail.com
   wrote:
   Mobile web libraries are based on webkit. Firefox is not. Mobile devices
   use webkit. To test the app you can try to use a webkit based browser 
   such
   as chrome or safari. So if you are happy with that library I recommend 
   you
   continue using it and test it as previously mentioned.

   Regards,

   Alfredo
   On Apr 30, 2012 10:35 AM, AgitoM karel.m...@gmail.com wrote:

Does anyone know a decent library that contains GWT Widgets for the
development of Mobile Apps in GWT?

Over the past few days I've been experimenting with gwt-mobile-gui.
Though this library is great, it doesn't appear to be working on all
browsers. (or at least I can't get it to work on Firefox).

So basically I am looking into other Libraries. Does anyone have any
suggestions?

Reason I am looking for a mobile widget library is because I am
developing a mobile app. I developed a framework for a mobile app
myself, and it works fine, but it looks too ugly.
If no other library is available, does anyone know any tutorial of
guide to how to develop nice looking GUI in GWT?

Hope anyone can offer some advice.

--
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 
   athttp://groups.google.com/group/google-web-toolkit?hl=en.

  --
  Alfredo Quiroga-Villamil

  AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
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 to unit test GWT serialization?

2012-05-02 Thread Adio
I don't think you need to unit test GWT serialization since it's apart of 
GWT framework.  you need to test you usage of the framework not the 
framework itself 

On Tuesday, 1 May 2012 05:10:07 UTC+3, dhoffer wrote:

 I'd like to write a unit test to test GWT serialization, any pointers 
 on how to setup a unit test that would allow me to pass a variety of 
 data structures from the client to the server and compare results?  Is 
 this even possible?

-- 
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/-/QEYW8I1dokoJ.
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: JPA1 vs JPA2 compat Issue with Jetty?

2012-05-02 Thread Jens
Maybe you have for some reasons both JPA 1 and JPA 2 API in your classpath? 
Already googled the error message?

-- J.

Am Mittwoch, 2. Mai 2012 14:27:24 UTC+2 schrieb Carlos Alexandro Becker:

 Hello.

 I'm coding an app with guice-persist, gwtp, jpa2 and hibernate. In the 
 not web mode, the tests and everything about persistence run fine... but, 
 when I try to use them in devmode I got many errors related to 
 compatibility issues with JPA1 and 2.

 Someone know anything about this? thanks


-- 
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/-/53dyKbIa5_EJ.
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: private static final EntityManagerFactory emfInstance = Persistence.createEntityManagerFactory(transactions-optional);

2012-05-02 Thread Steve Moyer
Can you include the code for the class this is in?  You can't do this
in client code, and in server code, you'll need to make sure your
persistence.xml file is found (my most common mistake).

-- 
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: sending data from client to server

2012-05-02 Thread Jens


 do i need to use value proxies here?


Yes, with ValueProxys you can send data/bean like objects between 
client/server that do not have a database identity. 

-- 
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/-/XiLVXD7zDOwJ.
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: private static final EntityManagerFactory emfInstance = Persistence.createEntityManagerFactory(transactions-optional);

2012-05-02 Thread laxman lingampally
Hi Steve Moyer.

thinks a lot

i did this code i am putting here please abusarve this code and tell me
where i am did mistake

please help me out asap.


1) Persistence,xml.

persistence-unit name=some_name_you_choose
description
Persistence unit for the Envers tutorial of the Hibernate
Getting Started Guide
/description

classcom.webreg.server.NameData/class

properties
property name=javax.persistence.jdbc.driver
value=com.mysql.jdbc.Driver /
property name=javax.persistence.jdbc.url
value=jdbc:mysql://localhost:3306/ccmdb /
property name=javax.persistence.jdbc.user value=root /
property name=javax.persistence.jdbc.password value=root /

property name=hibernate.show_sql value=true /
!-- property name=hibernate.hbm2ddl.auto value=create /
--
/properties

/persistence-unit


2) server side code:
pakage name: com.server.dmain.

NameData.java.

@Entity
@Table(name = NAME)
public class NameData {

public static final EntityManager entityManager() {
return EMF.get().createEntityManager();
}

public NameData persist() {
 try {
EntityManager em =entityManager();
em.persist(this);
}catch(Exception e){
System.out.println(exe:+e);
}
//setter and getter's
.
}

3) server side code
EMF.java

public final class EMF {
private static final EntityManagerFactory emfInstance =
Persistence.createEntityManagerFactory( some_name_you_choose);

public static EntityManagerFactory get() {
return emfInstance;
}
private EMF() {
  // nothing

}
}


Thanks  Regards
laxman

On Wed, May 2, 2012 at 6:50 PM, Steve Moyer smoye...@gmail.com wrote:

 Can you include the code for the class this is in?  You can't do this
 in client code, and in server code, you'll need to make sure your
 persistence.xml file is found (my most common mistake).

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



using static hetml text input as datebox in gwt

2012-05-02 Thread HDayi
hi people,
i hope i could mean myself. 
in my html file there is a textbox written in classical html tag like:
input id=date type=text maxlength=10 /
how can i use it as a text box?

thx

-- 
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/-/S8wUljKTaToJ.
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-dnd] drag handles (urgent)

2012-05-02 Thread Ali Thabet
Is it possible to use multiple drag handles for the same custom widget?

Is it possible to change the drag handle during application execution?
something like:

if (IsEditable)
{
dragHandle = focusPanel_1;
}
else
{
dragHandle = focusPanel_2;
}

-- 
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: sending data from client to server

2012-05-02 Thread swathi
Thanks for the reply.
I have one more small doubt.
Shall i use the same proxy for the return result.

could you please provide me the sample for this criteria.


On Wed, May 2, 2012 at 6:55 PM, Jens jens.nehlme...@gmail.com wrote:
 do i need to use value proxies here?


 Yes, with ValueProxys you can send data/bean like objects between
 client/server that do not have a database identity.

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

 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: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-05-02 Thread Joshua Kappon
Hey Ray, how about that Hangout? :)

On Saturday, April 21, 2012 3:23:03 AM UTC+3, Ray Cromwell wrote:


 If I told you the number of monthly active GWT developers, I think you 
 would be quite impressed. A hangout sounds like a good idea, I will look 
 into setting one up soon.

 -Ray


 On Friday, April 20, 2012 4:15:27 PM UTC-7, Joshua Kappon wrote:

 Thanks for commenting Ray (and also for keeping us posted on G+) - Super 
 draft mode looks great,
 and I can't wait to see what else you got up your sleeves.

 I understand that the GWT team is regrouping, and hope you'll keep us 
 posted.
 I also feel, that the community wants to be more informed and invloved 
 and I think that a scheduled GWT hangout could be awesome for that porpose.
 although the community isn't that big, I personally feel it's growing 
 stronger each year, and that the GWT team can use it for achieving more 
 (not just codewise).

 Best,
 Joshua



-- 
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/-/SpJYwne0PdAJ.
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: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-05-02 Thread Daniel Guermeur
+1
--
Daniel Guermeur
w +1 512 346 0360 m +1 512 554 6727
www.metadot.com the maker of www.daskeyboard.com and www.mojohelpdesk.com



On Wed, May 2, 2012 at 10:24 AM, Joshua Kappon shuky.kap...@gmail.comwrote:

 Hey Ray, how about that Hangout? :)

 On Saturday, April 21, 2012 3:23:03 AM UTC+3, Ray Cromwell wrote:


 If I told you the number of monthly active GWT developers, I think you
 would be quite impressed. A hangout sounds like a good idea, I will look
 into setting one up soon.

 -Ray


 On Friday, April 20, 2012 4:15:27 PM UTC-7, Joshua Kappon wrote:

 Thanks for commenting Ray (and also for keeping us posted on G+) - Super
 draft mode looks great,
 and I can't wait to see what else you got up your sleeves.

 I understand that the GWT team is regrouping, and hope you'll keep us
 posted.
 I also feel, that the community wants to be more informed and invloved
 and I think that a scheduled GWT hangout could be awesome for that porpose.
 although the community isn't that big, I personally feel it's growing
 stronger each year, and that the GWT team can use it for achieving more
 (not just codewise).

 Best,
 Joshua

  --
 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/-/SpJYwne0PdAJ.
 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: How to find that an element is now in view on the screen

2012-05-02 Thread Julien Dramaix
With GwtQuery  :

import static com.google.gwt.query.client.GQuery.$;
import static com.google.gwt.query.client.GQuery.window;

...

//you can also use a GQuery object wrapping the element
public boolean isScrolledIntoView(Element elem)
{
int docViewTop = $(window).scrollTop();
int docViewBottom = docViewTop + $(window).height();

int elemTop = $(elem).offset().top;
int elemBottom = elemTop + $(elem).height();

return ((elemBottom = docViewTop)  (elemTop = docViewBottom)
   (elemBottom = docViewBottom)   (elemTop = docViewTop) );
}


call this method to know if the elem is entirely visible on the screen
inside your scroll event handler. For adding a scroll event handler,
use the scroll method:

$(window).scroll(new Function(){
  public void f(){
  //put your code here
  }
});

Julien

On Sun, Apr 29, 2012 at 10:40 PM, Deepak Singh deepaksingh...@gmail.com wrote:
 Hi,

 Suppose i have an HtmlPanel or a DivElement and i want to know that while
 scrolling up/down, this particular element is  viewable on the screen by
 user.

 It should not be out of sight even if attached to the DOM.

 Thanks
 Deepak Singh

 --
 You received this message because you are subscribed to the Google Groups
 gwtquery group.
 To post to this group, send email to gwtqu...@googlegroups.com.
 To unsubscribe from this group, send email to
 gwtquery+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/gwtquery?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: SafeHtml and SafeStyles

2012-05-02 Thread Joseph Lust


@Template(div style=\{0}\div 
style=\position:absolute;display:none;\/divdiv{1}/div/div)
SafeHtml unsorted(SafeStyles imageWidthStyle, SafeHtml text); 

double width = 34.34d;
SafeStyles imageWidthStyle = 
SafeStylesUtils.fromTrustedString(width:+width+px;);
SafeHtml text = SafeHtmlUtils.fromString(blah);
unsorted( imageWidthStyle, text ); // call your template


That is how I'd do it. I had to fix some warnings to this end this morning 
for some code, so I had to look this usage up. Hope it helps.


Sincerely,
Joseph

-- 
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/-/ISU7e0FSO_sJ.
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: SafeHtml and SafeStyles

2012-05-02 Thread Thomas Broyer


On Wednesday, May 2, 2012 6:14:35 PM UTC+2, Joseph Lust wrote:

 @Template(div style=\{0}\div 
 style=\position:absolute;display:none;\/divdiv{1}/div/div)
 SafeHtml unsorted(SafeStyles imageWidthStyle, SafeHtml text); 

 double width = 34.34d;
 SafeStyles imageWidthStyle = 
 SafeStylesUtils.fromTrustedString(width:+width+px;);
 SafeHtml text = SafeHtmlUtils.fromString(blah);
 unsorted( imageWidthStyle, text ); // call your template


 That is how I'd do it. I had to fix some warnings to this end this morning 
 for some code, so I had to look this usage up. Hope it helps.


And when GWT 2.5 will be out the door:
SafeStyles imageWidthStyle = SafeStylesUtils.forWidth(width, Unit.PX);

-- 
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/-/8nsX4U_n1P8J.
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: SafeHtml and SafeStyles

2012-05-02 Thread Joseph Lust
I look forward to it since writing string literals for CSS properties seems 
silly in this day and age.

Joe

-- 
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/-/vcHja1o1GucJ.
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: sending data from client to server

2012-05-02 Thread Jens


 Shall i use the same proxy for the return result. 


Sounds like it doesn't make sense but I don't know your app nor what you 
want to search. 

If you search for some data in your database then you probably want to 
return a list of EntityProxy-s as a search result (if you want to display 
the search result). If your search is more like a server side calculation, 
e.g. How many matches do I have for that search query?, then you would 
return an Integer for example (or a ValueProxy / List of ValueProxy if the 
result is more complex and does not represent a database entity).

-- 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/-/5GGMPH5J7jEJ.
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: Strange scrolling div problem in WebKit browsers

2012-05-02 Thread dunhamst...@gmail.com


On Thursday, April 21, 2011 2:38:51 AM UTC-7, Jens wrote:

 After some research I figured out that GWT's PopupPanel is probably 
 responsible for that behavior. I have some wizard views which contain the 
 custom list mentioned before and these wizards use a PopupPanel which is 
 set to modal. I think there might be a bug in the way PopupPanels cancel 
 events if the PopupPanel is set to modal. 
 But its really strange that it only happens when the mouse cursor hovers 
 text inside a ScrollPanel inside a modal PopupPanel. So maybe its more a 
 WebKit bug.


I tracked this down by stepping through the code in a javascript debugger. 
 The issue is in PopupPanel.eventTargetsPopup().  The mouse scroll event is 
coming through with a target of type Text rather than Element.   

(You'll notice that the scrolling stops on the text, but in the rest of the 
div containing the text.) 

Changing the code to the following seems to fix it:

  private boolean eventTargetsPopup(NativeEvent event) {
 EventTarget target = event.getEventTarget();
 if (Node.is(target)) {
   return getElement().isOrHasChild(Node.as(target));
 }
 return false;
   }


But it might be better to tweak DOMImplWebKit.eventGetCurrentTarget() to 
return the parent of the target if the target is of type Text. (In case 
other code is expecting EventTarget to be an Element.)

 

-- 
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/-/Cj2Y12JhgCkJ.
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: Strange scrolling div problem in WebKit browsers

2012-05-02 Thread dunhamst...@gmail.com
I think this was causing some issues with click events not being 
recognized, so I ended up adding this code to DOMImplWebkit to fix it:

  @Override
   public native EventTarget eventGetTarget(NativeEvent evt) /*-{
 var target = evt.target;
 if (target  target.nodeType == 3) {
   target = target.parentNode;
 }
 return target;
   }-*/;



-- 
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/-/-j7Ml9c94voJ.
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: Strange scrolling div problem in WebKit browsers

2012-05-02 Thread Jens
Pretty cool, I haven't followed it anymore because I just changed my 
PopupPanel back to setModal(false) and live with it ;-)

Do you want to create a GWT issue for it on the issue tracker? Otherwise 
I'll do it.

-- J.


Am Mittwoch, 2. Mai 2012 20:04:58 UTC+2 schrieb dunha...@gmail.com:



 On Thursday, April 21, 2011 2:38:51 AM UTC-7, Jens wrote:

 After some research I figured out that GWT's PopupPanel is probably 
 responsible for that behavior. I have some wizard views which contain the 
 custom list mentioned before and these wizards use a PopupPanel which is 
 set to modal. I think there might be a bug in the way PopupPanels cancel 
 events if the PopupPanel is set to modal. 
 But its really strange that it only happens when the mouse cursor hovers 
 text inside a ScrollPanel inside a modal PopupPanel. So maybe its more a 
 WebKit bug.


 I tracked this down by stepping through the code in a javascript debugger. 
  The issue is in PopupPanel.eventTargetsPopup().  The mouse scroll event is 
 coming through with a target of type Text rather than Element.   

 (You'll notice that the scrolling stops on the text, but in the rest of 
 the div containing the text.) 

 Changing the code to the following seems to fix it:

   private boolean eventTargetsPopup(NativeEvent event) {
 EventTarget target = event.getEventTarget();
 if (Node.is(target)) {
   return getElement().isOrHasChild(Node.as(target));
 }
 return false;
   }


 But it might be better to tweak DOMImplWebKit.eventGetCurrentTarget() to 
 return the parent of the target if the target is of type Text. (In case 
 other code is expecting EventTarget to be an Element.)

  


-- 
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/-/h_XdAdcv-1MJ.
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: Strange scrolling div problem in WebKit browsers

2012-05-02 Thread dunhamst...@gmail.com


On Wednesday, May 2, 2012 11:38:20 AM UTC-7, Jens wrote:

 Pretty cool, I haven't followed it anymore because I just changed my 
 PopupPanel back to setModal(false) and live with it ;-)

 Do you want to create a GWT issue for it on the issue tracker? Otherwise 
 I'll do it.

 -- J.


Thanks, I just filed #7349

-- 
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/-/D2idRrfSiPYJ.
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: Parser xml on server

2012-05-02 Thread Thad
To use XML on the client side, you need to add

inherits name='com.google.gwt.xml.XML' /

to your project's --.gwt.xml file.
 
On Wednesday, August 18, 2010 6:45:57 AM UTC-4, Xavier wrote:

 Hello, 

 I have a problem. I parser a xml from the server, but the following 
 error occurs: 

 Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
 com.google.gwt.xml.client.XMLParser 

 I understand that this package can not be used on the server. 

 Could someone tell me how I colud parser an XML on  the server side. 

 Thanks in advance. 

 Sincerely, 

 Xavier

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



3-tier architecture /gwt

2012-05-02 Thread Assiya EL
Hello,

I'd like to cut my gwt project into three projects:
application of 3-tier architecture for example :
-Project contains a customer
- Project contains hibernate
 - Project contains my pojo classes
does anyone have a sample project or a tutorial that explains the principle

thank you

-- 

Assiya EL
Master Qualité du Logiciel



Plz consider environment - Only print this if necessary

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



Whole app as one big transmission

2012-05-02 Thread Blake McBride
Greetings,

Unless I misunderstand something, I just found out that GWT apps get
transmitted to, and treated by, the client as a single web page - albeit
with JavaScript code that clears sections and puts different content on it
to make it look like different pages are being loaded.  This is cool in
terms of minimizing client interaction delays, but raises serious concerns
on my part when attempting to build a very large application.

For example, if my application had 500 screens (or what appeared to the
user as 500 different screens), I would hate to think that, even though the
client only currently needs 20 screens, he/she is going to get all 500 up
front!  The initial load would take an unnecessarily long time too.

If I understand correctly, this model is great for small apps but could be
a very significant problem as an application grows considerably.

I would really appreciate feedback on this issue.  Has this been an issue
for others?  Is there a simple way to make pages load on an as-needed basis?

Thanks for the feedback!

Blake McBride

-- 
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: Whole app as one big transmission

2012-05-02 Thread Gal Dolber
https://developers.google.com/web-toolkit/doc/latest/DevGuideCodeSplitting

On Wed, May 2, 2012 at 5:38 PM, Blake McBride blake1...@gmail.com wrote:

 Greetings,

 Unless I misunderstand something, I just found out that GWT apps get
 transmitted to, and treated by, the client as a single web page - albeit
 with JavaScript code that clears sections and puts different content on it
 to make it look like different pages are being loaded.  This is cool in
 terms of minimizing client interaction delays, but raises serious concerns
 on my part when attempting to build a very large application.

 For example, if my application had 500 screens (or what appeared to the
 user as 500 different screens), I would hate to think that, even though the
 client only currently needs 20 screens, he/she is going to get all 500 up
 front!  The initial load would take an unnecessarily long time too.

 If I understand correctly, this model is great for small apps but could be
 a very significant problem as an application grows considerably.

 I would really appreciate feedback on this issue.  Has this been an issue
 for others?  Is there a simple way to make pages load on an as-needed basis?

 Thanks for the feedback!

 Blake McBride

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




-- 
Guit: beautiful gwt applications

https://github.com/galdolber/Guit

-- 
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: Whole app as one big transmission

2012-05-02 Thread Raphael André Bauer
On Wed, May 2, 2012 at 10:44 PM, Gal Dolber gal.dol...@gmail.com wrote:
 https://developers.google.com/web-toolkit/doc/latest/DevGuideCodeSplitting

Jupp. Gwt is made for that scenario :)

I'd recommend checking out the excellent gwtp project. Using gwtp you
get code splitting almost for free :)

http://code.google.com/p/gwt-platform/
and
http://code.google.com/p/gwt-platform/wiki/GettingStarted?tm=6#Your_first_Proxy

Cheers,

Raphael



 On Wed, May 2, 2012 at 5:38 PM, Blake McBride blake1...@gmail.com wrote:

 Greetings,

 Unless I misunderstand something, I just found out that GWT apps get
 transmitted to, and treated by, the client as a single web page - albeit
 with JavaScript code that clears sections and puts different content on it
 to make it look like different pages are being loaded.  This is cool in
 terms of minimizing client interaction delays, but raises serious concerns
 on my part when attempting to build a very large application.

 For example, if my application had 500 screens (or what appeared to the
 user as 500 different screens), I would hate to think that, even though the
 client only currently needs 20 screens, he/she is going to get all 500 up
 front!  The initial load would take an unnecessarily long time too.

 If I understand correctly, this model is great for small apps but could be
 a very significant problem as an application grows considerably.

 I would really appreciate feedback on this issue.  Has this been an issue
 for others?  Is there a simple way to make pages load on an as-needed basis?

 Thanks for the feedback!

 Blake McBride

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




 --
 Guit: beautiful gwt applications

 https://github.com/galdolber/Guit





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



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.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: Whole app as one big transmission

2012-05-02 Thread Jens
Thats what code splitting is for. But don't create 500 split points (each 
split point has some overhead), e.g. one for each screen! Make it more 
meaningful so you may end up with 20 split points or so. 

As of today, when you introduce split points in your code you have to make 
sure that the code behind that split point is exclusive to that split 
point. Everything thats not exclusive to a single split point will be 
loaded on app start.
Example: You have 2 pages and each is behind a code split point. If both 
pages make heavy use of the same GWT Widgets, all these widgets will be 
downloaded when the app starts although they are behind a split point. 
Thats because they are not exclusive to a single split point anymore. 
So if you choose your split points larger, you have a better chance to have 
more exclusive code behind that split point.

In an upcoming release (hopefully GWT 2.5) a new code splitting algorithm 
will be introduced that uses heuristics to merge smaller split points into 
larger ones to make more code exclusive to a split point and thus reducing 
the initial download when the app starts. With such an algorithm you could 
define 500 split points in your code but may end up with 20 real split 
points after compiling the app.

Also keep in mind if your split points have a certain size, its a good idea 
to give the user some feedback that your apps now loads additional code 
from the server. 

-- J.



Am Mittwoch, 2. Mai 2012 22:38:15 UTC+2 schrieb Blake:

 Greetings,

 Unless I misunderstand something, I just found out that GWT apps get 
 transmitted to, and treated by, the client as a single web page - albeit 
 with JavaScript code that clears sections and puts different content on it 
 to make it look like different pages are being loaded.  This is cool in 
 terms of minimizing client interaction delays, but raises serious concerns 
 on my part when attempting to build a very large application.  

 For example, if my application had 500 screens (or what appeared to the 
 user as 500 different screens), I would hate to think that, even though the 
 client only currently needs 20 screens, he/she is going to get all 500 up 
 front!  The initial load would take an unnecessarily long time too.

 If I understand correctly, this model is great for small apps but could be 
 a very significant problem as an application grows considerably.

 I would really appreciate feedback on this issue.  Has this been an issue 
 for others?  Is there a simple way to make pages load on an as-needed basis?

 Thanks for the feedback!

 Blake McBride


Am Mittwoch, 2. Mai 2012 22:38:15 UTC+2 schrieb Blake:

 Greetings,

 Unless I misunderstand something, I just found out that GWT apps get 
 transmitted to, and treated by, the client as a single web page - albeit 
 with JavaScript code that clears sections and puts different content on it 
 to make it look like different pages are being loaded.  This is cool in 
 terms of minimizing client interaction delays, but raises serious concerns 
 on my part when attempting to build a very large application.  

 For example, if my application had 500 screens (or what appeared to the 
 user as 500 different screens), I would hate to think that, even though the 
 client only currently needs 20 screens, he/she is going to get all 500 up 
 front!  The initial load would take an unnecessarily long time too.

 If I understand correctly, this model is great for small apps but could be 
 a very significant problem as an application grows considerably.

 I would really appreciate feedback on this issue.  Has this been an issue 
 for others?  Is there a simple way to make pages load on an as-needed basis?

 Thanks for the feedback!

 Blake McBride



-- 
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/-/rjnoJmdpP0YJ.
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: Whole app as one big transmission

2012-05-02 Thread Blake McBride
Thanks for all the feedback.  I feel very comfortable with the solution.
 Thanks!

On Wed, May 2, 2012 at 4:21 PM, Jens jens.nehlme...@gmail.com wrote:

 Thats what code splitting is for. But don't create 500 split points (each
 split point has some overhead), e.g. one for each screen! Make it more
 meaningful so you may end up with 20 split points or so.

 As of today, when you introduce split points in your code you have to make
 sure that the code behind that split point is exclusive to that split
 point. Everything thats not exclusive to a single split point will be
 loaded on app start.
 Example: You have 2 pages and each is behind a code split point. If both
 pages make heavy use of the same GWT Widgets, all these widgets will be
 downloaded when the app starts although they are behind a split point.
 Thats because they are not exclusive to a single split point anymore.
 So if you choose your split points larger, you have a better chance to
 have more exclusive code behind that split point.

 In an upcoming release (hopefully GWT 2.5) a new code splitting algorithm
 will be introduced that uses heuristics to merge smaller split points into
 larger ones to make more code exclusive to a split point and thus reducing
 the initial download when the app starts. With such an algorithm you could
 define 500 split points in your code but may end up with 20 real split
 points after compiling the app.

 Also keep in mind if your split points have a certain size, its a good
 idea to give the user some feedback that your apps now loads additional
 code from the server.

 -- J.



 Am Mittwoch, 2. Mai 2012 22:38:15 UTC+2 schrieb Blake:

 Greetings,

 Unless I misunderstand something, I just found out that GWT apps get
 transmitted to, and treated by, the client as a single web page - albeit
 with JavaScript code that clears sections and puts different content on it
 to make it look like different pages are being loaded.  This is cool in
 terms of minimizing client interaction delays, but raises serious concerns
 on my part when attempting to build a very large application.

 For example, if my application had 500 screens (or what appeared to the
 user as 500 different screens), I would hate to think that, even though the
 client only currently needs 20 screens, he/she is going to get all 500 up
 front!  The initial load would take an unnecessarily long time too.

 If I understand correctly, this model is great for small apps but could
 be a very significant problem as an application grows considerably.

 I would really appreciate feedback on this issue.  Has this been an issue
 for others?  Is there a simple way to make pages load on an as-needed basis?

 Thanks for the feedback!

 Blake McBride


 Am Mittwoch, 2. Mai 2012 22:38:15 UTC+2 schrieb Blake:

 Greetings,

 Unless I misunderstand something, I just found out that GWT apps get
 transmitted to, and treated by, the client as a single web page - albeit
 with JavaScript code that clears sections and puts different content on it
 to make it look like different pages are being loaded.  This is cool in
 terms of minimizing client interaction delays, but raises serious concerns
 on my part when attempting to build a very large application.

 For example, if my application had 500 screens (or what appeared to the
 user as 500 different screens), I would hate to think that, even though the
 client only currently needs 20 screens, he/she is going to get all 500 up
 front!  The initial load would take an unnecessarily long time too.

 If I understand correctly, this model is great for small apps but could
 be a very significant problem as an application grows considerably.

 I would really appreciate feedback on this issue.  Has this been an issue
 for others?  Is there a simple way to make pages load on an as-needed basis?

 Thanks for the feedback!

 Blake McBride

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

 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: 3-tier architecture /gwt

2012-05-02 Thread Thomas Broyer


On Wednesday, May 2, 2012 10:05:02 PM UTC+2, assiya wrote:

 Hello,

 I'd like to cut my gwt project into three projects:
 application of 3-tier architecture for example :
 -Project contains a customer
 - Project contains hibernate
  - Project contains my pojo classes
 does anyone have a sample project or a tutorial that explains the 
 principle


Note sure if that's what you're looking for but have a look at 
https://github.com/tbroyer/gwt-maven-archetypes which uses 'client' (GWT 
client-side), 'shared' (POJOs and GWT-RPC interfaces; or if you're using 
RequestFactory: all the proxies and contexts), and 'server' (server-side; 
webapp: GWT-RPC/RequestFactory implementation)

-- 
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/-/NbbsVUAQgW0J.
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: 3-tier architecture /gwt

2012-05-02 Thread Assiya EL
thank you for your reply, I'll see it, but I really don't know in
RequestFactory, never used in gwt, I note that I am beginner in gwt

you can

2012/5/2 Thomas Broyer t.bro...@gmail.com



 On Wednesday, May 2, 2012 10:05:02 PM UTC+2, assiya wrote:

 Hello,

 I'd like to cut my gwt project into three projects:
 application of 3-tier architecture for example :
 -Project contains a customer
 - Project contains hibernate
  - Project contains my pojo c**lasses
 does anyone have a sample project or a tutorial that explains the
 principle


 Note sure if that's what you're looking for but have a look at
 https://github.com/tbroyer/gwt-maven-archetypes which uses 'client' (GWT
 client-side), 'shared' (POJOs and GWT-RPC interfaces; or if you're using
 RequestFactory: all the proxies and contexts), and 'server' (server-side;
 webapp: GWT-RPC/RequestFactory implementation)

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




-- 

Assiya EL
Master Qualité du Logiciel



Plz consider environment - Only print this if necessary

-- 
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: JPA1 vs JPA2 compat Issue with Jetty?

2012-05-02 Thread Carlos Alexandro Becker
I found the problem. GWT-P crawler was adding javax.persistence-api 1.0 to 
the classpath. I add a exclusion for it in pom.xml and everything works 
fine.

Thanks , anyway.


On Wednesday, May 2, 2012 10:14:09 AM UTC-3, Jens wrote:

 Maybe you have for some reasons both JPA 1 and JPA 2 API in your 
 classpath? Already googled the error message?

 -- J.

 Am Mittwoch, 2. Mai 2012 14:27:24 UTC+2 schrieb Carlos Alexandro Becker:

 Hello.

 I'm coding an app with guice-persist, gwtp, jpa2 and hibernate. In the 
 not web mode, the tests and everything about persistence run fine... but, 
 when I try to use them in devmode I got many errors related to 
 compatibility issues with JPA1 and 2.

 Someone know anything about this? thanks



-- 
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/-/Zt5s0Ry7GksJ.
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: private static final EntityManagerFactory emfInstance = Persistence.createEntityManagerFactory(transactions-optional);

2012-05-02 Thread Carlos Alexandro Becker
which error you got?


On Monday, April 30, 2012 10:46:26 AM UTC-3, laxman lingampally wrote:

 HI all, 


 please help me. 

 i am trying to create EMF object  but it is does't created. 

 private static final EntityManagerFactory emfInstance = 
 Persistence.createEntityManagerFactory(transactions-optional); 



 Thanks  Regards 
 laxman 


-- 
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/-/3mt4Sys1xwkJ.
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: private static final EntityManagerFactory emfInstance = Persistence.createEntityManagerFactory(transactions-optional);

2012-05-02 Thread laxman lingampally
Hi carlos,

here EMF object got   null   value.

this object  emfInstance  show's in debug mode null value,  why ??

EntityManagerFactory emfInstance =
Persistence..createEntityManagerFactory(some_name_you_choose);


please tell me asap.

thanks  regards
laxman

On Thu, May 3, 2012 at 8:00 AM, Carlos Alexandro Becker
caarl...@gmail.comwrote:

 which error you got?


 On Monday, April 30, 2012 10:46:26 AM UTC-3, laxman lingampally wrote:

 HI all,


 please help me.

 i am trying to create EMF object  but it is does't created.

 private static final EntityManagerFactory emfInstance =
 Persistence.**createEntityManagerFactory(**transactions-optional);



 Thanks  Regards
 laxman

  --
 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/-/3mt4Sys1xwkJ.

 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-contrib] Add Map support to RequestFactory (issue 6132056)

2012-05-02 Thread james . horsley

Reviewers: t.broyer,

Message:
Thomas, I put you as the reviewer as I believe bobv, whose name was on
the issue, is no longer on the GWT team and I'd noticed you're very well
versed in requestfactory based on your community activity. Please let me
know if I should add/change reviewers.

Thanks!

Description:
Add Map support to RequestFactory (Issue 5524)

I tested it with a simple requestfactory web app in the same eclipse
workspace.

Please review this at http://codereview.appspot.com/6132056/

Affected files:
  M  
src/com/google/web/bindery/requestfactory/apt/ClientToDomainMapper.java
  M  
src/com/google/web/bindery/requestfactory/apt/TransportableTypeVisitor.java

  M src/com/google/web/bindery/requestfactory/server/Resolver.java
  M  
src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java
  M  
src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java
  M  
src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java
  M  
src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java
  M  
test/com/google/web/bindery/requestfactory/gwt/client/FindServiceTest.java
  M  
test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java

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


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


[gwt-contrib] GWT SerialisationPolicy Error

2012-05-02 Thread nofear
I have a problem with GW and Hibernate,

in my database , I have Sinav(Exam) and Soru(Question) tables and a
mid-table called sinav_soru(Exam_Question) , when i want to reach the
exam list from the database using Hibernate the error occurs , please
help.

Thanks in advance.

Here's the error detail ;

[WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type
'org.hibernate.collection.PersistentBag' was not included in the set
of types which can be serialized by this SerializationPolicy or its
Class object could not be loaded. For security purposes, this type
will not be serialized.: instance =
[tr.edu.gsu.yds.shared.domain.Soru@307262ee] at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
619) at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126) at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:153) at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
539) at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:
709) at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
748) at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
621) at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126) at
com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java:
44) at
com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java:
39) at
com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serializeInstance(ArrayList_CustomFieldSerializer.java:
51) at
com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serializeInstance(ArrayList_CustomFieldSerializer.java:
28) at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
740) at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
621) at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126) at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:153) at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
539) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:
616) at
com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:
474) at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
571) at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
208) at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
248) at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
362) at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216) at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181) at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
729) at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152) at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
49) at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152) at org.mortbay.jetty.Server.handle(Server.java:324) at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
505) at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:843) at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
395) at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:488)

I really could'n fix the problem.

here's my domain code ;



Sinav.java (Exam)

package tr.edu.gsu.yds.shared.domain;

import 

[gwt-contrib] Re: Add Map support to RequestFactory (issue 6132056)

2012-05-02 Thread t . broyer

Adding Rajeev as a reviewer.


http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/apt/TransportableTypeVisitor.java
File
src/com/google/web/bindery/requestfactory/apt/TransportableTypeVisitor.java
(right):

http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/apt/TransportableTypeVisitor.java#newcode86
src/com/google/web/bindery/requestfactory/apt/TransportableTypeVisitor.java:86:
DeclaredType asCollection =
Rename to asMap ?

http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/server/Resolver.java
File src/com/google/web/bindery/requestfactory/server/Resolver.java
(right):

http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/server/Resolver.java#newcode505
src/com/google/web/bindery/requestfactory/server/Resolver.java:505:
accumulator.put(resolveDomainValue(entry.getKey(), detectDeadEntities),
resolveDomainValue(entry.getValue(), detectDeadEntities));
Line too long.

http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/server/Resolver.java#newcode702
src/com/google/web/bindery/requestfactory/server/Resolver.java:702:
accumulator.put(resolveClientValue(entry.getKey(),entryTypes[0]).getClientObject(),
resolveClientValue(entry.getValue(),entryTypes[1]).getClientObject());
Line too long.

http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java
File
src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java
(right):

http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java#newcode523
src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java:523:
if (ctx instanceof MapPropertyContext 
((MapPropertyContext)ctx).getKeyType() != null) {
Why is this null-check necessary? (or useful)

http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java
File
src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java
(right):

http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java#newcode25
src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java:25:
import com.google.web.bindery.autobean.vm.impl.TypeUtils;
We're in 'shared', so we can't use 'vm' here (unless there's a
super-source version of the class, which is not the case here).

http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java#newcode29
src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java:29:
import java.nio.charset.CoderMalfunctionError;
We're in 'shared' and java.nio is not emulated (and EntityCodex has no
super-source version)

http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java#newcode135
src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java:135:
if (ValueCodex.canDecode(keyType)) {
So, if the key is a value type, serialization would use a JSON object;
and otherwise it'd use two lists?

Can't we have a single serialization for maps? And how about a list of
key-value pairs rather than a pair of lists (list of keys and list of
values)?
Or wouldn't it be easier to simply restrict keys to value types? (like
AutoBean does already)

http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java#newcode141
src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java:141:
Object key = ValueCodex.decode(keyType,
StringQuoter.create(propertyKey));
StringQuoter.create() always creates a String Splittable (isString() ==
true, asString() != null), so ValueCodex won't be able to decode
booleans, numbers or enums.

= add a unit test using either an Integer or enum as key.

http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java#newcode208
src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java:208:
boolean isSimpleMap = (map.isEmpty() ||
ValueCodex.canDecode(map.keySet().iterator().next().getClass()));
Serialization handling does not seem to be symmetric for an empty map
with reference-type'd key: it'd be serialized as a simple map (i.e.
JSON object) but would be tentatively parsed as a pair of lists (and
would fail at the split.size()!=2 check)
= add a unit test for such a map.

How about deferring to the collection (de)serialization, using the map's
entrySet() (and probably special-handling for Map.Entry).
That would encode a map as a list of key-value pairs, and would provide
an easy migration path for those people already doing so with sets of
key-value ValueProxies.


Re: [gwt-contrib] GWT SerialisationPolicy Error

2012-05-02 Thread Freeland Abbott
Roughly speaking, the GWT serialization code---specifically, the part of
the generated server stub that serializes your response to send to the
client---is getting a type of object (PersistentBag) that it knows the
client code won't be able to decode, and is stopping as a result.

In this case, PersistentBag is a List, and your interface says it might
return any kind of List known to the system.  Either the compile of your
GWT app didn't know about the hibernate classes, to include a deserializer
for PersistentBag, or (perhaps at least as likely), the hibernate class is
using some of the features that GWT forbids (e.g. it may be reflective),
and so we can't generate a deserializer for it.  You can compile with DEBUG
messages and search for the class name to see what the exact problem is.
 But one of those two explains why it's not included in the set.

In a distinct difference from regular Java, GWT usually rewards you for
being more specific about classes: if you are specific that you return
ArrayList only, then GWT only makes a serializer for that, and you save
client size.  But if you return List..., and your classpath for the GWT
compile includes all 8 of the vanilla Java List types, then GWT has to
generate code to handle all of them, leading to code bloat because, in
fact, you probably don't actually touch CopyOnWriteArrayList, for example.
 And, to your problem, the server runtime may have List types that the
client didn't know about to generate code for, or list types that GWT just
can't handle (but it could handle many others, and doesn't know which
concrete types you might see).

Since GWT can't prove there *is* an error at compile time, it won't whine.
 But, using an interface type in your serialization, there *might* be a
runtime problem, and that's the error message you are seeing.

You might do better to translate the persisted list into a vanilla
ArrayList, and express your RPC in those terms.  Or you might use something
other than RPC as a transport, looking at JSON or RequestFactory as a way
to make the wire protocol lose the detailed Java type and just have a
JavaScript array as the underlying base.


On Tue May 01 14:01:49 GMT-400 2012, nofear adnba...@gmail.com wrote:

 I have a problem with GW and Hibernate,

 in my database , I have Sinav(Exam) and Soru(Question) tables and a
 mid-table called sinav_soru(Exam_Question) , when i want to reach the
 exam list from the database using Hibernate the error occurs , please
 help.

 Thanks in advance.

 Here's the error detail ;

 [WARN] Exception while dispatching incoming RPC call
 com.google.gwt.user.client.rpc.SerializationException: Type
 'org.hibernate.collection.PersistentBag' was not included in the set
 of types which can be serialized by this SerializationPolicy or its
 Class object could not be loaded. For security purposes, this type
 will not be serialized.: instance =
 [tr.edu.gsu.yds.shared.domain.Soru@307262ee] at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:

 619) at
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:

 126) at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
 $ValueWriter$8.write(ServerSerializationStreamWriter.java:153) at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:

 539) at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:

 709) at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:

 748) at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:

 621) at
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:

 126) at
 com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java:

 44) at
 com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java:

 39) at
 com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serializeInstance(ArrayList_CustomFieldSerializer.java:

 51) at
 com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serializeInstance(ArrayList_CustomFieldSerializer.java:

 28) at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:

 740) at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:

 621) at
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:

 126) at
 

[gwt-contrib] Re: GWT SerialisationPolicy Error

2012-05-02 Thread Jens
During compilation of your client side GWT code a serialization policy file 
is generated (thats the HASH.rpc file in your war/appname folder) which 
contains information about all client side serializable types. This file 
also includes java.util.List and all its implementation.

On your server you also have a List in your entities and you have chosen 
ArrayList as implementation but Hibernate does enhance your entity classes 
and replaces all Lists in your entities to PersistentList or PersistentBag 
(depending on @IndexColumn) to support lazy loading and maybe other JPA 
specific features. So at runtime its not an ArrayList anymore.
Well and as already mentioned, as PersistentBag is not in the serialization 
policy file (GWT compiler does not know this class) the server refuses to 
serialize your entity.

Solutions:
- use Gilead with hibernate (transforms hibernate lists back to 
java.util.List and lazy properties will be null)
- use Data Transfer Objects (DTO): either write them by hand or use 
something like Dozer
- use RequestFactory: similar to DTO as RequestFactory generates client 
side beans for your server side entities. So you never send your server 
side entities directly to the client.
- use pure JSON


-- J.


Am Dienstag, 1. Mai 2012 20:01:49 UTC+2 schrieb nofear:

 I have a problem with GW and Hibernate, 

 in my database , I have Sinav(Exam) and Soru(Question) tables and a 
 mid-table called sinav_soru(Exam_Question) , when i want to reach the 
 exam list from the database using Hibernate the error occurs , please 
 help. 

 Thanks in advance. 

 Here's the error detail ; 

 [WARN] Exception while dispatching incoming RPC call 
 com.google.gwt.user.client.rpc.SerializationException: Type 
 'org.hibernate.collection.PersistentBag' was not included in the set 
 of types which can be serialized by this SerializationPolicy or its 
 Class object could not be loaded. For security purposes, this type 
 will not be serialized.: instance = 
 [tr.edu.gsu.yds.shared.domain.Soru@307262ee] at 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
  

 619) at 
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
  

 126) at 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter 
 $ValueWriter$8.write(ServerSerializationStreamWriter.java:153) at 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
  

 539) at 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:
  

 709) at 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
  

 748) at 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
  

 621) at 
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
  

 126) at 
 com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java:
  

 44) at 
 com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java:
  

 39) at 
 com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serializeInstance(ArrayList_CustomFieldSerializer.java:
  

 51) at 
 com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serializeInstance(ArrayList_CustomFieldSerializer.java:
  

 28) at 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
  

 740) at 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
  

 621) at 
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
  

 126) at 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter 
 $ValueWriter$8.write(ServerSerializationStreamWriter.java:153) at 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
  

 539) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java: 
 616) at 
 com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java: 
 474) at 
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 
 571) at 
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
  

 208) at 
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
  

 248) at 
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
  

 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) 

[gwt-contrib] Re: Add Map support to RequestFactory (issue 6132056)

2012-05-02 Thread t . broyer


http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java
File
src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java
(right):

http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java#newcode523
src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java:523:
if (ctx instanceof MapPropertyContext 
((MapPropertyContext)ctx).getKeyType() != null) {

This method is called by both AutoBeanVisitor.visitCollectionProperty
and AutoBeanVisitor.visitMapProperty since some of the ctx's

implemented

both MapPropertyContext and CollectionPropertyContext. The null

checked

seemed to safely (as best as I could tell) distinguish the cases.


I haven't looked whether there'd be an alternate approach, but it might
at least be worth a comment in the code.

http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java
File
src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java
(right):

http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java#newcode135
src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java:135:
if (ValueCodex.canDecode(keyType)) {

I originally did as you're suggesting but switched after digging into
what AutoBean is doing. From what I could tell from
AutoBeanCodexImpl.MapCoder and


http://code.google.com/p/google-web-toolkit/wiki/AutoBean#JSON_structures

AutoBean has been updated to allow non-value type keys; as such I just
followed what AutoBean's doing.


Oh, I'm more than OK to mimick AutoBean then!

http://codereview.appspot.com/6132056/

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


Re: [gwt-contrib] GWT SerialisationPolicy Error

2012-05-02 Thread Karthik Reddy
*In a distinct difference from regular Java, GWT usually rewards you for 
being more specific about classes:  if you are specific that you return 
ArrayList only, then GWT only makes a serializer for that, and you save 
client size.  But if you return List..., and your classpath for the GWT 
compile includes all 8 of the vanilla Java List types, then GWT has to 
generate code to handle all of them, leading to code bloat *
*
*
Does this have any run-time slow-ness is it just a compile-time slowness ? 
  

Also, does it increase the ultimate size of the generated javascript?

On Wednesday, May 2, 2012 7:35:36 AM UTC-7, Freeland Abbott wrote:

 Roughly speaking, the GWT serialization code---specifically, the part of 
 the generated server stub that serializes your response to send to the 
 client---is getting a type of object (PersistentBag) that it knows the 
 client code won't be able to decode, and is stopping as a result.

 In this case, PersistentBag is a List, and your interface says it might 
 return any kind of List known to the system.  Either the compile of your 
 GWT app didn't know about the hibernate classes, to include a deserializer 
 for PersistentBag, or (perhaps at least as likely), the hibernate class is 
 using some of the features that GWT forbids (e.g. it may be reflective), 
 and so we can't generate a deserializer for it.  You can compile with DEBUG 
 messages and search for the class name to see what the exact problem is. 
  But one of those two explains why it's not included in the set.

 In a distinct difference from regular Java, GWT usually rewards you for 
 being more specific about classes: if you are specific that you return 
 ArrayList only, then GWT only makes a serializer for that, and you save 
 client size.  But if you return List..., and your classpath for the GWT 
 compile includes all 8 of the vanilla Java List types, then GWT has to 
 generate code to handle all of them, leading to code bloat because, in 
 fact, you probably don't actually touch CopyOnWriteArrayList, for example. 
  And, to your problem, the server runtime may have List types that the 
 client didn't know about to generate code for, or list types that GWT just 
 can't handle (but it could handle many others, and doesn't know which 
 concrete types you might see).

 Since GWT can't prove there *is* an error at compile time, it won't 
 whine.  But, using an interface type in your serialization, there *might* be 
 a runtime problem, and that's the error message you are seeing.

 You might do better to translate the persisted list into a vanilla 
 ArrayList, and express your RPC in those terms.  Or you might use something 
 other than RPC as a transport, looking at JSON or RequestFactory as a way 
 to make the wire protocol lose the detailed Java type and just have a 
 JavaScript array as the underlying base.





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

Re: [gwt-contrib] GWT SerialisationPolicy Error

2012-05-02 Thread Freeland Abbott
It explicitly does increase the size of the generated javascript (more code
for more classes, which later turn out to be unused-in-practice).

More code size also implies more *latency* to download the extra size, but
not really any run-time *slowness*, unless you need to e.g. do paging
because of the extra code size (fairly unlikely, I would hope!).

But yes, more serializable classes means more code generation at compile
time, so it'll be slower.  But probably not much---that part should be
pretty fast, I would think.  The big static problem is the JS code bloat
(and attendant latency), but the functional problem is the runtime error
risk from *non*serializable or server-classpath-only types.


On Wed May 02 20:12:44 GMT-400 2012, Karthik Reddy karthik.ele...@gmail.com
wrote:

 *In a distinct difference from regular Java, GWT usually rewards you for
 being more specific about classes:  if you are specific that you return
 ArrayList only, then GWT only makes a serializer for that, and you save
 client size.  But if you return List..., and your classpath for the GWT
 compile includes all 8 of the vanilla Java List types, then GWT has to
 generate code to handle all of them, leading to code bloat *
 *
 *
 Does this have any run-time slow-ness is it just a compile-time slowness ?


 Also, does it increase the ultimate size of the generated javascript?


 On Wednesday, May 2, 2012 7:35:36 AM UTC-7, Freeland Abbott wrote:

 Roughly speaking, the GWT serialization code---specifically, the part of
 the generated server stub that serializes your response to send to the
 client---is getting a type of object (PersistentBag) that it knows the
 client code won't be able to decode, and is stopping as a result.

 In this case, PersistentBag is a List, and your interface says it might
 return any kind of List known to the system.  Either the compile of your
 GWT app didn't know about the hibernate classes, to include a deserializer
 for PersistentBag, or (perhaps at least as likely), the hibernate class is
 using some of the features that GWT forbids (e.g. it may be reflective),
 and so we can't generate a deserializer for it.  You can compile with DEBUG
 messages and search for the class name to see what the exact problem is.
  But one of those two explains why it's not included in the set.

 In a distinct difference from regular Java, GWT usually rewards you for
 being more specific about classes: if you are specific that you return
 ArrayList only, then GWT only makes a serializer for that, and you save
 client size.  But if you return List..., and your classpath for the GWT
 compile includes all 8 of the vanilla Java List types, then GWT has to
 generate code to handle all of them, leading to code bloat because, in
 fact, you probably don't actually touch CopyOnWriteArrayList, for example.
  And, to your problem, the server runtime may have List types that the
 client didn't know about to generate code for, or list types that GWT just
 can't handle (but it could handle many others, and doesn't know which
 concrete types you might see).

 Since GWT can't prove there *is* an error at compile time, it won't
 whine.  But, using an interface type in your serialization, there *might* be
 a runtime problem, and that's the error message you are seeing.

 You might do better to translate the persisted list into a vanilla
 ArrayList, and express your RPC in those terms.  Or you might use something
 other than RPC as a transport, looking at JSON or RequestFactory as a way
 to make the wire protocol lose the detailed Java type and just have a
 JavaScript array as the underlying base.



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

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