Re: RequestFactory/Editor AutoBean has been frozen error

2011-02-17 Thread Scott Olcott
there are server errors and my Receiver.onFailure(ServerFailure) method is called I am not able to reuse my proxy object. If I do nothing in the onFailure method other that setting the some error message in the ui and then try to fire another request using the same proxy object I get the AutoBean has been

[gwt-contrib] RequestFactory - EntityProxy AutoBean Category

2011-02-07 Thread Krishna
Hi, Does RequestFactory EntityProxy supports AutoBean Category (http:// code.google.com/p/google-web-toolkit/wiki/AutoBean#Categories) ? i. e. Can I define a Category for an EnitityProxy? If yes, how can I do that? It would be nice to define a category direct as an annotated Entity method

Re: [gwt-contrib] RequestFactory - EntityProxy AutoBean Category

2011-02-07 Thread Ray Ryan
You can't do these things yet, but we've been discussing them. On Thu, Feb 3, 2011 at 5:08 AM, Krishna krishnacal...@gmail.com wrote: Hi, Does RequestFactory EntityProxy supports AutoBean Category (http:// code.google.com/p/google-web-toolkit/wiki/AutoBean#Categories) ? i. e. Can I define

Re: Issue 5752: ListEditor.setValue fails once the underlying AutoBean has been frozen

2011-02-04 Thread Eric Andresen
We are seeing this issue as well. Colin, did you try changing the AbstractEditorDelegate, and if so did you have any luck? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: Issue 5752: ListEditor.setValue fails once the underlying AutoBean has been frozen

2011-02-04 Thread Colin Alworth
I did, in order to verify the fix, and have just filed an issue. http://code.google.com/p/google-web-toolkit/issues/detail?id=5981 The patch is below - it can be applied to 2.1.1 or 2.2.0-m1 Index: user/src/com/google/gwt/editor/client/impl/AbstractEditorDelegate.java

RequestFactory EntityProxy and AutoBean category

2011-02-01 Thread Krishna
Hi, Does RequestFactory EntityProxy supports AutoBean category (http:// code.google.com/p/google-web-toolkit/wiki/AutoBean#Categories) ? i. e. Can I define a category for an EnitityProxy? If yes, how can I do that? Thanks! Krishna Caldas -- You received this message because you are subscribed

Re: Issue 5752: ListEditor.setValue fails once the underlying AutoBean has been frozen

2011-01-31 Thread Bálint Kriván
Great, so I'm not the only one who is experiencing the issue, good to hear. Because I was starting to believe I'm doing something wrong. Should we open an issue for this? On Mon, Jan 31, 2011 at 12:52 AM, Colin Alworth niloc...@gmail.com wrote: I don't fully understand the interactions between

Re: Issue 5752: ListEditor.setValue fails once the underlying AutoBean has been frozen

2011-01-30 Thread Colin Alworth
I don't fully understand the interactions between RequestFactory and the editor system, but it seems that there is another issue which is still causing this error to occur, though it seems to be another, unrelated bug, which only affects the HasDataEditor adapter and the editable HasData

Issue 5752: ListEditor.setValue fails once the underlying AutoBean has been frozen

2011-01-29 Thread Bálint Kriván
Hi! I've just asked a question at issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=5752#c6 Can somebody reply, so if I should wait for release or not? Thanks! -- Regards, Bálint Kriván -- You received this message because you are subscribed to the Google Groups Google Web

Re: Issue 5752: ListEditor.setValue fails once the underlying AutoBean has been frozen

2011-01-29 Thread Thomas Broyer
On Saturday, January 29, 2011 6:19:45 PM UTC+1, Bálint Kriván wrote: Hi! I've just asked a question at issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=5752#c6 Can somebody reply, so if I should wait for release or not? Are you using a HasDataEditor to push your data

Re: Issue 5752: ListEditor.setValue fails once the underlying AutoBean has been frozen

2011-01-29 Thread Bálint Kriván
On Sat, Jan 29, 2011 at 9:30 PM, Thomas Broyer t.bro...@gmail.com wrote: On Saturday, January 29, 2011 6:19:45 PM UTC+1, Bálint Kriván wrote: Hi! I've just asked a question at issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=5752#c6 Can somebody reply, so if I should

Re: Issue 5752: ListEditor.setValue fails once the underlying AutoBean has been frozen

2011-01-29 Thread Colin Alworth
The other question: Is there a way to not to write custom FieldCustomizer for columns? Can't GWT know which proxy/property I am editing? Or am I doing something wrong? Thanks! Assuming by FieldCustomizer you mean FieldUpdater... It seems not – the Column.getValue method must be

Re: Issue 5752: ListEditor.setValue fails once the underlying AutoBean has been frozen

2011-01-29 Thread Colin Alworth
On an unrelated note, the wysiwyg formatting options and copy/paste in the new google groups seem to be essentially useless, as indicated by the terrible display of code above... Apologies for sharing that terrible looking code segment.. -C -- You received this message because you are

Re: Issue 5752: ListEditor.setValue fails once the underlying AutoBean has been frozen

2011-01-29 Thread Bálint Kriván
Yes, sorry :) I meant FieldUpdater. I will check your magic later thanks! But currently I'm still getting java.lang.IllegalStateException: The AutoBean has been frozen :( I've updated to 2.2.0-M1, and I see that Thomas's patch is in. So I'm not sure, what's going on. The other fields can

Re: using new 2.1.1rc RequestFactory AutoBean in RESTful Architecture

2011-01-15 Thread karthik reddy
very valid questions. A good number of gwt developers at some stage will face similar questions. I would appreciate if someone could share their experiences and findings pertaining to the questions zixzigma has brought up. -- You received this message because you are subscribed to the

Re: using new 2.1.1rc RequestFactory AutoBean in RESTful Architecture

2011-01-15 Thread Y2i
On Saturday, December 11, 2010 2:01:28 PM UTC-8, zixzigma wrote: is it possible to use 2.1.1 RequestFactory/AutoBean to convert POJO to JSON and viceversa when interacting with a RESTful Web Service ? the common practice with GWT client-server communication is to have packages

Re: using new 2.1.1rc RequestFactory AutoBean in RESTful Architecture

2011-01-15 Thread David Chandler
2.1.1 RequestFactory/AutoBean to convert POJO to JSON and viceversa when interacting with a RESTful Web Service ? the common practice with GWT client-server communication is to have packages: client, shared, server, configuring web.xml however, in-order to be truly loosely coupled, I am

[gwt-contrib] Issue 5752: ListEditor.setValue fails once the underlying AutoBean has been frozen (issue1284801)

2011-01-13 Thread t . broyer
Reviewers: bobv, rjrjr, Description: Copied from the issue tracker: The real issue seems to be in how com.google.gwt.requestfactory.client.impl.RequestFactoryEditorDelegate determines whether it shouldFlush() or not: it only deals with am I in 'read-only' mode or not (if request==null, edited

[gwt-contrib] Re: Issue 5752: ListEditor.setValue fails once the underlying AutoBean has been frozen (issue1284801)

2011-01-13 Thread BobV
Attached to http://code.google.com/p/google-web-toolkit/issues/detail?id=5873 -- Bob Vawter Google Web Toolkit Team -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: Autobean frozen problem when reusing editors

2011-01-01 Thread Mike Guo
I am trying to reproduce this in a small example. However, it seems that this does not happen, when the ListEditor manages a list of LeafValueEditors, which is not the case in my application. I am a little bit confused about the whole LeafValueEditor-concept. Should my ListEditor always be

AutoBean and Traditional web-Services

2010-12-24 Thread drew
Hello, I am new to GWT and facing problems in using GWT 2.1 usign AutoBean or Request Factory. I developed a mock application usign request factory hvaing a Java Class file to create mock data for the Bean. That java class file also implements the RequestContext Interface but I dont know how

[gwt-contrib] [google-web-toolkit] r9482 committed - Ensure that enum types reachable through AutoBean method parameterizat...

2010-12-23 Thread codesite-noreply
Revision: 9482 Author: b...@google.com Date: Thu Dec 23 07:05:27 2010 Log: Ensure that enum types reachable through AutoBean method parameterizations are included in the EnumMap. Patch by: bobv Review by: jbrosenberg Review at http://gwt-code-reviews.appspot.com/1240801 http

Re: can AutoBean detect changes ?

2010-12-22 Thread Thomas Broyer
FYI, RequestContext#isChanged in Requestfactory is implemented using AutoBeanUtils.diff() on the frozen version and the edited version of the object (see code in com.google.gwt.requestfactory.shared.impl.AbstractRequestContext). I haven't checked, but I think messages are constructed using a

Re: can AutoBean detect changes ?

2010-12-22 Thread zixzigma
AutoBean documentation states that AutoBeanUtils.diff() performs a shallow comparison. is this enough ? if we have a graph of AutoBean/EntityProxies, with 3 level of connections/references, both AutoBean/and EntityProxies are only shallow compared ? is this the desired behaviour all the time

[gwt-contrib] Re: Ensure that enum types reachable through AutoBean method parameterizations are included in the E... (issue1240801)

2010-12-22 Thread jbrosenberg
LGTM with nits/suggestions http://gwt-code-reviews.appspot.com/1240801/diff/1/3 File user/src/com/google/gwt/autobean/rebind/model/AutoBeanMethod.java (right): http://gwt-code-reviews.appspot.com/1240801/diff/1/3#newcode201 user/src/com/google/gwt/autobean/rebind/model/AutoBeanMethod.java:201

can AutoBean detect changes ?

2010-12-21 Thread zixzigma
can AutoBean detect changes made to an object ? (the same way EntityProxy/RF work?) lets say a Widget presents a list of items to a user, to edit, user starts editing only one or two field out of 10 fields. can AutoBean detect the fields that have been changed, so that only the changes are sent

[gwt-contrib] Re: Comment on AutoBean in google-web-toolkit

2010-12-21 Thread codesite-noreply
handcoding. In our product we do not care too much about the potential size difference between RPC and JSON. Performance is still important, but RPC was never very performant (stackoverflow, slow javascript warnings). So I am thinking about writing a generator that combines the Autobean API

[gwt-contrib] Re: Comment on AutoBean in google-web-toolkit

2010-12-21 Thread codesite-noreply
/AutoBean -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Ensure that enum types reachable through AutoBean method parameterizations are included in the E... (issue1240801)

2010-12-21 Thread bobv
Reviewers: jbrosenberg, Description: Ensure that enum types reachable through AutoBean method parameterizations are included in the EnumMap. Patch by: bobv Review by: jbrosenberg Please review this at http://gwt-code-reviews.appspot.com/1240801/show Affected files: M user/src/com/google/gwt

Problem getting AutoBean sample in wiki working

2010-12-13 Thread AutoBean von AutoBahn
spent hours on AutoBean wiki [1] but still have no idea how I can use AutoBean to make these two methods work: String serializeToJson(Person person) Person deserializeFromJson(String json) Person is an interface, and everything else in that sample is an interface the GWT.create() also has

Re: Autobean frozen problem when reusing editors

2010-12-12 Thread Tobias
to flush after the editor is detached. I don't know what the right behavior is in this case: do not ever flush when detaching, only flush if the underlying autobean is not frozen, or make the autobean mutable and flush into that. In this case, it would make sense not to flush, but there may be other

Re: Autobean frozen problem when reusing editors

2010-12-12 Thread Tobias
detaching, only flush if the underlying autobean is not frozen, or make the autobean mutable and flush into that. In this case, it would make sense not to flush, but there may be other cases that require it. Thanks, Nick On Dec 11, 10:23 am, Tobias thaberm...@gmail.com wrote

AutoBean vs. gson ?

2010-12-12 Thread marius.andreiana
Hi, How does http://code.google.com/p/google-web-toolkit/wiki/AutoBean compare with http://code.google.com/p/google-gson/ ? gson cannot be used in GWT due to no reflection support. If this would have worked though, wouldn't gson have done exactly what AutoBean does, and more [1] ? Why would one

[gwt-contrib] Re: Comment on AutoBean in google-web-toolkit

2010-12-12 Thread codesite-noreply
Comment by marius.a...@gmail.com: Rather than manually declaring interfaces, why not do just class Person { String name; Address address; } and then have some internal code generators for required AutoBean structures? See also http://code.google.com/p/google-gson/ which is very easy

[gwt-contrib] Re: Comment on AutoBean in google-web-toolkit

2010-12-12 Thread codesite-noreply
, Person.class, json); Would have been nice to have a full basic working sample, rather than some code made up in a text editor... For more information: http://code.google.com/p/google-web-toolkit/wiki/AutoBean -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Comment on AutoBean in google-web-toolkit

2010-12-12 Thread codesite-noreply
, Person.class, json); }}} Would have been nice to have a full basic working sample, rather than some code made up in a text editor... For more information: http://code.google.com/p/google-web-toolkit/wiki/AutoBean -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Comment on AutoBean in google-web-toolkit

