Re: How to debug server side code

2015-08-24 Thread Sahdev Kamboj
You need to be create debug point also.
Port on 8000 by default.
On Aug 24, 2015 9:17 PM, "Magnus"  wrote:

> Please provide some hint...
> I run "Debug As" -> "Web Application (Super Dev Mode)" in eclipse.
> But execution does not stop at my server-side breakpoints...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: RequestFactory - update entity

2015-08-24 Thread Thomas Broyer
The first question that comes to mind is: where does 'object' come from? 
(and why is it frozen)

On Monday, August 24, 2015 at 9:10:30 PM UTC+2, Manuel wrote:
>
> Hi everyone,
>
> Im using the requestFactory and want to update an entity. The problem is, 
> its frozen.
>
> I get an entityProxy passed, were I like to update 1 value. The problem 
> is, when I try to edit it with a new Request, it fails, cause the proxy is 
> frozen.
>
> I found this: 
> http://stackoverflow.com/questions/7479779/gwt-autobean-frozen-when-saving-graph
>
> It says, I got to get a new entityProxy from the server.
>
> This would take 1 request to receive a "fresh" entityProxy and another for 
> the update... I was wondering, if there is a better way to do this? Or 
> whats the proper way to update a entity with just 1 request?
> Is there a way to actually create a new entityProxy on the client that 
> updates an existing entity without loading it from the server?
>
> Thats what I tried:
>PersonRequest request = AppManager.getRequestFactory().
> personRequest();
>PersonProxy proxy = request.create(PersonProxy.class);
>
>
>proxy.setSalary(0);
>proxy.setId(object.getId()); // Copy values of passed 
> object
>proxy.setVersion(object.getVersion());   
>
>request.persist(proxy).fire(new Receiver() 
>
>
> Copy all values ends in hibernate Exception for detached entity passed to 
> persist.
>
> Thanks in advance.
>
> Regards
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: RequestFactory - update entity

2015-08-24 Thread Manuel
The following solved my problem:

request = AppManager.getRequestFactory().personRequest(); 
*object = request.edit(object);* //object is the Proxy passed to me
// *request.edit(object);* // instead of this...

Actually edit(object) returns a new "mutable version" of the entityProxy, 
that can be worked with. Changing values and persisting did not cause 
exceptions anymore.

Am Montag, 24. August 2015 21:10:30 UTC+2 schrieb Manuel:
>
> Hi everyone,
>
> Im using the requestFactory and want to update an entity. The problem is, 
> its frozen.
>
> I get an entityProxy passed, were I like to update 1 value. The problem 
> is, when I try to edit it with a new Request, it fails, cause the proxy is 
> frozen.
>
> I found this: 
> http://stackoverflow.com/questions/7479779/gwt-autobean-frozen-when-saving-graph
>
> It says, I got to get a new entityProxy from the server.
>
> This would take 1 request to receive a "fresh" entityProxy and another for 
> the update... I was wondering, if there is a better way to do this? Or 
> whats the proper way to update a entity with just 1 request?
> Is there a way to actually create a new entityProxy on the client that 
> updates an existing entity without loading it from the server?
>
> Thats what I tried:
>PersonRequest request = AppManager.getRequestFactory().
> personRequest();
>PersonProxy proxy = request.create(PersonProxy.class);
>
>
>proxy.setSalary(0);
>proxy.setId(object.getId()); // Copy values of passed 
> object
>proxy.setVersion(object.getVersion());   
>
>request.persist(proxy).fire(new Receiver() 
>
>
> Copy all values ends in hibernate Exception for detached entity passed to 
> persist.
>
> Thanks in advance.
>
> Regards
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


RequestFactory - update entity

2015-08-24 Thread Manuel
Hi everyone,

Im using the requestFactory and want to update an entity. The problem is, 
its frozen.

I get an entityProxy passed, were I like to update 1 value. The problem is, 
when I try to edit it with a new Request, it fails, cause the proxy is 
frozen.

I found this: 
http://stackoverflow.com/questions/7479779/gwt-autobean-frozen-when-saving-graph

It says, I got to get a new entityProxy from the server.

This would take 1 request to receive a "fresh" entityProxy and another for 
the update... I was wondering, if there is a better way to do this? Or 
whats the proper way to update a entity with just 1 request?
Is there a way to actually create a new entityProxy on the client that 
updates an existing entity without loading it from the server?

Thats what I tried:
   PersonRequest request = AppManager.getRequestFactory().
personRequest();
   PersonProxy proxy = request.create(PersonProxy.class);

   
   proxy.setSalary(0);
   proxy.setId(object.getId()); // Copy values of passed object
   proxy.setVersion(object.getVersion());   
   
   request.persist(proxy).fire(new Receiver() 


Copy all values ends in hibernate Exception for detached entity passed to 
persist.

Thanks in advance.

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to debug server side code

2015-08-24 Thread Magnus
Please provide some hint...
I run "Debug As" -> "Web Application (Super Dev Mode)" in eclipse.
But execution does not stop at my server-side breakpoints...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JsInterop question ...

2015-08-24 Thread Ümit Seren
I haven't found a solution either. 
The final JSInterop version will probably have quite different annotations: 
(https://groups.google.com/forum/#!searchin/google-web-toolkit-contributors/annotations/google-web-toolkit-contributors/Dwdk-aEHs8Y/OvSNe6egUekJ)
There is also a paragraph about overloading methods (espeically regarding 
Elemental): 
https://docs.google.com/document/d/1tir74SB-ZWrs-gQ8w-lOEV3oMY6u6lF2MmNivDEihZ4/edit#heading=h.kcij4viab6dx



On Tuesday, June 30, 2015 at 9:30:17 PM UTC+2, Benjamin Tillman wrote:
>
> Hey everyone, just a quick question regarding JsInterop: how is it 
> proposed to manage javascript functions that can potentially take more than 
> one type of parameter? For example, take the websocket interface 
> :
>
> @JsType(prototype = "WebSocket")
> public interface WebSocket extends EventTarget {
>
>   ... blah blah.
>
>   void send(String data);
>   // void send(Blob data); <-- JsInterop forbids this
>
> }
>
>
> I suppose that the following is possible
>
> @JsType(prototype = "WebSocket")
> public interface WebSocket extends EventTarget {
>
>   void send(Object data);
>
> }
>
>
> but ... this doesn't seem ideal from a Java perspective :)
>
> Regards,
> Ben.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: What is planned release date for GWT 2.8 (with lambdas) ?

2015-08-24 Thread Tranquiliser
I have been using GWT-2.8.0-SNAPSHOT for 5 months. Now it is very stable. 

https://gwt-review.googlesource.com/#/q/status:merged

shows the current progress of GWT 2.8 development.


On Thursday, 18 December 2014 03:21:57 UTC+11, Yuriy Nakonechnyy wrote:
>
> Hi everyone,
>
>   Since I was expecting *lambdas* to appear in *2.7*, now I'm checking 
> for *GWT 2.8* release announcement daily (or sometimes more often) :)
>   *In several days I think I'll start behaving like Cartman (in South 
> Park) waiting for Nintendo Wii release* (btw, you can watch it here 
> ) :)
>
>   So, could anyone be so kind to shed some light on *approximate GWT 2.8* 
> with lambdas *release date*? Will it appear before New Year? Will it 
> appear right before *GWT.create* conference or after?
>   Please, help me :)
>
> Kind regards,
> Yura
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT & Polymer TODO sample

