Requestfactory and CellBrowser Context Problem

2012-03-14 Thread jmbz84
Hello, I'm trying to use gwt CellBrowser and RequestFactory to show some stored data as Cells in the cellbrowser. But I can't do it because of the context of requestfactory. Any Ideas ? class CustomTreeModel implements TreeViewModel { { ... .. ... List composerproxy = new

Re: Performance GWT-RPC, JavaScript Overlays, RequestFactory etc.

2012-03-14 Thread Thomas Broyer
> side. It is built on top of RequestBuilder and converts your data > into a content-type of (what I read was) text/plain. From here, it > will reconstruct your java object onto the servlet. > > JavaScript Overlays says that it has no overhead. > > RequestFactory is suppos

Performance GWT-RPC, JavaScript Overlays, RequestFactory etc.

2012-03-14 Thread Elizabeth Lemon
From here, it will reconstruct your java object onto the servlet. JavaScript Overlays says that it has no overhead. RequestFactory is supposed to be even faster than GWT-RPC. No serialization is required, but apparently deserialization is. Upon these, there is the old RequestBuilder with a JSON

Re: RequestFactory, ServiceLocator and Spring

2012-03-14 Thread Kay Roesler
never mind... I moved my locator class from client package to server and therethere, it worked. sry for spam On Wed, Mar 14, 2012 at 11:16 AM, kayser wrote: > Hi, > > I followed an example in this list on how to use a spring bean via > ServiceLocator. Everything works great using mvn gwt:debug

RequestFactory, ServiceLocator and Spring

2012-03-14 Thread kayser
Hi, I followed an example in this list on how to use a spring bean via ServiceLocator. Everything works great using mvn gwt:debug but when I try to package everything using mvn package I get compiler errors. Here is my code: import javax.servlet.http.HttpServletRequest; import org.springframework

Accessing GAE UserService from GWT client through requestfactory

2012-03-14 Thread Madz Lang
ry; import com.google.web.bindery.requestfactory.shared.ServiceLocator; /** * Gives a RequestFactory system access to the Google AppEngine UserService. */ public class UserServiceLocator implements ServiceLocator { public UserServiceWrapper getInstance(Class clazz) { final UserService u

Re: RequestFactory findXXX method cause performance pitfall

2012-03-12 Thread Lopakhin
Both solutions are great, and I re-read RF official documentation ,it actually uses Jesse's solution which I did't get it in the first place. -- 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:

Re: RequestFactory findXXX method cause performance pitfall

2012-03-12 Thread Lopakhin
Both solutions are great. I re-read RequestFactory official documentation, it uses Jessie's solution. Thomas's solution is good to ,but I don't know if there's any side effect. 在 2012年3月12日星期一UTC+8下午10时07分31秒,Jesse Hutton写道: > > On Mon, Mar 12, 2012 at 4:36 AM, Thomas

Re: RequestFactory findXXX method cause performance pitfall

2012-03-12 Thread Jesse Hutton
On Mon, Mar 12, 2012 at 4:36 AM, Thomas Broyer wrote: > > On Monday, March 12, 2012 5:39:00 AM UTC+1, Lopakhin wrote: >> >> In a common scenario of Web application, we usually populate >> cellTable,cellList with our data from RequestFactory context's method, such &

Re: RequestFactory findXXX method cause performance pitfall

2012-03-12 Thread Thomas Broyer
On Monday, March 12, 2012 5:39:00 AM UTC+1, Lopakhin wrote: > > In a common scenario of Web application, we usually populate > cellTable,cellList with our data from RequestFactory context's method, such > as findAll(), at this point , we already done the database query that

RequestFactory findXXX method cause performance pitfall

2012-03-11 Thread Lopakhin
In a common scenario of Web application, we usually populate cellTable,cellList with our data from RequestFactory context's method, such as findAll(), at this point , we already done the database query that get all entity ,but RequestFactory dictate that , to prepare with approp

Re: RequestFactory and offline clients

2012-03-08 Thread Thomas Broyer
; > Hello, > > I'm trying to create an application which is able to work even when > network is down. > The idea is to store data returned from RequestFactory on the > localStorage, and to use localStorage when network isn't available. > My problem - I'm not sure

RequestFactory and offline clients

2012-03-08 Thread Gilad Egozi
Hello, I'm trying to create an application which is able to work even when network is down. The idea is to store data returned from RequestFactory on the localStorage, and to use localStorage when network isn't available. My problem - I'm not sure exactly how to differentiate

Re: RequestFactory performance issue

2012-03-05 Thread Jakob Mar
I created an issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=7231 I also tried adding this ValueProxy check to the if statement and it fixed the problem: if (id.isEphemeral() && ! ValueProxy.class.isAssignableFrom(bean.getType()))

Re: Multiple RequestFactory servlets for a single GWT application

2012-03-04 Thread Gilad Egozi
Thanks Thomas, Do you know of some existing good examples for working with ServiceLayerDecorators? We really want to use RequestFactory, but it seems that there are a lot of hidden disadvantages for every visible advantage it gives. On Thursday, February 23, 2012 7:34:03 PM UTC+2, Thomas

Re: GWTTestCase and RequestFactory calls containing client code

2012-03-02 Thread Alexander Orlov
*Solution:* * * A * *in the **.gwt.xml* is your/my friend. -- 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/-/1HiOnmRNiTYJ. To post to this group,

Re: GWTTestCase and RequestFactory calls containing client code

2012-03-02 Thread Alexander Orlov
I guess, you're running your GWTTestCases with Eclipse? I'm using IntelliJ and when I run the test cases, no folder like *dp.verp.planer.Planer**.JUnit *is being created. However this folder is created when running the test cases with Eclipse (although they failed for other, Eclipse-specific re

Re: GWTTestCase and RequestFactory calls containing client code

2012-03-02 Thread Alexander Orlov
public void onSuccess(MyType response) {* *}* On Friday, March 2, 2012 10:31:13 PM UTC+1, Thomas Broyer wrote: > > > > On Friday, March 2, 2012 8:45:36 PM UTC+1, Alexander Orlov wrote: >> >> When I call RequestFactory calls containing methods from my >&

Re: GWTTestCase and RequestFactory calls containing client code

2012-03-02 Thread Thomas Broyer
On Friday, March 2, 2012 8:45:36 PM UTC+1, Alexander Orlov wrote: > > When I call RequestFactory calls containing methods from my > *GWTTestCase*extending JUnit test I always get: > > *[WARN] 404 - POST /dp.verp.actas.ActAs.JUnit/gwtRequest (192.168.1.51) > 1422 bytes >

GWTTestCase and RequestFactory calls containing client code

2012-03-02 Thread Alexander Orlov
When I call RequestFactory calls containing methods from my *GWTTestCase*extending JUnit test I always get: *[WARN] 404 - POST /dp.verp.actas.ActAs.JUnit/gwtRequest (192.168.1.51) 1422 bytes * *Mar 2, 2012 7:36:54 PM com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl

Re: RequestFactory performance issue

2012-03-02 Thread Thomas Broyer
On Friday, March 2, 2012 5:38:17 PM UTC+1, Jakob Mar wrote: > > Thanks Thomas for your reply. > > My Locator's never get called during this method call and the > performance issue is only on my ValueProxy's (no Locator's on them). > The time is about 1 to 50 millisec. per ValueProxy, increasing

Re: RequestFactory performance issue

2012-03-02 Thread Jakob Mar
Thanks Thomas for your reply. My Locator's never get called during this method call and the performance issue is only on my ValueProxy's (no Locator's on them). The time is about 1 to 50 millisec. per ValueProxy, increasing in each loop. Any idea why it's taking so long or what could by wrong? --

Re: RequestFactory performance issue

2012-03-02 Thread Thomas Broyer
On Friday, March 2, 2012 2:35:06 PM UTC+1, Jakob Mar wrote: > > Hello, > > I'm encountering performance issue in RequestFactory when sending > large complicated object graphs to the server. > After some debuging I found out that the pr

RequestFactory performance issue

2012-03-02 Thread Jakob Mar
Hello, I'm encountering performance issue in RequestFactory when sending large complicated object graphs to the server. After some debuging I found out that the problem is in line 267 in SimpleRequestProcessor.createReturnOperations if (id.isEphemeral()) { // See if the entit

Re: RequestFactory strange issue with embedded proxy

2012-03-01 Thread Mikael Couzic
OK, I got it, explaining the problem gave me the insight I needed. My QuoteRequestProxy.setProperty() method got mixed with the method generated by RequestFactory. I changed the method name, and it worked. Le vendredi 2 mars 2012 00:46:15 UTC+1, Mikael Couzic a écrit : > > Hi, > > I

RequestFactory strange issue with embedded proxy

2012-03-01 Thread Mikael Couzic
Hi, I have a very strange problem with RequestFactory. I have a hierarchy of embedded proxies : QuoteRequestProxy |_ PropertyInfoProxy |_ LocationProxy Everything was working fine, until I tried to create a new proxy from the client : QuoteRequestContext ctx

Re: Proguard Causes "The RequestFactory ValidationTool must be run" Error

2012-03-01 Thread Thomas Broyer
RequestFactory uses the name of the classes and methods to lookup "obfuscated tokens" to send over the wire (and the reverse, when processing the response from the server), so you have to keep your RF interfaces (services and proxies) names untouched, or change the class and method

Proguard Causes "The RequestFactory ValidationTool must be run" Error

2012-02-29 Thread Double
/AndroidRuntime(18174): java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the com.project.mms.a.a RequestFactory type 02-29 17:24:04.195: E/AndroidRuntime(18174): at com.google.e.a.c.b.a.b.a(Unknown Source) 02-29 17:24:04.195: E/AndroidRuntime(18174): at

Re: Is it possible to transfer list of EntityProxy between client and server using Requestfactory

2012-02-26 Thread July
Problem solved, turned out to be the polymorphism problem. On Monday, February 27, 2012 11:50:59 AM UTC+8, July wrote: > > HI: > Just like below, Is it possible to transfer list of EntityProxy between > client and server using RequestFactory? i didn't see any spec related to

Is it possible to transfer list of EntityProxy between client and server using Requestfactory

2012-02-26 Thread July
HI: Just like below, Is it possible to transfer list of EntityProxy between client and server using RequestFactory? i didn't see any spec related to this in RF doc. And i always get NPE when using maven processor plugin to validate. Thanks. @Service( value =foo.class, locator = bar.

Re: Multiple RequestFactory servlets for a single GWT application

2012-02-23 Thread Thomas Broyer
On Thursday, February 23, 2012 6:30:38 PM UTC+1, Gilad Egozi wrote: > > Hi Thomas > > I'm not talking about two instances of the same RequestFactory class, > but rather on two different RFs with different services. > Does your explanation apply in that case too? Absol

Re: Multiple RequestFactory servlets for a single GWT application

2012-02-23 Thread Gilad Egozi
Hi Thomas I'm not talking about two instances of the same RequestFactory class, but rather on two different RFs with different services. Does your explanation apply in that case too? Thanks, Gilad. On Feb 18, 1:09 pm, Thomas Broyer wrote: > Because RF works with reflection and sto

Re: RequestFactory and query by example with a Proxy

2012-02-22 Thread Cristian Rinaldi
Thanks Brandon. I'm using ValueProxy to send to the server. Look at the code and the entities (EntityProxy) always validated regardless of the method is called on the server (select or persist). Perhaps the validation should performed only in methods that require it, not always. Regards A.U.S Cri

Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2012-02-19 Thread agzamovr
BTW, i use *requestfactory-client+src.jar* and * requestfactory-server+src.jar* which contains source files of this libraries. Without this sources requestfactory doesn't works. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit"

Re: RequestFactory complexity (Frozen Beans et. all)

2012-02-19 Thread Brandon Donnelson
Here is an example of using Activities & Places, RequestFactory and Editors. http://c.gwt-examples.com/home/ui/places I find RequestFactory is quite simple once you master the 3 classes you need to get stuff done. It's by far superior to RPC. Brandon Donnelson http://c.gwt-examples

Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2012-02-19 Thread agzamovr
I also noticed that -strict flag should not be used for GWT compiler. Compiler prints error message but code works well... -- 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

Re: RequestFactory and query by example with a Proxy

2012-02-18 Thread Brandon Donnelson
Do you use a ValueProxy? like: @ProxyFor(PeopleJdoFilter.class) public interface PeopleJdoFilterProxy extends ValueProxy { void setSearch(List search); List getSearch(); //... } -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To v

Re: RequestFactory and query by example with a Proxy

2012-02-18 Thread Brandon Donnelson
Do you have constraints in your entity? @NotNull? Brandon -- 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/-/8_PyulPoMDUJ. To post to this group,

Re: Multiple RequestFactory servlets for a single GWT application

2012-02-18 Thread Thomas Broyer
Because RF works with reflection and stores some state in static variables, you cannot expose only a subset of proxies/services on a given endpoint (servlet instance). You can however do some runtime checks using ServiceLayerDecorators, just take care of overriding only the methods that are rea

RequestFactory and query by example with a Proxy

2012-02-17 Thread Cristian Rinaldi
I am developing a filter to search for an entity. The filter creates a proxy for the entity to seek, and then use this proxy with RequestFactory. The problem is that the entity being validated do not know why. The request is: *Request > findByProxy (EntityBaseProxy proxy);* Their counterpart

Re: Multiple RequestFactory servlets for a single GWT application

2012-02-16 Thread Ashwin Desikan
Gilad, You can have multiple RequestFactoryServlets. check out the example below. If you look at it closely, I have a different url mapping. You will have to define individual RequestTransports to be associated with the url-mapping in your client. Also, you will have to controll operation

Re: Multiple RequestFactory servlets for a single GWT application

2012-02-16 Thread Kanagaraj M
I dont think, this is something to do with RequestFactoryServlet. This has to be done in your web server not in any servlet. For example, You can have a login page accessed through https, after the successful authentication you can redirect to another page(accessed through http, this is your GW

Multiple RequestFactory servlets for a single GWT application

2012-02-16 Thread Gilad Egozi
Is it possible to have this? And how can this be achieved? The motivation - I want one secured (SSL) service for user- provisioning (passwords...), and one non-secured. Thanks, Gilad. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To po

Re: JSR303 localized messages with RequestFactory

2012-02-14 Thread Jens
Just googled a bit because I have never thought about it and based on the search results I think I would try it the following way (untested): 1.) Send the current client side locale as a HTTP header (e.g. X-GWT-LOCALE) to the server using a custom RequestTransport for RequestFactory (extend

Re: JSR303 localized messages with RequestFactory

2012-02-14 Thread Handw
+1. I also want to know. -- 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/-/57FbAFJ2ijUJ. To post to this group, send email to google-web-toolkit@g

Re: RequestFactory: Share a method between the client and the server

2012-02-12 Thread Jakob Mar
Hello, I do it like this: public interface IMyObject{ public int getA(); public int getB(); } public class MyObject implements IMyObject{ } public interface MyObjectProxy extends EntityProxy,IMyObject{ ... } public static int sum(IMyObject domain){ return domain.getA() + domai

RequestFactory: Share a method between the client and the server

2012-02-11 Thread Sydney
Hello, I want to run the same method on the client and server side. The reason is that the user can call that method when interacting with the UI, but the same method can also be called at a later time by a Task on the server side. I already wrote the method using the proxy object. I wanted to

Re: RequestFactory complexity (Frozen Beans et. all)

2012-02-10 Thread Joshb
post (and the referenced blog post) inspired me to write a little about our experience with request factory here: http://www.joshisonit.com/2012/02/our-experience-with-gwts-requestfactory/. For such a mature and well used library, GWT really does have a dearth of strong documentation/tuto

Re: Force RequestFactory to retrieve data from domain object getters?

2012-02-09 Thread Richard
No, I hadn't! Simple solution, fixed. I've been on that page all day but missed that! Thanks Thomas, Richard -- 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/goog

Re: Force RequestFactory to retrieve data from domain object getters?

2012-02-09 Thread Thomas Broyer
Have you referenced the property in a .with() on your request on the client-side? http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussi

Force RequestFactory to retrieve data from domain object getters?

2012-02-09 Thread Richard
I have a Map in a domain object and I'd really like to pass it through RequestFactory. RF doesn't do Maps, so I now generate a List of KeyValue in a getter in my domain object and they have KeyValueProxy equivalents on the client side. It seems that RF bypasses the getter when popu

Re: Force RequestFactory to use different base url

2012-02-07 Thread Ido
Hi, Can I set custom request url when running from browsers that enforce SOP? We would like to have a data server baked with RF on abc.com and app served on xyz.com.. Thanks a lot in advanced, Ido -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit

Re: parallel RequestFactory calls within an Editor

2012-02-06 Thread bloo
Thanks, Thomas. I came back here just to report that. I had designed my services to take Entities (and EntityProxies on the GWT side) as arguments to "filter" what the Selector will return as its list of choices out of habit of design. I should have considered passing the ID from the start given

RequestFactory complexity (Frozen Beans et. all)

2012-02-06 Thread Thomas Broyer
> I took a look at: > http://fascynacja.wordpress.com/tag/autobean-has-been-frozen/and this helped > alot, but I'm astounded that my code has to trap for all this stuff. This is a great post! You don't have many things to do if you just follow the "flow" of operations. > 1. Does anyone know if

RequestFactory complexity (Frozen Beans et. all)

2012-02-06 Thread dparish
I really want to like RequestFactory, really I do, but I'm astounded by the complexity. I finally got my head around the Locator, the proxies, etc and now I'm getting Frozen beans and "edited by another RequestContext" errors. I took a look at: http://fascynacja.wordpress.

Re: parallel RequestFactory calls within an Editor

2012-02-05 Thread Thomas Broyer
Er, well, don't pass the EntityProxy as an argument to your method in the oracle; pass its ID instead. -- 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-to

parallel RequestFactory calls within an Editor

2012-02-05 Thread bloo
forms an asynchronous RequestFactory service call to the server to query for the EntityProxy values - which causes the RequestContext "streams to cross" and an error. Is there any way to perform a RequestFactory based service call to the server while the root Editor is currently be

Re: RequestFactory with Use of Locator

2012-02-03 Thread MagusDrk
Hi hkopp Right now I'm facing the argument type mismatch error, but i'm unable to find the cause. I guess you were able to do it since there were no more comments. How did you found the cause? how did you solved? thanks a lot. -- You received this message because you are subscribed to the Goog

Re: RequestFactory , ServiceLocator and Generic Dao class , NoSuchMethodFound

2012-01-31 Thread Thomas Broyer
Can you look in the Deobfuscator.Builder generated by the RF ValidationTool (if you configured annotation processing in Eclipse, it should be in a .apt_generated folder unless you changed it; and note that if you ValidationTool from the command line, it won't output the Java code, only the comp

RequestFactory , ServiceLocator and Generic Dao class , NoSuchMethodFound

2012-01-30 Thread 叶雨飞
Hi, I'm trying out GWT RequestFactory but hit a problem, my entity is an JPA(Hibernate) and I have a Dao class like this public abstract class GenericDao () { List list() { some code to return a list. } void persist(E entity) { entityManager.persist(entity); } } public

Re: gwt requestfactory compile error Deobfuscator.Builder; did you forget to inherit a required module

2012-01-29 Thread Thomas Broyer
On Thursday, January 26, 2012 9:48:42 PM UTC+1, Johann wrote: > > hi everyone, > > i build my first gwt requestfactory app and got first an error in the > development output.. > > 21:43:01.805 [INFO] x] Ignored 1 unit with compilation errors in first > pass. > C

Re: GWT RequestFactory compile error Deobfuscator.Builder

2012-01-28 Thread Johann
I already suspected that I should use maven build tool. ok thanks for ur hint. that make sense. i will test 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/goog

Re: gwt requestfactory compile error Deobfuscator.Builder; did you forget to inherit a required module

2012-01-28 Thread Johann
thank you for your reply, im using gwt 2.4 with eclipse 3.7 Indigo. the containing gwt jars are directly copied from the plugin folder e.g requestfactory-server.jar how can i determine what version im using of this libaries? greez -- You received this message because you are subscribed to

Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2012-01-27 Thread Rob Whiteside
were generated by jaxws. The second project is the GWT project that contains my requestFactory stuff. I was creating an "EntityProxy" in my GWT project that was a "proxyfor" one of those Jaxws generated objects. After following all the directions, I was not getting anything

Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2012-01-27 Thread Rob Whiteside
Been a couple weeks since anyone chimed in on this issue. Has anyone solved this? I am experiencing the same issues. On Jan 15, 3:53 am, Thomas Broyer wrote: > Eclipse seems to have issues with annotation processors (it regularly > generates errors when I modify source code; generally it resolv

Re: GWT RequestFactory compile error Deobfuscator.Builder

2012-01-27 Thread Thomas Broyer
None. This is server-side code. Whether you'll see the error or not really depends on how you compile your project. When your project grows, I'd suggest using 2 Eclipse/Maven/whatever projects for client and server code (and possibly a third one for shared code), then you'd compile client-side

Re: gwt requestfactory compile error Deobfuscator.Builder; did you forget to inherit a required module

2012-01-27 Thread strcin
Check your java build path entries contain proper version of gwt that is 2.4.0. This kind of thing happens when you try to run RequestFactoryValidation with older version of gwt jars. On 26 sij, 21:48, Johann wrote: > hi everyone, > > i build my first gwt requestfactory app and got

Re: RequestFactory: Download entity, add to collection, persist on server, see collection change. Should this work?

2012-01-26 Thread Ryan McFall
code.google.com/p/google-web-toolkit/issues/detail?id=5724 >  andhttp://code.google.com/p/google-web-toolkit/issues/detail?id=5776 > (see "chained persistence" > inhttp://tbroyer.posterous.com/gwt-211-requestfactory-part-ii, this article > is a little old, but still mostly releva

gwt requestfactory compile error Deobfuscator.Builder; did you forget to inherit a required module

2012-01-26 Thread Johann
hi everyone, i build my first gwt requestfactory app and got first an error in the development output.. 21:43:01.805 [INFO] x] Ignored 1 unit with compilation errors in first pass. Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors. i did it and the console

GWT RequestFactory compile error Deobfuscator.Builder

2012-01-26 Thread Johann
Hi everyone, i try to build my first project with gwt requestfactory. after many other errors e.g annotation and missing jason classes. the development output show me an hint " [INFO] [x] - Ignored 1 unit with compilation errors in first pass. Compile with -strict or with -logLeve

Re: With RequestFactory where do utility methods etc live

2012-01-26 Thread Thomas Broyer
On Thursday, January 26, 2012 2:36:31 PM UTC+1, salk31 wrote: > > Where can I put code that works on the entity that I can use in the > server and the client? > > e.g. Person and PersonProxy with getSalutation, getFirstName, > getLastName and I want getFullName to work on client and server...

With RequestFactory where do utility methods etc live

2012-01-26 Thread salk31
Where can I put code that works on the entity that I can use in the server and the client? e.g. Person and PersonProxy with getSalutation, getFirstName, getLastName and I want getFullName to work on client and server... Where should this code live? The only thing I can think of is to have a new i

Re: RequestFactory: Download entity, add to collection, persist on server, see collection change. Should this work?

2012-01-25 Thread Thomas Broyer
On Tuesday, January 24, 2012 10:02:24 PM UTC+1, Ryan McFall wrote: > > I have an entity class Header, which contains a list of Response > objects. Via a RequestFactory service I create a Header object and > send it back to the client, ensuring that the list of Response o

RequestFactory: Download entity, add to collection, persist on server, see collection change. Should this work?

2012-01-24 Thread Ryan McFall
I have an entity class Header, which contains a list of Response objects. Via a RequestFactory service I create a Header object and send it back to the client, ensuring that the list of Response objects is initialized before sending it to the client. Then, on the client, I use the create method

JSR303 localized messages with RequestFactory

2012-01-24 Thread Peter Quiel
When the RequestFactory validates my domain objects using a jsr303 validator it gets localized contraint violation message and a message key. I debuged the code and on the server side the default locale is used no matter what locale is used on the client side. I did not find any locale settings in

RequestFactory saving ManyToOne relation return null randomly

2012-01-23 Thread nicolas marchais
Address the firts three times and an empty one the next time. I have a random NPE. Could you tell me if there is a specific EntityProxy creation order to respect when using RequestFactory and entities relationship ? Same question when filling properties ? Is there something particular with the w

Re: How to Update Entity with Editors & RequestFactory

2012-01-20 Thread jmbz84
Thx for your response, I solved it using merge instead of persist : entityManager.merge(articulo); //entityManager.persist(articulo); Hope it helps On 20 ene, 00:41, -sowdri- wrote: > This usually doesn't happen, as the entities with existing id will be only > m

Re: How to Update Entity with Editors & RequestFactory

2012-01-19 Thread -sowdri-
This usually doesn't happen, as the entities with existing id will be only merged rather than creating the new instance. Try checking your equals and hashcode implementations for 'Articulo' class, as that plays a central role in merge mechanism. If you still want a workaround, public void pe

How to Update Entity with Editors & RequestFactory

2012-01-19 Thread jmbz84
Hello, My question is how can I update an existing Entity instead of creating a new one. When I use my persist method in my Entity I always create a new Entity in my DB whith a new Id, even when the object passed in my persist method has an existing Id. Im using Editors and RequestFactory, the

DataGrid, Inline editing with RequestFactory and AsyncDataProvider

2012-01-16 Thread Ido
Hi, We are using DataGrid with inline editing handled by RequestFactory. We are looking for a way to nicely update the table after object was successfully updated (on failure we just clearViewData() the cell) In plain English, how can we replace single object in the DataProvider (async) without

Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2012-01-15 Thread Thomas Broyer
Eclipse seems to have issues with annotation processors (it regularly generates errors when I modify source code; generally it resolves itself after either a new change, a refresh or a rebuild). Is your app working if you compile your code outside Eclipse? As for your "build.properties does not

Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2012-01-14 Thread TULC
I'm still stuck on this. Some projects I've ported to 2.4 now work, but others still just won't budge. I have tried all the additional steps, but my *DeobfuscatorBuilder.java just won't appear in those projects (event thought the .apt_generated folder does, and is replaced if I change the name).

Re: RequestFactory: Get entity ID on success of persist

2012-01-13 Thread Thomas Broyer
On Thursday, January 12, 2012 3:24:38 PM UTC+1, Tapomay Dey wrote: > > Hi, > I am using following code. > > Note: > request is of type ? extends RequestContext > entity is of type ? extends EntityProxy > > (request).persist().using(entity).fire( > new Receiver() { > @Override > public

Re: RequestFactory: Get entity ID on success of persist

2012-01-12 Thread Patrick Julien
in request is of type ? extends RequestContext add your own persist method that returns the newly created entity instead of void. The you receive it using Receiver instead of Receiver -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

RequestFactory: Get entity ID on success of persist

2012-01-12 Thread Tapomay Dey
Hi, I am using following code. Note: request is of type ? extends RequestContext entity is of type ? extends EntityProxy (request).persist().using(entity).fire( new Receiver() { @Override public void onSuccess(Void unUsed) { I need the entity ID generated in the DB here. If I do entit

Re: Using RequestFactory interfaces on the server

2012-01-10 Thread Aidan O'Kelly
Yes you can do it, using RequestFactorySource<http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/web/bindery/requestfactory/vm/RequestFactorySource.html>, and an InProcessRequestTransport<http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/reque

Using RequestFactory interfaces on the server

2012-01-10 Thread Jakob Mar
Hi, I want to be able to use code like this on the client and server: MyRequestFactory myFactory ... myFactory.getFooFinder().find(queryString).fire(new Receiver>(){ public void onSuccess(List response){ } }); Has anyone used RequestFactory interfaces like this on

Re: Requestfactory: How to send a HTTP status code to the client

2012-01-04 Thread Thomas Broyer
Answered on SO: http://stackoverflow.com/q/8728243/116472 -- 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/-/qQJyETXujIEJ. To post to this group, s

Requestfactory: How to send a HTTP status code to the client

2012-01-04 Thread Andreas
Hi, what is the recommended way to inform the client about a 404 Not Found or a 401 Unauthorized? Greetings Andreas -- 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/ms

Re: does lazy loading OneToMany Relationship fails RequestFactory proxies?

2011-12-31 Thread Elhanan Maayan
check that, actually i a slightly different error only difference is instead of JobHistory, i get JobHistoryPk can't be sent to the client. On Sun, Jan 1, 2012 at 7:56 AM, Elhanan Maayan wrote: > ok, they really REALLY need to fix that thing, i changed the directory of > .apt_generated to .apt_g

Re: does lazy loading OneToMany Relationship fails RequestFactory proxies?

2011-12-31 Thread Elhanan Maayan
ok, they really REALLY need to fix that thing, i changed the directory of .apt_generated to .apt_gen and got an exception on the serve side (some stupid bug in eclipse link which doesn't make it compatible with jpa), i dunno if this was the original problem, but after fixing it still get the origin

Re: does lazy loading OneToMany Relationship fails RequestFactory proxies?

2011-12-31 Thread Thomas Broyer
On Saturday, December 31, 2011 9:08:50 PM UTC+1, Elhanan wrote: > > hi.. > i'm trying use an entity employee which has JobHistory entities related to > it..i should add that although jobHistory is considered an entity, it has > an embeddedId which is a dervied from manytoOne relationships. > >

does lazy loading OneToMany Relationship fails RequestFactory proxies?

2011-12-31 Thread Elhanan
hi.. i'm trying use an entity employee which has JobHistory entities related to it..i should add that although jobHistory is considered an entity, it has an embeddedId which is a dervied from manytoOne relationships. anyway i tried using eager loading, but it still doesn't work. i get this: com

Re: RequestFactory - Intermittent "The AutoBean has been frozen" on newly created

2011-12-30 Thread Jeff Rodriguez
That was it. *facepalm* Thanks for the help guys. On Dec 29, 3:56 pm, Thomas Broyer wrote: > I confirm the need to always use the same instance on the server side in a > given request. I do believe it's a bug though fwiw. -- You received this message because you are subscribed to the Google

Re: RequestFactory - Intermittent "The AutoBean has been frozen" on newly created

2011-12-29 Thread Thomas Broyer
I confirm the need to always use the same instance on the server side in a given request. I do believe it's a bug though fwiw. -- 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

Re: RequestFactory - Intermittent "The AutoBean has been frozen" on newly created

2011-12-29 Thread Aidan O'Kelly
In your addOrUpdate() method, check to see you are returning the exact same instance that was passed in, just remembered I did actually run into the same problem when you return a different instance that has the same identity. On Thu, Dec 29, 2011 at 4:38 PM, Jeff Rodriguez wrote: > Yeah, I put

Re: RequestFactory - Intermittent "The AutoBean has been frozen" on newly created

2011-12-29 Thread Jeff Rodriguez
Yeah, I put that code into a click handler for a button so I can just repeatedly fire it off. It's the only code in the function. It seems like something is trying to edit the result before my receiver callbacks are called. I say that because it works on the server side every single time. If I cli

Re: RequestFactory Value Proxy Use Case

2011-12-29 Thread Thomas Broyer
The difference between ValueProxy and EntityProxy is that ValueProxy-s do not have "identity". Two EntityProxy-s can be said to represent the same object if they share the same stableId(); that cannot be said for ValueProxy, where each instance is a distinct object. For instance, when you Reque

Re: RequestFactory - Intermittent "The AutoBean has been frozen" on newly created

2011-12-28 Thread Aidan O'Kelly
>From the code you posted, it should work fine (even the original code). Is it all executed in one function? It sounds like there's some paths of execution which differ from it, and somehow end up calling setName() on a frozen proxy. -- You received this message because you are subscribed to the

Re: RequestFactory - Intermittent "The AutoBean has been frozen" on newly created

2011-12-28 Thread Jeff Rodriguez
Hi Aidan, thanks for the reply. I just tried with the corrected edit() call, and I'm seeing the same behavior as before. If I remove the edit call entirely, it also behaves the same. I've noticed that it actually behaves a bit more erratically than I first thought. Not every subsequent call su

<    2   3   4   5   6   7   8   9   10   11   >