Re: clickHandler goes in loop

2014-03-07 Thread Davide Micheletti
its a long code, however in summary: in tab1 i've a table (table1) with a clickHandler that depends from another table (table2) in tab2 i've only display some db data code when i switch tab if (tabLayoutPanel.getSelectedIndex() == 0) { // tab1 build_tab1(); clear_TAB2();

Re: Change CSSResources in different Projects

2014-03-07 Thread Dominic Warzok
Hi thanks for your support, Now it's working very well. My Factory now looks : public class PSGResourceFactory { private static PSGResourceFactory fac; private PSGResources resources; public PSGResources getResources() { if ( resources == null ) { resources =

in GWT, can we manage Messages Constants (i18n) at Server as we manage at Client?

2014-03-07 Thread Tom
Messages Constants (com.google.gwt.i18n.client.Constants com.google.gwt.i18n.client.Messages) in GWT allow us to put all Messages Constants into properties files so that we can change these messages constants at any time we want without the need to recompile the whole webapp when we

Label not getting new value inside FlexTable

2014-03-07 Thread Saurabh Joshi
Hello, I have a flex table and some labels inside the table. Initially I set the labels in the flex table - Enter code here... private FlexTable flexTable_Context = new FlexTable(); private Label myLabelID = new Label(); private Label myLabelIDVal = new Label(); int row = -1; int col = -1;

GWT RPC with API Manager (middleware)

2014-03-07 Thread Zheng Jing Tan
Hi, Is that even possible? To add an API Manager between GWT client and GWT Servlet, something like a proxy, so that the API manager can know all the RPCs to the servlet. API Manager is a ready software that we cannot change the implementation of it. If it's possible, how do I implement the

com.google.gwt.user.client.Cookies.setCookie(.....). is failing with DNS Name

2014-03-07 Thread ram . pamudurthi
Hi, I am using Gwt-2.5.1. I am setting sessionId to cookies using com.google.gwt.user.client.Cookies.setCookie(.). For this I used following code. String baseDomain = com.google.gwt.user.client.Window.Location.getHostName(); Date cookieDate = new Date();

Re: in GWT, can we manage Messages Constants (i18n) at Server as we manage at Client?

2014-03-07 Thread Thomas Broyer
On Friday, March 7, 2014 9:33:26 AM UTC+1, Tom wrote: Messages Constants (com.google.gwt.i18n.client.Constants com.google.gwt.i18n.client.Messages) in GWT allow us to put all Messages Constants into properties files so that we can change these messages constants at any time we want

Re: com.google.gwt.user.client.Cookies.setCookie(.....). is failing with DNS Name

2014-03-07 Thread Thomas Broyer
I *think* this is the expected behavior (from browsers, GWT just passes the value around). But because you want the cookie to be sent to the current domain (only? or do you have subdomains too?) you can just pass 'null' there, and the cookie won't have a ;domain= attribute. On Thursday, March

Re: clickHandler goes in loop

2014-03-07 Thread Thomas Broyer
I suspect you're calling addClickHandler each time you switch tab. Just try to do it once only. On Friday, March 7, 2014 9:11:40 AM UTC+1, Davide Micheletti wrote: its a long code, however in summary: in tab1 i've a table (table1) with a clickHandler that depends from another table (table2)

Re: clickHandler goes in loop

2014-03-07 Thread Davide Micheletti
i don't understand your answer.. how can i call an addClick handler of a table in 2 different tab? On Fri, Mar 7, 2014 at 11:01 AM, Thomas Broyer t.bro...@gmail.com wrote: I suspect you're calling addClickHandler each time you switch tab. Just try to do it once only. On Friday, March 7,

Re: clickHandler goes in loop

2014-03-07 Thread Thomas Broyer
I honestly have no idea, given the code snippets you showed. But put a breakpoint on your addClickHandler and see when it's being called, and where it's called from (look at the call stack in your IDE) On Friday, March 7, 2014 11:06:03 AM UTC+1, Davide Micheletti wrote: i don't understand

Re: clickHandler goes in loop

2014-03-07 Thread Davide Micheletti
i did it.. it is called by himself.. i follow all the process step by step and at the end of the clickHandler it goes in dispatchEvent(event, handler) of SimpleEventBuss.class and it returns to the onClick of my project.. What can i do? On Fri, Mar 7, 2014 at 11:14 AM, Thomas Broyer

Re: clickHandler goes in loop

2014-03-07 Thread Thomas Broyer
On Friday, March 7, 2014 12:00:22 PM UTC+1, Davide Micheletti wrote: i did it.. it is called by himself.. Sure, but when? and how many times? i follow all the process step by step and at the end of the clickHandler it goes in dispatchEvent(event, handler) of SimpleEventBuss.class and

com.google.gwt.user.client.Cookies.setCookie(.....) API is not able to create Cookie with Domain Name

2014-03-07 Thread ram . pamudurthi
Hi, I am using Gwt-2.5.1, I am setting sessionId to cookies using com.google.gwt.user.client.Cookies.setCookie(.) API. For this I used following code. String baseDomain = com.google.gwt.user.client.Window.Location .getHostName(); Date cookieDate = new Date();

Re: clickHandler goes in loop

2014-03-07 Thread Davide Micheletti
i'm sure, i run it step by step and at the end of onClick it runs SimpleEventBuss's function and return to onclick.. the time depend to how many time i switched tab.. 1 switch 1 repeat -- onload tab1 switch tab2 return to tab1 2 switch 2 repeat -- onload tab1 switch tab2 return to tab1

Re: clickHandler goes in loop

2014-03-07 Thread Thomas Broyer
That wasn't my question. How many times is addClickHandler called? (not the ClickHandler's onClick, the addClickHandler itself) And where is it called from? (not the exact call site obviously; but in response to which kind of events?) If addClickHandler is called at the time you switch from

