Friday, March 1, 2013

Re: Advanced RequestTransport implementations. Any available to use?



On Friday, March 1, 2013 3:41:54 PM UTC+1, salk31 wrote:
We have been using the DefaultRequestTransport implementation but now we want features like:
* Retry after seeming network or server error (exponential back off )
* Different queues with throttling, priority etc

I wonder how that could work: how would you select a particular queue?
 
* Detect auth failure, prompt for re-auth, retry

 
* Expose state of the request transport, requests pending etc to drive progress indicators...

This all seems like quite standard stuff? GMail does most or not all of this.

Anyone know of some existing code we could use?

GMail uses Closure Library's BrowserChannel which handles network errors with retries. For the authentication part, I have no idea though. They don't seem to use different queues. 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: Is it possible to make css attributes dynamic in java backing class?

But you only can change the value before cssResource.ensureInjected()... Maybe if you force cssResource "re-injection" (if this is possible) you can use this dynamically generated css resource, but in any case I think that use a CSS class to dinamically control the with of a element its a bad idea.

On Fri, Mar 1, 2013 at 2:23 PM, Pablo Nussembaum <baunax@gmail.com> wrote:
Hi,
If you use a cssResource you can use runtime substitution: https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle?hl=es-#Runtime_substitution

On 03/01/2013 10:18 AM, membersound wrote:
Hi,

how can a css attribute made dynamically read from the java backend class?

<ui:style>
 .size {
    width: 100px; //can I get the 100 from java backing and change it dynamically?
 }
<ui:style>

I know I can set the styles programatically from java code and might thereby change the width. But are things like this also possible?
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Advanced RequestTransport implementations. Any available to use?

We have been using the DefaultRequestTransport implementation but now we want features like:
* Retry after seeming network or server error (exponential back off )
* Different queues with throttling, priority etc
* Detect auth failure, prompt for re-auth, retry
* Expose state of the request transport, requests pending etc to drive progress indicators...

This all seems like quite standard stuff? GMail does most or not all of this.

Anyone know of some existing code we could use?

Cheers

Sam

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: Is it possible to make css attributes dynamic in java backing class?

Hi,
If you use a cssResource you can use runtime substitution: https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle?hl=es-#Runtime_substitution

On 03/01/2013 10:18 AM, membersound wrote:
Hi,

how can a css attribute made dynamically read from the java backend class?

<ui:style>
 .size {
    width: 100px; //can I get the 100 from java backing and change it dynamically?
 }
<ui:style>

I know I can set the styles programatically from java code and might thereby change the width. But are things like this also possible?
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Is it possible to make css attributes dynamic in java backing class?

Hi,

how can a css attribute made dynamically read from the java backend class?

<ui:style>
 .size {
    width: 100px; //can I get the 100 from java backing and change it dynamically?
 }
<ui:style>

I know I can set the styles programatically from java code and might thereby change the width. But are things like this also possible?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: How to show a widget upon a canvas?

Thanks, I just had the time to try your suggestion now, and it really works as expected.
Just placed the canvas inside g:AbsolutePanel and now I can call add(widget, int, int) and remove() wherever I want.


2013/2/9 Jens <jens.nehlmeier@gmail.com>

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 start at 0,0 and have a width/height of 100% while the TextBox can have any other position/dimension.

If you don't want to use AbsolutePanel you could also just add some custom CSS to your TextBox and position it that way. Just make sure that when you use the CSS rule "position:absolute;" on the TextBox, the parent panel should have "position:relative;" set. Otherwise top/left coordinates for the TextBox are not relative to the bounds of the parent panel.

-- J.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: GWT dev mode and GIN and dependency injection in general

You know you re both right. Funny thing is I had GIN 2.0 in my project a long time but since I had not realised that gin was improved God knows how many times I needlessly rebuilt my project. *facepalm*

On Thursday, February 28, 2013 11:43:57 PM UTC+1, Thomas Broyer wrote:


On Thursday, February 28, 2013 11:21:48 PM UTC+1, alucard wrote:


On Thursday, February 28, 2013 6:43:11 PM UTC+1, Marc wrote:
Hello!

I just experimented somewhat with Gin and realized that it (v2.0) seems to break the incremental compilation feature of GWT's development mode, ie. where I just have to save the .java source file and the gwt dev mode server automatically incorporates the changes.

Can someone confirm this or is it my own fault?
 
I believe you're right. If you "mess" with DI stuff (for example add a new parameter to a constructor annotated with @Inject) the code will break when you reload. You have to rebuild the project at that point. I believe this is due to gin using generators which are not triggered on reload.  

While this was true in previous versions, I believe it no longer is starting with GIN 2.0.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.