Re: [POLL] Maven project layout, what to standardize?

2013-02-17 Thread Thomas Broyer
On Sun, Feb 17, 2013 at 7:46 AM, Rich rich.bur...@gmail.com wrote: Thomas, How does the plugin support supersource today. I've tried to piece this together from multiple searches and have something close to your option 3, but it's not clear. 1). How is the plugin configured to use

Re: In MVP should/could the view depends on the presenter to be initialised?

2013-02-17 Thread Thomas Broyer
On Saturday, February 16, 2013 3:39:15 AM UTC+1, MAQ wrote: Hi, In my view there's a ListBox that its content should depend on the user's locale. I'm confused on whether the deferred binding (to create the list's internationalised content) should be in the presenter or in the view. I

Re: Which panel can take a DoubleClickHandler?

2013-02-17 Thread Thomas Broyer
On Saturday, February 16, 2013 7:22:05 PM UTC+1, membersound wrote: Hi, is there any panel that has a addDoubleClickHandler() Method? I want to use similar to the following, but apply it to a panel instead of a lable: @UiField Label label; @UiHandler(label)

Re: How to disable paging for a CellTable?

2013-02-17 Thread Thomas Broyer
On Saturday, February 16, 2013 7:32:25 PM UTC+1, membersound wrote: Hi, how can I disable paging for a CellTable? I want to show all data in that table without limiting the size, to always show new entries at the bottom no matter how many are created. Would I have to initial create a new

Re: How to disable paging for a CellTable?

2013-02-17 Thread Kody
Ok so this would mean I have to call the SetPageSize everytime I add a new entry. Hm that's not really ideal, can't I have auto-growing table? 2013/2/17 Thomas Broyer t.bro...@gmail.com On Saturday, February 16, 2013 7:32:25 PM UTC+1, membersound wrote: Hi, how can I disable paging for a

Re: How to disable paging for a CellTable?

2013-02-17 Thread Thomas Broyer
On Sunday, February 17, 2013 1:08:31 PM UTC+1, membersound wrote: Ok so this would mean I have to call the SetPageSize everytime I add a new entry. Hm that's not really ideal, can't I have auto-growing table? Yes: use Integer.MAX_VALUE (or 1000, as you suggested) as the page size (either

Re: RequestFactory Eagerly Fetches the collections in my entity meant to loaded Lazy

2013-02-17 Thread Aryan
Thanks Thomas, You always been a great help... :) On Saturday, 16 February 2013 03:47:37 UTC+5:30, Thomas Broyer wrote: Because a ValueProxy has no identity (and therefore cannot be retrieved again later), .with() doesn't apply to it; it only applies to EntityProxy. On Friday, February

RequestFactory Sending EntityProxy with Associated Entites Fields as null

