Re: Using RequestFactory with JPA (3 Entities)

2013-02-09 Thread Thomas Broyer
Try to re-generate the DeobfuscatorBuilder for your RequestFactory (maybe run the ValidationTool manually). This error would generally happen if the generated DeobfuscatorBuilder doesn't know about a particular proxy. On Friday, February 8, 2013 6:11:27 PM UTC+1, Nermin wrote: Dear Community,

Re: GWT DialogBox directly invisible

2013-02-09 Thread Thomas Broyer
You probably added the DialogBox as a child to another widget: don't do this. See http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/PopupPanel.html (a DialogBox is a specialized PopupPanel): « A PopupPanel should not generally be added to other panels;

Re: gwt-guice JPA, inject EntityManager thread safe?

2013-02-09 Thread Thomas Broyer
Because a service is a quasi-singleton and you want your EntityManager request-scoped (session-per-request), you should inject a ProviderEntityManager (I can't tell for UserTransaction as I don't know how it works) On Saturday, February 9, 2013 2:39:06 AM UTC+1, Yan wrote: Hi there, I

Re: Problem with EntityProxyChange handling

2013-02-09 Thread Thomas Broyer
On Friday, February 8, 2013 7:55:44 PM UTC+1, JahSon wrote: I don't think there is a way to distinguish them, therefore I think their usefulness is extremely limited. I would recommend simply using application-specific events for the purposes you are describing. If there is a way to

How to show a widget upon a canvas?

2013-02-09 Thread membersound
Hi, how can I show Widgets upon a Canvas? I want to display a TextBox in a specific position onto a canvas. I guess the right way is to add the TextBox to the canvas-wrapping Panel? And is so, how can I align the box then? -- You received this message because you are subscribed to the Google

How to attach custom event handler to InputField of EditTextBox?

2013-02-09 Thread membersound
Hi, I have a CellTable with EditTextBox. How can I attach a custom event handler to the InputElement that is created if I click an entry? (My goal is to allow only numbers for a certain TextBox, which is easy using KeyPressEvent. But how can I attach this to that box?) Thanks -- You

Re: How to show a widget upon a canvas?

2013-02-09 Thread Jens
I guess the right way is to add the TextBox to the canvas-wrapping Panel? I would say so. And is so, how can I align the box then? The wrapping panel could be a GWT AbsolutePanel that allows you to give all childs an absolute position using top/left coordinates. Your Canvas would

Re: How to attach custom event handler to InputField of EditTextBox?

2013-02-09 Thread Andrea Boscolo
Why not using http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/NumberCell.html ? On Saturday, February 9, 2013 3:43:43 PM UTC+1, membersound wrote: Hi, I have a CellTable with EditTextBox. How can I attach a custom event handler to the InputElement

Re: How to show a widget upon a canvas?

2013-02-09 Thread Ashwin Desikan
Why don't you add a text box to the parent widget of the canvas and position it. Use z-index to display it above the canvas. membersound kodyreco...@gmail.com wrote: Hi, how can I show Widgets upon a Canvas? I want to display a TextBox in a specific position onto a canvas. I guess the right

How to detect number keys in a NativeEvent?

2013-02-09 Thread membersound
Hi, looking at NativeEvent extends JavaScriptObject: how can I detect if the event was a number? I tried using Character.isDigit(event.getKeyCode()), but this would give me an error: The method isDigit(char) in the type Character is not applicable for the arguments (int) How could I else

Re: How to attach custom event handler to InputField of EditTextBox?

2013-02-09 Thread membersound
Because NumberCell is not an editable Cell? Am Samstag, 9. Februar 2013 15:54:36 UTC+1 schrieb Andrea Boscolo: Why not using http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/NumberCell.html? On Saturday, February 9, 2013 3:43:43 PM UTC+1, membersound

CellTable not updating DataProvider?

2013-02-09 Thread membersound
Hi, I have a CellTable whose values come from a ListDataProvider. The entries are editable with EditTextCell. Now if I change a value in one of the fields, the value is visually changed in the CellTable. BUT every EditTextBox.onBrowserEvent() still has the initial String value.So obviously

Re: CellTable not updating DataProvider?

2013-02-09 Thread Thomas Broyer
You need a FieldUpdater for each editable Column where you'll update your backing object. On Saturday, February 9, 2013 6:59:12 PM UTC+1, membersound wrote: Hi, I have a CellTable whose values come from a ListDataProvider. The entries are editable with EditTextCell. Now if I change a

Re: Go from one module to another module

2013-02-09 Thread emurmur
You can set values in localstorage in one page and they can be read in another, provided they are in the same domain. Localstorage is not secure, so do not write sensitive data into localstorage. On Friday, February 8, 2013 3:50:39 AM UTC-8, Visruth CV wrote: Hai, I have many gwt modules in

Re: How to detect number keys in a NativeEvent?

2013-02-09 Thread Andrea Boscolo
Check if event.getKeyCode() is between 48 and 57 (0 to 9 inclusive). And do the same for the keypad, if necessary. On Saturday, February 9, 2013 5:43:19 PM UTC+1, membersound wrote: Hi, looking at NativeEvent extends JavaScriptObject: how can I detect if the event was a number? I tried

Re: CellTable not updating DataProvider?

2013-02-09 Thread Kody
Thanks I must have missed that. Works! 2013/2/9 Thomas Broyer t.bro...@gmail.com You need a FieldUpdater for each editable Column where you'll update your backing object. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe

Re: How to attach custom event handler to InputField of EditTextBox?

2013-02-09 Thread Andrea Boscolo
Sorry, misread. Then either use a column-based field updater that validates your input, or roll your own, say, EditNumberCell that accepts only number elements, just like NumberCell does (I guess it's easy by extending EditTextBox). In both cases you can use NumberFormat to validate

Re: Go from one module to another module

2013-02-09 Thread Andy Stevko
The way you defined the demarcation lines is uncommon for a GWT application. They don't usually (re)load the entry point as the user navigates within the application. Passing data from html page to html page via URL param is exposed publicly. SessionStorage is could be the way to go because the

addEentHandler of custom widget not found in UiBinder widget but is fine outside

2013-02-09 Thread rogerl_201
Hi, While learning GWT, I created a customer widget StateCity (2 drop boxes a button). It works fine in another GWT app when added to RootPanel in onModuleLoad. The compiler, however, complains, when included in a g:HTMLPanel in TestContainer.ui.xml. In the code below, the compiler gives