2010-12-12 Thread codesite-noreply
Comment by hajdin.m: ja For more information: http://code.google.com/p/google-web-toolkit/wiki/AutoBean -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: Autobean frozen problem when reusing editors

2010-12-11 Thread tshalif
So, my case of 'AutoBean has been frozen' is simply the default mode of entities returned. One must call request.edit(lesson) before using it. Also, when I tried to re-use (i.e. call request.edit()) with the request on which I called the initial request.fineEntity() I got an error, so I had

Re: Autobean frozen problem when reusing editors

2010-12-11 Thread Tobias
frozen. Has anyone figured out, how to re- use ListEditors? Should I file a bug on this? Regards, Tobias On Dec 11, 4:29 pm, tshalif tsha...@gmail.com wrote: So, my case of 'AutoBean has been frozen' is simply the default mode of entities returned. One must call request.edit(lesson) before using

using new 2.1.1rc RequestFactory AutoBean in RESTful Architecture

2010-12-11 Thread zixzigma
is it possible to use 2.1.1 RequestFactory/AutoBean to convert POJO to JSON and viceversa when interacting with a RESTful Web Service ? the common practice with GWT client-server communication is to have packages: client, shared, server, configuring web.xml however, in-order to be truly loosely

Re: Autobean frozen problem when reusing editors

