Re: GWT 2.8 delays

2016-06-06 Thread 'steve Zara' via GWT Users
That is a great conversation which really gives me confidence in the future of GWT. Thanks for posting. On Thursday, 2 June 2016 09:51:53 UTC+1, mark kevin ringor wrote: > > https://www.youtube.com/watch?v=CElykwDVrBc > Here is a video about GWT 2.8 > > On Sunday, May 8, 2016 at 11:26:22 PM UTC+

Re: JsInterop and Java collections?

2016-06-06 Thread Hristo Stoyanov
Thanks Thomas, Yes, your are very close to what I am thinking! Note, that if such mapping cannot be "special-cased" with some jsinterop cleverness, it could be refined by an additional @JsX annotation (or two). ... Other than that, releasing Elemental 2.0 is becoming an urgent matter, IMHO. I

Re: JsInterop and Java collections?

2016-06-06 Thread Thomas Broyer
On Monday, June 6, 2016 at 9:15:43 PM UTC+2, Hristo Stoyanov wrote: > > Kirrill, > I did not suggest to *convert*, but *map*. That means that if/when a > JSInter-oped class is exported into the JS Engine (let's say V8) , the JS > developer will see plain old js arrays, so s/he can work with the

Re: Can meta tag with gwt:property replace url query parameter?

2016-06-06 Thread Jens
You would need to replace the property provider of MGWT because it only looks at query parameter and user agent: https://github.com/mgwt/mgwt/blob/master/src/main/java/com/googlecode/mgwt/dom/DOM.gwt.xml#L25 To read a meta property you would use var formfactorFromMeta = __gwt_getMetaProperty("

Can meta tag with gwt:property replace url query parameter?

2016-06-06 Thread Rogelio Flores
I posted this question in the mgwt forum but it doesn't seem that is getting much traffic lately... By using ?mgwt.formfactor=phone in the url of my app, I can force the phone form factor even if the app is not in a phone form factor (e.g. desktop). I want to do the same without having to provi

Re: JsInterop and Java collections?

2016-06-06 Thread Hristo Stoyanov
Kirrill, I did not suggest to *convert*, but *map*. That means that if/when a JSInter-oped class is exported into the JS Engine (let's say V8) , the JS developer will see plain old js arrays, so s/he can work with them as they have been for ages. When Java/JsInterop developers work with the same

Re: JsInterop and Java collections?

2016-06-06 Thread Kirill Prazdnikov
> > Let me try to explain the issue better: > > All we need is the JsInterop to map an List (or Java array) from the Java > world into plain array in the JavaScript world. *Transparently**.* > I do not agree. About transparency. Conversion form Java List (see Linked list)to plain Js array is

Re: How to make my app more secure. URL token

2016-06-06 Thread Olar Andrei
Velusamy Velu: I'm alredy know that link. I implemented my password reset based on your workflow. But there again is the same Problem (for me actually, perhaps due to my implementation). If a letter is removed from the hashed token standing in the URL, and then just hit ENTER, the exact page r

Re: How to make my app more secure. URL token

2016-06-06 Thread Velusamy Velu
Olar: I'm currently implementing the same. Here's a workflow that might help you - http://map-notes.blogspot.com/2013/01/a-good-old-reset-password-workflow.html. Good luck Sam V On Monday, June 6, 2016 at 9:29:19 AM UTC-4, Olar Andrei wrote: > > Well, the login is done as down below > > final S

Re: How to make my app more secure. URL token

2016-06-06 Thread Thomas Broyer
Some form of credentials (login/password, or more likely a "token" or "session ID") must be sent with *each and every* request to the server, and the server must check authorizations and/or "profile" (filter, etc.) the response depending on the user who made the request. How you do it exactly is

Re: How to make my app more secure. URL token

2016-06-06 Thread Olar Andrei
Well, the login is done as down below final String username = usernameBox.getText(); final String password = passwordBox.getText(); GWT.runAsync(new RunAsyncCallback() { @Override public void onSuccess() { performUserConnection(username, password); } @Override public void onFailure(Throwable rea

Re: How to make my app more secure. URL token

2016-06-06 Thread Ümit Seren
That's the reason why you need to check credentials/security at your backend (which is serving the data to your GWT client). You must not rely on the client because you can't control what the client does. How is the login done ? Do do you post the login form to the backend and generate a sessi

How to make my app more secure. URL token

2016-06-06 Thread Olar Andrei
Hello, For now my aplication (MVP) has a login page, and 2 other palces, the AdminPlace and the UserPlace. My URL looks like this: http://127.0.0.1:/AdministrareBloc.html#AdminPlace:Admin The login form consists of username and password, where the username is passed as a token to the next

Re: Unable to make loading screen appear

2016-06-06 Thread Jens
Most likely your app is on top of the loading div and thats why you don't see the div. You either have to hide the app while showing the loading div or apply some CSS z-index to your div so it appears on top. These kind of issues can easily be understood by using the browsers Dev Tools and insp

Unable to make loading screen appear

2016-06-06 Thread Olar Andrei
Hello I have created in my HTML a div holding an image like this: ... Loading... ... It has display: block by default, so until my aplication is loaded it stays there. In my onModuleLoad(), after loading is finished, I hide it like this DOM.getElementById("loading").getStyle().setDisplay(