Re: RequestFactory - EntityManager and Server Side Question

2013-02-04 Thread Manuel
Hey, I had a look and used this to implement a servlet-module: http://code.google.com/p/google-guice/wiki/ServletModule My Module looks like the example from your session per request link: http://code.google.com/p/google-guice/wiki/JPA#Web_Environments_%28session-per-http-request%29 In the web.

Prevent CellTable resizing on its own

2013-02-04 Thread Jerry Haagsma
I have a cell table that takes up 100% of the width of the center of a DockLayoutPanel. When an element in the CellTable is selected, a bus event is fired to open a new view. For some reason, when the application returns to the original view (with the CellTable), the CellTable is scrunched over

Re: Errors running builder 'Google WebApp Project Validator' on project 'cobra-war'.

2013-02-04 Thread Wei Liu
Work around: Open Preferences -> Google -> Web Toolkit, Select a valid gwt sdk, then click Ok button. It will rebuild your workspace and fix the error. On Tuesday, January 15, 2013 6:59:08 AM UTC+11, Sudar wrote: > > Hi, I'm getting this error Errors running builder 'Google WebApp Project > Vali

Re: How to get readyState from GWT Frame object?

2013-02-04 Thread Tine Kondo
Thanks for your code Tomasz, it works great! One small remark though:in the *getReadyState()*, it should be : return ReadyState.valueOf(iframe.getElement().getPropertyString("readyState").* toUppercase()*); otherwise ReadyState.valueOf() complains that it cannot find the const value ... giv

Re: Implementing Custom SingleSelectionModel

2013-02-04 Thread Milan Cvejic
Ok, probably the best solution to this is to implement FieldUpdater and handle click events for that cell using it. It does not matter weather your form is in the cell or not. So using FieldUpdater, on a clickable cell you can in update method for FieldUpdater check to make sure that your formChan

Re: Vaadin 7 Released

2013-02-04 Thread Lehel
I heard about a gwt steering committee...It is a good news. But can you tell about this a little bit? So, another question...Do I must use Vaadin, when I work just on client side, and I need just GWT widgets? I mean GWT SDK continues to exist alone, without vaadin packages? The plugin gwt4nb und

Creation of 0-length Text node in DOM works in DEV mode, not in compiled/prod mode??

2013-02-04 Thread TimOnGmail
Hey folks... I have a situation where I am creating a Text node of 0-length: Node node = Document.get().createTextNode("") ... someOtherNodeInTheDom.appendChild(node); If I do the above in DEV, the new node is found as a 0-length text node in the DOM. However, when I run the same code in c

Re: How to get JSONObject out of a deserialized AutoBean?

2013-02-04 Thread Thomas Broyer
On Monday, February 4, 2013 4:32:52 PM UTC+1, membersound wrote: > > Hi, > > I serialize one of my beans with AutoBeanCodex.encode(bean).getPayload(); > > But when I'm trying to import and decode the same string, I do not want > the AutoBean Proxy Object. I just want to have the JSONObject itsel

How to get JSONObject out of a deserialized AutoBean?

2013-02-04 Thread membersound
Hi, I serialize one of my beans with AutoBeanCodex.encode(bean).getPayload(); But when I'm trying to import and decode the same string, I do not want the AutoBean Proxy Object. I just want to have the JSONObject itself. The following will still give me the AB Proxy. How can I get the "real" ob

Re: RequestFactory - EntityManager and Server Side Question

2013-02-04 Thread Thomas Broyer
On Monday, February 4, 2013 3:39:14 PM UTC+1, Manuel wrote: > > Oh, ok :) > But actually I dont got a ServletModule... Or do I got one? > Or how to implement one? > > So if i get this implemented, I got to use @Transactional and @Inject > annotations on my employee class, right? > If you don't

Re: Implementing Custom SingleSelectionModel

2013-02-04 Thread BM
I don't think I can use fieldUpdater as my form is not inside the Cell. On Saturday, February 2, 2013 10:30:16 PM UTC-6, Milan Cvejic wrote: > > Why are you not using FieldUpdater? > > So instead of preventing selection, you actually handle changes in cells? > > On Friday, February 1, 2013 11:22:

Re: Implementing Custom SingleSelectionModel

2013-02-04 Thread BM
Thanks for the reply. Interesting! Let me think. Well let me explain more and perhaps this should help a bit. I have a CellList which has custom Cell which shows read only text. And I have a GWT form which has some textboxes and Listboxes displayed next to my CellList. So if Cell 1 is clicked,

Re: Vaadin 7 Released