Re: clickHandler goes in loop

2014-03-07 Thread Davide Micheletti
If addClickHandler is called at the time you switch from tab to tab, then you just found the culprit: refactor your code to make it so that it's only called once. ok with this i find my error.. when i refresh the tab (with build_tab()) i re-write the clickHandler.. however i need to clean the

Re: clickHandler goes in loop

2014-03-07 Thread Alberto Mancini
Hi, code tab1 is executed in build_tab1(); ? in that case if variable table1 is not local you are adding a new clickhandler at each call of code when i switch tab my 2c. Alberto. On Fri, Mar 7, 2014 at 9:11 AM, Davide Micheletti d.michelett...@gmail.comwrote: its a long code, however

Re: layout panel problem, invisible panels

2014-03-07 Thread Segun Razaq Sobulo
Had a similar issue and ran into this thread. ContentWidgetView of GWT showcase actually does something similar however instead of extending HeaderPanel it simply wraps the content portion of the header panel in a simplelayoutpanel then makes a similar setsize(100%,100%) call in the

Re: clickHandler goes in loop

2014-03-07 Thread Davide Micheletti
yes i've solved.. thanks.. On Fri, Mar 7, 2014 at 12:47 PM, Alberto Mancini ab.manc...@gmail.comwrote: Hi, code tab1 is executed in build_tab1(); ? in that case if variable table1 is not local you are adding a new clickhandler at each call of code when i switch tab my 2c. Alberto.

Re: in GWT, can we manage Messages Constants (i18n) at Server as we manage at Client?

2014-03-07 Thread Tom
Hi Thomas, I am confused, why we need to recompile the whole project when we just change a simple text in properties file? For example, suppose we have this line in properties file. userViewOrder=User''{0}'' pls views order Then I just change it to userViewOrder=Customer''{0}'' pls views

Re: in GWT, can we manage Messages Constants (i18n) at Server as we manage at Client?

2014-03-07 Thread Tom
Hello Thomas, I just test in eclipse. I start my webapp just let the server run. When clicking the button 1st time it used this text User455 pls views order. Npow I just let the server run without stopping it then I changed User to Customer then I click the button again. This time, it

Re: in GWT, can we manage Messages Constants (i18n) at Server as we manage at Client?

2014-03-07 Thread Tom
Hello Thomas, I have just tested in eclipse. I started my webapp just let the server run. When I clicked the button 1st time it used this text User 455 pls views order. Now I just let the server to continue to run without stopping it. Then, I changed User to Customer then I clicked the

Re: in GWT, can we manage Messages Constants (i18n) at Server as we manage at Client?

2014-03-07 Thread Andy Stevko
Tom, Are you using dev mode in eclipse? If so, it does the recompiling for you on the fly. To show what your web app looks like without on the fly compiling, do a full compile using the menu item GWT Compile Project... and then stripping the ?gwt.codesvr= from the url. On Fri, Mar 7, 2014 at

Re: in GWT, can we manage Messages Constants (i18n) at Server as we manage at Client?

2014-03-07 Thread Thomas Broyer
On Friday, March 7, 2014 2:07:11 PM UTC+1, Tom wrote: Hi Thomas, I am confused, why we need to recompile the whole project when we just change a simple text in properties file? That's the difference between static and dynamic internationalization:

Master-details panel

2014-03-07 Thread Amir kessentini
Hi again ;) I'm trying to create a Master-Details panel associeted to an entity but i'm really confused and i don't khnow how to start. i search on the internet but i didn't find something interested. could any one help me ? thanks -- You received this message because you are subscribed to the