2013-02-17 Thread Aryan
Hi all, At first is it a necessity to use 'InstanceRequest' for persisting Entites? Anyway what I am doing is _ client creating a proxy - calling edit() [request.edit(proxy)] - set the data to proxy e.g. proxy.setName(name') ... ...//Also some where setting the

Re: Integrating compiled modules GWT at runtime

2013-02-17 Thread vanessa vanessa
Hi Jeffrey, Thanks for your answer, i don't know this library it sounds great .But if i understand the aim right i think it deals with calling form javascript the code generated by the gwt compiler. And what i need is a library that injects a compiled gwt module in a deployed application at

Re: RequestFactory Sending EntityProxy with Associated Entites Fields as null

2013-02-17 Thread Aryan
Hi, It's seems if I use the same RequestContext reference to create Proxy it doesn't give a problem... But what if I am getting a proxy from somewher else already populated with values ... is there a way to use that proxy or I just have to do all the setters and getters to create new

Re: How Java Threads are mapped into Javascript?

2013-02-17 Thread Jeffrey Elrod
Can you explain the or elsewhere part? On Feb 16, 2013 1:52 PM, Alain Ekambi jazzmatad...@gmail.com wrote: They are mot mapped at all. JS is single threaded. 2013/2/16 Faissal Graviton amr.fais...@gmail.com Hello, I'd like to use some Java Threads to pull some Resources and I'm

Re: Integrating compiled modules GWT at runtime

2013-02-17 Thread Jeffrey Chimene
On 2/17/2013 6:37 AM, vanessa vanessa wrote: Hi Jeffrey, Thanks for your answer, i don't know this library it sounds great .But if i understand the aim right i think it deals with calling form javascript the code generated by the gwt compiler. And what i need is a library that injects a

Is gwt-servlet-deps.jar required for deployment?

2013-02-17 Thread Thad
I know to include gwt-servlet.jar in my WAR's WEB-INF/lib, but do I also need gwt-servlet-deps.jar in my deployed WAR? Is gwt-servlet.jar the *only* GWT jar I should require for deployment? If not, what else? If I must include gwt-serlvet-deps.jar, I'm *guessing* I should *not* include

Re: How Java Threads are mapped into Javascript?

2013-02-17 Thread Kody
I meant that you of course could also fetch data not only from your own server. Eg you can use a public wheater webservice to periodically fetch the data with a timer. Of course this is not restricted to your own server. 2013/2/17 Jeffrey Elrod jfelrod1...@gmail.com Can you explain the or

Re: RequestFactory Sending EntityProxy with Associated Entites Fields as null

2013-02-17 Thread Aryan
Pheww, Caught the culprit... The Locators. --- @Override *public* MyDto find(Class? *extends* MyDto clazz,*final* Integer id) { *return *new MyDAO.findById(id);//Earilier -

Re: DataGrid - How to scroll latest added item into view?

2013-02-17 Thread Tomek Kańka
W dniu sobota, 16 lutego 2013 23:26:19 UTC+1 użytkownik membersound napisał: Hi, I add a new entry to a DataTable and want to scroll it into the view, as it is added at the end of the list. @UiHandler(buttonAdd) { onAdd(ClickEvent evt) { Foo foo = new Foo();

Re: ANN: GWT and OAuth Login demo with facebook, google etc.

2013-02-17 Thread Tomek Kańka
W dniu sobota, 16 lutego 2013 19:34:19 UTC+1 użytkownik muquit napisał: I needed to add OAuth login to a GWT app of mine but could not find anything nice. So I wrote an application to explore the idea. I am releasing the code with the hope that you will find it useful. The URL is:

Re: [POLL] Maven project layout, what to standardize?

2013-02-17 Thread Thomas Broyer
On Sunday, February 17, 2013 6:37:38 PM UTC+1, Rich wrote: Thomas, Thanks very much for the response. First, is there any way you can share a POM from one of your projects -- or ideally point me at an entire open source project that uses it? Hmm, there's

Re: DataGrid - How to scroll latest added item into view?

2013-02-17 Thread Jens
My guess. After dataProvider.getList().add(foo) is executed, DataDrid is updated asynchronously, and you try to dataGrid.getRowElement(...) before this update happens. Right. ListDataProvider uses Scheduler.get().scheduleFinally() to update the DataGrid. That is done for performance

Core Script Injector (faster than its shadow?)

2013-02-17 Thread Nuno Godinho de Matos
Hi, In an application that uses Highchats and Bootstrap, the com.google.gwt.core.client.ScriptInjector does not seem to be working correctly for me. Basically, during the onLoad() of my entrypoint, if I try to inject js Highcharts.js dependency using the core gwt injector, I end up not

Re: DataGrid - How to scroll latest added item into view?

2013-02-17 Thread Kody
Thanks, that works! 2013/2/17 Jens jens.nehlme...@gmail.com My guess. After dataProvider.getList().add(**foo) is executed, DataDrid is updated asynchronously, and you try to dataGrid.getRowElement(...) before this update happens. Right. ListDataProvider uses

CellTable - How to disable sorting only for the footer?

2013-02-17 Thread membersound
Hi, I have a CellTable with sortable columns. I want to use the footer to display some controls for the table. Therefore I provide the controls when I add the Columns to the CellTable. BUT if I click the footer elements, they not only execute my action, but also the sort event. How can I

Re: In MVP should/could the view depends on the presenter to be initialised?

2013-02-17 Thread Mohammad Al Quraian
Thanks Pedro for the help, I think I should look into DI and see it fits my design well. On Sat, Feb 16, 2013 at 10:09 AM, Pedro Lamarão pedro.lama...@gmail.comwrote: Em sábado, 16 de fevereiro de 2013 00h39min15s UTC-2, MAQ escreveu: Hi, In my view there's a ListBox that its content

Re: In MVP should/could the view depends on the presenter to be initialised?

2013-02-17 Thread MAQ
Thanks Thomas for your help and your work on GWT, I really think that GWT wouldn't be as great as it is now without you. It's probably better to make the that into the view instead of the presenter. I was overcomplicating things. Cheers On Sunday, February 17, 2013 12:53:34 PM UTC+3, Thomas

Error this.appendChild is not a function?

2013-02-17 Thread Ed
When I override the method SimplePanel.clear() to remove all elements of the contained element in SimplePanel, and then add a widget throug setWidget() I receive the error (see the complete error below: --- this.appendChild is not a function? I remove all element after SimplePanel performs

Re: Error this.appendChild is not a function?

2013-02-17 Thread Sebastián Gurin
hope the following two tips are of help: 1 ) that sounds like a null pointer exception (natively). you are trying to invoke a native field of a null value 2 ) removing all childrens iterating through them can be very tricky. See a correct way of doing it manually :

Re: Error this.appendChild is not a function?

2013-02-17 Thread Ed
Thanks for the tips. I just changed my code to: while (element.getLastChild() != null element.getLastChild() instanceof Element) { element.removeChild(element.getLastChild()); } But got the same error. What do you mean by 1)? I don't see any null fields being used when I debug in

Re: ANN: GWT and OAuth Login demo with facebook, google etc.

2013-02-17 Thread muquit
Yes gwt-oauth2 is a client side sdk. I played with it, I noticed for no reason the popup window will not close at times in FF, it remains blank (not all the time, which was frustrating). Anyway, there are reasons to prefer server side flow of OAuth. I mentioned a few in the web page. Thanks.

RPC call in Activity onStop()

2013-02-17 Thread yves
Hi, After a search on the net I didn't find an answer to this problem : I need to make an RPC call from the onStop() function in order to inform the server that the application is closing. Apprently this doesn't work : the server never gets RPC-called from onStop(). (I checked that onStop is

Re: RPC call with android

2013-02-17 Thread Chii
I m expecting that both RequestFactory and gwt-rpc has less overhead than vanilla json (at least, in terms of bandwidth - not sure about cpu requirement differences between them), but if it turns out that neither works on android, then it would suck to have to switch to json. On Friday,