2015-08-24 Thread Cristiano Costantini
Hi Christian,
I'm interested on your alternative strategy, I however don't use Gradle,
and I've tried to convert it to a Maven project. It can be found here
https://github.com/cristcost/todo-gwt-polymer

It does not work yet:
if I import it in Eclipse and run,  SuperDevMode complains that
Component.java and TodoListType.java use lambda (even if I do use the
option "-sourceLevel 1.8" on running SuperDevMode)

If I run it with maven and jetty (mvn clean install jetty:run) I get a
weird error on the Browser Javascript Console: "Uncaught TypeError: Cannot
read property '$_nullMethod' of null" (Note I removed the
"src/main/webapp/Todo/Todo.nocache.js"
file in order to run without SuperDevMode)...

Do you or anyone else have any suggestion for me to get  it working?

Thanks,
Cristiano

PS. I'm using a GWT 2.8.0-SNAPSHOT compiled from the master branch this
morning



Il giorno dom 23 ago 2015 alle ore 22:53 Christian Bauer <
christian.ba...@gmail.com> ha scritto:

> I've been taking a break from my main application, and worked on an
> alternative strategy integrating Polymer and GWT 2.8 with JSInterop, you
> can find the result here:
> https://github.com/christianbauer/todo-gwt-polymer
>
> This code is very close to Polymer API and JavaScript, type-safety is
> therefore awful. A more powerful @JsFunction would be needed to scale this
> to more code.
>
> However there is no @JsExport in the code and with a few "minor"
> improvements, Polymer could be a great View language for GWT.
>
> Cheers,
> Christian
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JsInterop question ...