2010-12-11 Thread Nick Hebner
what the right behavior is in this case: do not ever flush when detaching, only flush if the underlying autobean is not frozen, or make the autobean mutable and flush into that. In this case, it would make sense not to flush, but there may be other cases that require it. Thanks, Nick On Dec 11, 10

[gwt-contrib] Re: Comment on AutoBean in google-web-toolkit

2010-12-11 Thread codesite-noreply
Comment by autobeanvonautobahn: is it possible to use 2.1.1 RequestFactory/AutoBean to convert POJO to JSON and viceversa when interacting with a RESTful Web Service ? the common practice with GWT client-server communication is to have packages: client, shared, server, configuring web.xml

[gwt-contrib] Re: Comment on AutoBean in google-web-toolkit

2010-12-11 Thread codesite-noreply
/wiki/AutoBean -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Comment on AutoBean in google-web-toolkit

2010-12-11 Thread codesite-noreply
Comment by autobeanvonautobahn: from the server side of things, how does AutoBean relate to Jackson JSON processor ? For more information: http://code.google.com/p/google-web-toolkit/wiki/AutoBean -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: Autobean frozen problem when reusing editors

2010-12-10 Thread tshalif
Me too: I have the code below, which returns an existing pojo based on uid, lessonUri criteria. When I try to modify 'response' I get 'java.lang.IllegalStateException: The AutoBean has been frozen' thrown: request.findUserLesson(777L, lessonUri).fire(new ReceiverLessonProxy

[gwt-contrib] [google-web-toolkit] r9370 committed - Edited wiki page AutoBean through web user interface.

2010-12-07 Thread codesite-noreply
Revision: 9370 Author: b...@google.com Date: Tue Dec 7 16:06:32 2010 Log: Edited wiki page AutoBean through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=9370 Modified: /wiki/AutoBean.wiki === --- /wiki/AutoBean.wiki Sun

[gwt-contrib] Comment on AutoBean in google-web-toolkit

2010-12-03 Thread codesite-noreply
AutoBeanFactory{ // Would be illegal without a category providing an implementation of marry(AutoBeanPerson person, Person spouse) AutoBeanPerson person(); } }}} For more information: http://code.google.com/p/google-web-toolkit/wiki/AutoBean -- http://groups.google.com/group/Google-Web

[gwt-contrib] [google-web-toolkit] r9222 committed - Edited wiki page AutoBean through web user interface.

2010-11-14 Thread codesite-noreply
Revision: 9222 Author: zun...@google.com Date: Sun Nov 14 05:13:27 2010 Log: Edited wiki page AutoBean through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=9222 Modified: /wiki/AutoBean.wiki === --- /wiki/AutoBean.wiki Fri

[gwt-contrib] [google-web-toolkit] r9221 committed - Edited wiki page AutoBean through web user interface.

2010-11-12 Thread codesite-noreply
Revision: 9221 Author: b...@google.com Date: Fri Nov 12 20:08:46 2010 Log: Edited wiki page AutoBean through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=9221 Modified: /wiki/AutoBean.wiki === --- /wiki/AutoBean.wiki Fri

Autobean frozen problem when reusing editors

2010-11-08 Thread Tobias
AutoBeans from the original request. Is that a bug, or am I doing something wrong? Thanks, Tobias java.lang.IllegalStateException: The AutoBean has been frozen at com.google.gwt.editor.client.impl.AbstractAutoBean.checkFrozen(AbstractAutoBean.java: 176

[gwt-contrib] [google-web-toolkit] r9192 committed - Edited wiki page AutoBean through web user interface.

2010-11-05 Thread codesite-noreply
Revision: 9192 Author: b...@google.com Date: Fri Nov 5 08:58:24 2010 Log: Edited wiki page AutoBean through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=9192 Modified: /wiki/AutoBean.wiki === --- /wiki/AutoBean.wiki Tue

[gwt-contrib] [google-web-toolkit] r9193 committed - Edited wiki page AutoBean through web user interface.

2010-11-05 Thread codesite-noreply
Revision: 9193 Author: b...@google.com Date: Fri Nov 5 09:42:49 2010 Log: Edited wiki page AutoBean through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=9193 Modified: /wiki/AutoBean.wiki === --- /wiki/AutoBean.wiki Fri

[gwt-contrib] [google-web-toolkit] r9175 committed - Edited wiki page AutoBean through web user interface.

2010-11-02 Thread codesite-noreply
Revision: 9175 Author: b...@google.com Date: Tue Nov 2 05:23:24 2010 Log: Edited wiki page AutoBean through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=9175 Modified: /wiki/AutoBean.wiki === --- /wiki/AutoBean.wiki Mon

[gwt-contrib] [google-web-toolkit] r9170 committed - Edited wiki page AutoBean through web user interface.

2010-11-01 Thread codesite-noreply
Revision: 9170 Author: b...@google.com Date: Mon Nov 1 07:15:16 2010 Log: Edited wiki page AutoBean through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=9170 Modified: /wiki/AutoBean.wiki === --- /wiki/AutoBean.wiki Fri

[gwt-contrib] [google-web-toolkit] r9167 committed - Edited wiki page AutoBean through web user interface.

2010-10-29 Thread codesite-noreply
Revision: 9167 Author: b...@google.com Date: Fri Oct 29 12:11:01 2010 Log: Edited wiki page AutoBean through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=9167 Modified: /wiki/AutoBean.wiki === --- /wiki/AutoBean.wiki Fri

[gwt-contrib] [google-web-toolkit] r9168 committed - Edited wiki page AutoBean through web user interface.

2010-10-29 Thread codesite-noreply
Revision: 9168 Author: b...@google.com Date: Fri Oct 29 12:46:21 2010 Log: Edited wiki page AutoBean through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=9168 Modified: /wiki/AutoBean.wiki === --- /wiki/AutoBean.wiki Fri

Re: [gwt-contrib] AutoBean frozen bug repeat

2010-10-09 Thread BobV
On Fri, Oct 8, 2010 at 8:01 PM, Patrick Julien pjul...@gmail.com wrote: Proxies reached from getters from a mutable proxy aren't mutable In the meantime, you can can edit() for the entity that should be mutable, but isn't. http://gwt-code-reviews.appspot.com/976801 -- Bob Vawter Google Web

Re: [gwt-contrib] AutoBean frozen bug repeat

2010-10-09 Thread Patrick Julien
thanks, I've got the patch already On Sat, Oct 9, 2010 at 11:42 AM, BobV b...@google.com wrote: On Fri, Oct 8, 2010 at 8:01 PM, Patrick Julien pjul...@gmail.com wrote: Proxies reached from getters from a mutable proxy aren't mutable In the meantime, you can can edit() for the entity that

[gwt-contrib] AutoBean frozen bug repeat

2010-10-08 Thread Patrick Julien
); } // rest removed } })); handle.setNotificationScheme throws here with AutoBean is frozen sub-editors aren't able to set values either unlike my phantom problem I reported earlier -- http://groups.google.com/group/Google

[gwt-contrib] AutoBean frozen bug

2010-10-07 Thread Patrick Julien
proxy originated on the server however, calling set active throws IllegalStateException(The AutoBean has been frozen); -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: [gwt-contrib] AutoBean frozen bug

2010-10-07 Thread BobV
On Thu, Oct 7, 2010 at 1:55 PM, Patrick Julien pjul...@gmail.com wrote: They stay frozen, and finally, when flushing the driver, there is yet another loop to freeze all the AutoBeans.  Nowhere in between were the beans made mutable.  This is necessary because we sometimes have custom setters

Re: [gwt-contrib] AutoBean frozen bug

2010-10-07 Thread Patrick Julien
Yes, I know, rc.edit() is called, this is just before the flush, rc.edit has been called well before this. On Thu, Oct 7, 2010 at 5:23 PM, BobV b...@google.com wrote: On Thu, Oct 7, 2010 at 1:55 PM, Patrick Julien pjul...@gmail.com wrote: They stay frozen, and finally, when flushing the driver,

Re: [gwt-contrib] AutoBean frozen bug

2010-10-07 Thread Patrick Julien
And I might add, otherwise the flush would fail, values coming from the editors directly are fine On Thu, Oct 7, 2010 at 5:25 PM, Patrick Julien pjul...@gmail.com wrote: Yes, I know, rc.edit() is called, this is just before the flush, rc.edit has been called well before this. On Thu, Oct 7,

Re: [gwt-contrib] AutoBean frozen bug

2010-10-07 Thread Patrick Julien
FYI, if I modify to: @Override public String saveTriggered() { getRequestContext().edit(getValue()); getValue().setActive(!view.isPracticeDeactivated()); save(); return null; } still throws Reduced test

Re: [gwt-contrib] AutoBean frozen bug

2010-10-07 Thread Patrick Julien
never mind, rc.edit(response); returns a value, and that one is not frozen On Thu, Oct 7, 2010 at 5:35 PM, Patrick Julien pjul...@gmail.com wrote: FYI, if I modify to:       �...@override        public String saveTriggered() {                getRequestContext().edit(getValue());          

Re: [gwt-contrib] AutoBean frozen bug

2010-10-07 Thread BobV
On Thu, Oct 7, 2010 at 2:35 PM, Patrick Julien pjul...@gmail.com wrote: FYI, if I modify to:       �...@override        public String saveTriggered() {                getRequestContext().edit(getValue());                getValue().setActive(!view.isPracticeDeactivated());                

<    1   2   3