2013-02-04 Thread JoyaleXandre
I really need to give a try to Vaadin. You seems to do a really great work. What is the purpose of the GWT branch maintened by Vaadin team? What is the difference between the offical one? Why should I use it? Does Vaadin can help me doing databiding with datasource for exemple? Will it help me

Re: RequestFactory - EntityManager and Server Side Question

2013-02-04 Thread Manuel
Oh, ok :) But actually I dont got a ServletModule... Or do I got one? Or how to implement one? So if i get this implemented, I got to use @Transactional and @Inject annotations on my employee class, right? -- You received this message because you are subscribed to the Google Groups "Google Web

Re: Cannot show DialogBox - IllegalStateException

2013-02-04 Thread Kody
Oh thanks I see, then I totally misunderstood the dialogpanel. Using it without attaching it to a panel works (of course). 2013/2/4 Thomas Broyer > > > On Monday, February 4, 2013 12:54:03 PM UTC+1, membersound wrote: >> >> Because I'm trying to split my main/base module into subparts. So I >> e

Re: RequestFactory - EntityManager and Server Side Question

2013-02-04 Thread Thomas Broyer
On Monday, February 4, 2013 1:27:36 PM UTC+1, Manuel wrote: > > Hey, > > thanks for your replies. I just had a look at Spring and OpenSessionInView. > I never used Spring so far and it will take some time to get it working I > guess. > You don't have to use Spring. OpenSessionInView is a *patte

Re: RequestFactory - EntityManager and Server Side Question

2013-02-04 Thread Manuel
Hey, thanks for your replies. I just had a look at Spring and OpenSessionInView. I never used Spring so far and it will take some time to get it working I guess. Will I need to implement the whole spring stuff or is there just a .jar and some code for my web.xml and it will work ? Goes this wi

Re: Cannot show DialogBox - IllegalStateException

2013-02-04 Thread Thomas Broyer
On Monday, February 4, 2013 12:54:03 PM UTC+1, membersound wrote: > > Because I'm trying to split my main/base module into subparts. So I > extracted the whole DialogBox part and placed it inside a single java+xml > file. > > So I thought of wrapping my custom DialogBox inside a custom Componen

Re: Cannot show DialogBox - IllegalStateException

2013-02-04 Thread Kody
Because I'm trying to split my main/base module into subparts. So I extracted the whole DialogBox part and placed it inside a single java+xml file. So I thought of wrapping my custom DialogBox inside a custom Component (MyDialog) that I then can just attach to the main module. How would you do be

Re: RequestFactory - EntityManager and Server Side Question

2013-02-04 Thread Jens
> both, findEmployee() and persist() created a new EntityManager() and > closed it after the work is done. > So each request creates a new EntityManager instance and close it. *Request updateReq = request.persist().using(editableEmployee**);* This request once fired to the server will first

Re: Cannot show DialogBox - IllegalStateException

2013-02-04 Thread Thomas Broyer
Why are you adding a DialogBox as a child of another widget to begin with? On Monday, February 4, 2013 11:36:20 AM UTC+1, membersound wrote: > > Hi, > > what does a "IllegalStateException" mean for a DialogBox? > > java.lang.IllegalStateException: This widget's parent does not implement > HasWidg

Re: RequestFactory - EntityManager and Server Side Question

2013-02-04 Thread Thomas Broyer
On Monday, February 4, 2013 11:16:50 AM UTC+1, Manuel wrote: > > Hi Jens, > > both, findEmployee() and persist() created a new EntityManager() and > closed it after the work is done. > So each request creates a new EntityManager instance and close it. > You SHOULD (as in “must unless you really

Cannot show DialogBox - IllegalStateException

2013-02-04 Thread membersound
Hi, what does a "IllegalStateException" mean for a DialogBox? java.lang.IllegalStateException: This widget's parent does not implement HasWidgets at com.google.gwt.user.client.ui.Widget.removeFromParent(Widget.java:204) at com.google.gwt.user.client.ui.PopupPanel.show(PopupPanel.java:10

Re: RequestFactory - EntityManager and Server Side Question

2013-02-04 Thread Manuel
Hi Jens, both, findEmployee() and persist() created a new EntityManager() and closed it after the work is done. So each request creates a new EntityManager instance and close it. But when i want to persist() my Entity (that i received from server, and is already stored in the db), it says its

Vaadin 7 Released

2013-02-04 Thread Joonas Lehtinen
Just released Vaadin 7: https://vaadin.com/blog/-/blogs/the-next-reindeer-is-here-vaadin-7-0-0-is-out While publishing Vaadin 7 source on GitHub, We also published the GWT branch maintained by Vaadin team there: https://github.com/vaadin -- You received this message because you are subscribed