2015-08-24 Thread Benjamin Tillman
Any chance of reply? If it's a bad question I'm happy to hear that as well, 
just so I know I'm thinking about this the wrong way.

Regards,
Ben.

On Wednesday, 1 July 2015 05:30:17 UTC+10, Benjamin Tillman wrote:
>
> Hey everyone, just a quick question regarding JsInterop: how is it 
> proposed to manage javascript functions that can potentially take more than 
> one type of parameter? For example, take the websocket interface 
> :
>
> @JsType(prototype = "WebSocket")
> public interface WebSocket extends EventTarget {
>
>   ... blah blah.
>
>   void send(String data);
>   // void send(Blob data); <-- JsInterop forbids this
>
> }
>
>
> I suppose that the following is possible
>
> @JsType(prototype = "WebSocket")
> public interface WebSocket extends EventTarget {
>
>   void send(Object data);
>
> }
>
>
> but ... this doesn't seem ideal from a Java perspective :)
>
> Regards,
> Ben.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Architecture of adding 'pure html/js' to client side?

2015-08-24 Thread funkforce
Yes that is my plan (not to use gwt) and the link you provided also points 
to clientbundle as a way to fetch the html/js part. Thanks for taking the 
time to answer my question.

On Sunday, August 23, 2015 at 9:19:04 PM UTC+2, Ignacio Baca Moreno-Torres 
wrote:
>
> Sorry, I mean that if you want it to be independent of GWT, probably the 
> answer is just to not use GWT in this independent part, and I said that 
> because of your comment 'add large chunks of html/js as an independent 
> part'.
>
>
> http://stackoverflow.com/questions/744137/best-way-to-externalize-html-in-gwt-apps
>
> On Friday, August 21, 2015 at 9:38:04 AM UTC+2, funkforce wrote:
>>
>> >But I not sure how this is related to GWT
>> I am pretty sure people mix gwt and html/js programming and I wonder how 
>> they mix thees things together if they don't use ui-binder in a single page 
>> application.
>>
>> Thanks.
>> On Tuesday, August 18, 2015 at 6:38:44 PM UTC+2, Ignacio Baca 
>> Moreno-Torres wrote:
>>>
>>> But I not sure how this is related to GWT, specially if you want it to 
>>> be independent. We added the swagger ui (
>>> https://github.com/swagger-api/swagger-ui 
>>> )
>>>  
>>> in some projects and we just add the dist forlder into the war (webapp 
>>> folder if you are using maven). You can add links to this htmls using 
>>> anchors or setting the browser url manually using 
>>> Window.Location.setLocation.
>>>
>>> On Tue, Aug 18, 2015 at 9:41 AM funkforce  wrote:
>>>
 I am a bit surprised that none have added large chunks of html/js as an 
 independent part of the application and are willing to sharewell 
 well... 


 On Wednesday, August 12, 2015 at 10:34:52 AM UTC+2, funkforce wrote:
>
> We have a GWT application coded in java on the client. There is no ui 
> binder only a jsp page and a class with our onModuleLoad() method and 
> then 
> pure java serving the gui. We want to add bunch of html/javascript to a 
> new 
> part of the application but I don't know how to organize the new 
> html/javascript part. The new part will most likely contain a lot of 
> html/js + js frameworks and talk json to the same server that now serves 
> gwt-rpc. Its a first step to move from gwt-widgets.
>
>
> Can someone please share how to do this? The closest I have found is 
> ClientBundle but I am not sure its the way to.
>
>
> Thanks.
>
>
>
>
> -- 



-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.