Re: in GWT, can we manage Messages Constants (i18n) at Server as we manage at Client?

2014-03-07 Thread Andrea Boscolo
On Friday, March 7, 2014 10:30:50 AM UTC+1, Thomas Broyer wrote: There are also a few projects that directly try to use your GWT interfaces on server-side; and it's also a planned feature of GWT proper (no ETA yet). Just curious, but what about https://gwt-review.googlesource.com/#/c/1550/

How to Correctly use com.mattbertolini.hermes.Hermes to manage Constants at Server side (GWT)?

2014-03-07 Thread Tom
Ok, I want to manage Constants at Server level, so com.mattbertolini.hermes.Hermes is a solution. Please see all my steps: 1- I downloaded hermes-1.2.0.jar import into correct Library of eclipse (no problem) 2- Create MyConstantsWithLookup.java at client package import

Re: How to set size for TextInputCell ?

2014-03-07 Thread Rogelio Flores
It has actually been answered elsewhere before it was even asked here: http://stackoverflow.com/questions/5182245/setting-the-width-of-a-column-without-clipping-textinputcell-in-gwt-2-2-celltabl On Monday, March 3, 2014 11:22:32 AM UTC-5, Sean wrote: Glad this hasn't been answered in ~3yrs

Re: How to Correctly use com.mattbertolini.hermes.Hermes to manage Constants at Server side (GWT)?

2014-03-07 Thread Thomas Broyer
On Friday, March 7, 2014 5:48:41 PM UTC+1, Tom wrote: Ok, I want to manage Constants at Server level, so com.mattbertolini.hermes.Hermes is a solution. Please see all my steps: 1- I downloaded hermes-1.2.0.jar import into correct Library of eclipse (no problem) 2- Create

Re: in GWT, can we manage Messages Constants (i18n) at Server as we manage at Client?

2014-03-07 Thread Thomas Broyer
On Friday, March 7, 2014 5:03:28 PM UTC+1, Andrea Boscolo wrote: On Friday, March 7, 2014 10:30:50 AM UTC+1, Thomas Broyer wrote: There are also a few projects that directly try to use your GWT interfaces on server-side; and it's also a planned feature of GWT proper (no ETA yet).

Re: in GWT, can we manage Messages Constants (i18n) at Server as we manage at Client?

2014-03-07 Thread Andrea Boscolo
Ok, got it. Thank you for the explanation. On Friday, March 7, 2014 6:13:19 PM UTC+1, Thomas Broyer wrote: It is one step towards I18N on the server. GWT.create() on the server was one such other steps. The last one being generating Messages, Constants, etc. implementations for use on the

Re: Master-details panel

2014-03-07 Thread Amir kessentini
any one could help me ? just tell me from where i start and what is the component ? -- 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

Re: Problems using native JavaScript library (Snap)

2014-03-07 Thread Jens
The following approaches work: public class SnapSvgWidget extends Widget { public SnapSvgWidget() { setElement(Document.get().createDivElement()); drawExample(getElement()); } private native void drawExample(Element container) /*-{ var paper = $wnd.Snap(400,400)

Re: Master-details panel

2014-03-07 Thread Amir kessentini
No one wanna help me ?? thanks people :( -- 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

Re: How to Correctly use com.mattbertolini.hermes.Hermes to manage Constants at Server side (GWT)?

2014-03-07 Thread Tom
Thank you very much Thomas, I did there is no warning at all. On Saturday, March 8, 2014 4:05:24 AM UTC+11, Thomas Broyer wrote: On Friday, March 7, 2014 5:48:41 PM UTC+1, Tom wrote: Ok, I want to manage Constants at Server level, so com.mattbertolini.hermes.Hermes is a solution.

Re: GWT 2.6.0 now available

2014-03-07 Thread Rob Hennessy
Hi All, It's been a while since I've tried any versions since 2.3.0. I picked up 2.6.0 and I can not access the generated JS from IE8, IE9, or Chrome. I am using the entry point class to add a reference to a couple of converted functions. Safari and FireFox work. Is there any workaround? I

Why changing text in properties file (using ConstantsWithLookup) doesn't make any change in the constants in Production Mode?

2014-03-07 Thread Tom
Here is my problem. I want to change the Constants dynamically for my web app when it's already in the Production Mode. So here is what I did import com.google.gwt.i18n.client.ConstantsWithLookup; public interface MyConstants extends ConstantsWithLookup{ String email(); } In the

code generation?

2014-03-07 Thread Richard
Do you have any cool techniques or tools to share that help generate code for GWT? I'm about to add a class to a project. Due to the set of GWT features I'm using, I'll likely add a corresponding DAO, a Locator, a RequestContext, a Proxy, likely two or three of: Place, Activity, Presenter,