Re: GWT Confluence Plugin

2010-08-05 Thread mk
There was one a nice article about this topic from the creators of the
Confluence Taskdock Plugin (that is built using GWT)
http://open.taskdock.com/display/confluence/Developing+a+GWT+Application+for+Confluence
but the link is dead now.

David Peterson from Customware has released a support library (GWT
1.4) perhaps this is a help for you:
https://svn.atlassian.com/fisheye/browse/public/contrib/confluence/libraries/org.randombits.confluence/confluence-gwt/trunk

On Jun 28, 9:27 pm, krude kirstr...@gmail.com wrote:
 Has anyone deployed a GWT app as an Atlassian plugin for Confluence
 and have an example of it? I have had a hard time finding anything but
 I believe it is possible.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Sync AJAX ( instead of async)

2010-07-21 Thread mk
I understand that asynchronous is the way to go and sometimes we
change UI design just to support async. But atleast in our project,
there are functional requirements where sync is the only solution.
(BTW: sync is not as bad. I understand that javascript in browser is
single threaded but it's used by a single user to do a single task.
And if sync response is required to meet functional need than we got
to do sync. It does not effect scalability of whole app )

Anyway any body used any hack to support sync.
(Is JSNI the only way to go?)



On Jul 21, 9:10 am, Nathan Wells nwwe...@gmail.com wrote:
 There is only one case I know of where synchronous should be used:
 when you want to do a server call and get a response when the user is
 leaving the page. If you don't use synchronous here, you will fail to
 get the response from whatever asynchronous call you made when the
 page exits.

 On Jul 21, 8:14 am, Dimitrijeviæ Ivan dim...@gmail.com wrote:



  It is strongly recommended to avoid using AJAX on synchronous way!
  Remember that A in AJAX is for Asynchronous. So you should consider
  and use this as a feature not as a problem.

  Using AJAX on Synchronous way is a very common anti pattern in AJAX
  programming.

  On Jul 20, 9:09 pm, Prakash prakash.masilam...@gmail.com wrote:

   Its not possible with GWT.

   refer below 
   link.http://code.google.com/webtoolkit/doc/latest/FAQ_Server.html

   Regards,
   Prakash M.

   On Jul 20, 10:06 am, mk munna.kaka.ch...@gmail.com wrote:

How to make an GWT AJAX call Sync (instead of async)

billion years back we used to use a flag as below. how to do it from
GWT.

AJAX.open(GET, url, false);

It's just that for a particular requirement we have to have call sync- 
Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Sync AJAX ( instead of async)

2010-07-21 Thread mk
Thanks cokol for A+ responses.



On Jul 21, 10:10 am, cokol eplisc...@googlemail.com wrote:
 I see, i think google just did not want to make a tool which can be
 abused resulting in frustrated users :)

 but anyway, you can endeed get it simpler than just hacking JSNI from
 scratch - extend the XMLHttpRequest class and add a new method open()
 which flags the underlying connection as async (by simply provide
 'false' instead of 'true'). Unfortunately you cannot override any
 methods since they are final :D but you can look into the source and
 grab the line from method body (actually just 2 lines)

 br

 On 21 Jul., 18:00, mk munna.kaka.ch...@gmail.com wrote:



  I understand that asynchronous is the way to go and sometimes we
  change UI design just to support async. But atleast in our project,
  there are functional requirements where sync is the only solution.
  (BTW: sync is not as bad. I understand that javascript in browser is
  single threaded but it's used by a single user to do a single task.
  And if sync response is required to meet functional need than we got
  to do sync. It does not effect scalability of whole app )

  Anyway any body used any hack to support sync.
  (Is JSNI the only way to go?)

  On Jul 21, 9:10 am, Nathan Wells nwwe...@gmail.com wrote:

   There is only one case I know of where synchronous should be used:
   when you want to do a server call and get a response when the user is
   leaving the page. If you don't use synchronous here, you will fail to
   get the response from whatever asynchronous call you made when the
   page exits.

   On Jul 21, 8:14 am, Dimitrijeviæ Ivan dim...@gmail.com wrote:

It is strongly recommended to avoid using AJAX on synchronous way!
Remember that A in AJAX is for Asynchronous. So you should consider
and use this as a feature not as a problem.

Using AJAX on Synchronous way is a very common anti pattern in AJAX
programming.

On Jul 20, 9:09 pm, Prakash prakash.masilam...@gmail.com wrote:

 Its not possible with GWT.

 refer below 
 link.http://code.google.com/webtoolkit/doc/latest/FAQ_Server.html

 Regards,
 Prakash M.

 On Jul 20, 10:06 am, mk munna.kaka.ch...@gmail.com wrote:

  How to make an GWT AJAX call Sync (instead of async)

  billion years back we used to use a flag as below. how to do it from
  GWT.

  AJAX.open(GET, url, false);

  It's just that for a particular requirement we have to have call 
  sync- Hide quoted text -

   - Show quoted text -- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: AJAX of type GET ( and not POST)?

2010-07-21 Thread mk
Thanks cokol and Stefan

I expect cache from GET

On Jul 21, 8:07 am, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi,

 what do you expect from using GET instead of POST?

 Basically POST could definitely transfer many bytes, GET may have a
 limit. (In the past they talked about 2K limit for an url, which may
 no more apply)
 It is more effort necessary to do a CSRF/XSRF with POST, so I consider
 POST somewhat more secure.
 (However, I consider most recent GWT-RPC to be save against CSRF/XSRF)

 Stefan Bachert
 http::/gwtworld.de

 due to recent cases, I am sorry, I won't do free personal support.
 inquiries for professional GWT support are welcome.

 On 20 Jul., 18:51, mk munna.kaka.ch...@gmail.com wrote:



  Is there a way to make AJAX async call of type GET ( instead of POST).

  (RequestBuilder is ok but still is there a easier way)- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Cache static data?

2010-07-20 Thread mk
Thanks. However, I am looking for non-HTML5 solution.
Is there a better solution to cache than recompiling whole app?

Static data may be weekly tips, monthly discounts etc which are
applicable for all users. (This is kind of data which changes
infrequently)




On Jul 20, 8:17 am, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi,

 Html5 supports caching and databases.
 However, only modern browsers support Html5

 When this data changes for all users, consider to recompile your app
 bi-weekly with new datas.

 Stefan Bachert
 http::/gwtworld.de

 due to recent cases, I am sorry, I won't do free personal support.
 inquiries for professional GWT support are welcome.

 On 20 Jul., 04:52, mk munna.kaka.ch...@gmail.com wrote:



  How to cache data in browser.

  I want to cache data which changes infrequently (thus static common
  data changing bi-weekly and NOT html, js, css etc).- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Cache static data?

2010-07-20 Thread mk
hmm... we do have HTTP servers which set headers to cache forever.
Do anybody uses solution to cache static data (like GWT uses for js
files which cache forever and file name is equal to hashmap to prevent
304 calls).
Again a solution wherein there is network call to load static data
only when it's modifed at server.


On Jul 20, 9:55 am, Arthur Kalmenson arthur.k...@gmail.com wrote:
 GWT is not responsible for setting cache headers, you have to set them
 through your HTTP server.

 --
 Arthur Kalmenson



 On Tue, Jul 20, 2010 at 11:46 AM, mk munna.kaka.ch...@gmail.com wrote:
  Thanks. However, I am looking for non-HTML5 solution.
  Is there a better solution to cache than recompiling whole app?

  Static data may be weekly tips, monthly discounts etc which are
  applicable for all users. (This is kind of data which changes
  infrequently)

  On Jul 20, 8:17 am, Stefan Bachert stefanbach...@yahoo.de wrote:
  Hi,

  Html5 supports caching and databases.
  However, only modern browsers support Html5

  When this data changes for all users, consider to recompile your app
  bi-weekly with new datas.

  Stefan Bachert
  http::/gwtworld.de

  due to recent cases, I am sorry, I won't do free personal support.
  inquiries for professional GWT support are welcome.

  On 20 Jul., 04:52, mk munna.kaka.ch...@gmail.com wrote:

   How to cache data in browser.

   I want to cache data which changes infrequently (thus static common
   data changing bi-weekly and NOT html, js, css etc).- Hide quoted text -

  - Show quoted text -

  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted 
  text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Share user input data from + MVP + Lady_Gaga

2010-07-19 Thread mk
Following is one of MVP sequence for TWO widgets

1) 1st VIEW has a simple textbox and submit button, wherein use enters
her name Lady_Gaga and click submit.
2) 1st PRESENTER fires an event on submit_button_click.
3) 2nd PRESENTER catches that event and displays 2nd VIEW as dialog
box with user entered name Lady_Gaga


Question) How user entered name Lady_Gaga be passed from 1st VIEW to
2nd VIEW ?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Share user input data within MVP + Lady_Gaga

2010-07-19 Thread mk
How to share user input data within MVP.

Following is one of MVP sequence for TWO widgets

1) 1st VIEW has a simple textbox and submit button, wherein use
enters
her name Lady_Gaga and click submit.
2) 1st PRESENTER fires an event ( cuz of button click).
3) 2nd PRESENTER catches that event and displays 2nd VIEW as dialog
box with user entered name Lady_Gaga

Question) How user entered name Lady_Gaga be passed from 1st VIEW
to
2nd VIEW ?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Share user input data within MVP + Lady_Gaga

2010-07-19 Thread mk
Thanks a lot.

Now if there are three DIFFERENT presenters (say 2a,2b,2c) listening
event from 1st presenter.
Than do 1st presenter has to create event with all the appro. values
required by 2a,2b,2c presenters?

Plz respond.


On Jul 19, 3:59 pm, Arthur Kalmenson arthur.k...@gmail.com wrote:
 Isn't the second presenter setting the value in the second view based
 on the event it just caught? You're describing the interaction right
 there.

 --
 Arthur Kalmenson



 On Mon, Jul 19, 2010 at 5:54 PM, mk munna.kaka.ch...@gmail.com wrote:
  How to share user input data within MVP.

  Following is one of MVP sequence for TWO widgets

  1) 1st VIEW has a simple textbox and submit button, wherein use
  enters
  her name Lady_Gaga and click submit.
  2) 1st PRESENTER fires an event ( cuz of button click).
  3) 2nd PRESENTER catches that event and displays 2nd VIEW as dialog
  box with user entered name Lady_Gaga

  Question) How user entered name Lady_Gaga be passed from 1st VIEW
  to
  2nd VIEW ?

  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted 
  text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Cache static data?

2010-07-19 Thread mk
How to cache data in browser.

I want to cache data which changes infrequently (thus static common
data changing bi-weekly and NOT html, js, css etc).


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: network data per second

2010-07-16 Thread mk
IMHO, if our design to reduce network calls, facilitates our servers
to handle growing amount of work gracefully. Than are not we improving
scalability ?.

For example if max server load = # of requests * load per request *
CONSTANT = 1000
Before optimication with chatty software it is (1000 requests * 1 load
per request *CONSTANT) = 1000
After optimization with reduced network calls it is ( 500 requests *
1.5 load per request * CONSTANT) = 750. Thus now server is available
to handle more requests.

But above is only possible if client had enough bandwidth to receive
coarse grained data ( so that client's inital page load is not too
slow. BTW: if applicable we will have background threads to load data
in browser for upcoming screens)

Plz correct me if above is wrong.

BTW: web servers in cloud are idlely located with fiber channel in
tier-1 network. (so not much of issue of bandwidth at server).
And I wish we have all the data before we start software development
but currently we just have to make wise ( or stupid) guesses



On Jul 16, 8:00 am, David Vree david.h.v...@gmail.com wrote:
 Scalability is a function of many things such as statelessness,
 clustering, latency, connection pooling, etc. the list goes on and on.

 But scalability is NOT a function of network throughput on the client
 sideserver side yes, but not client side.

 I think the requirement you are trying to meet is performance...how
 fast the app will respond to users over a broadband connection.

 In this case, I think your assumption of 1Mbs is a reasonable one...I
 base this on years of personal experience, but no hard data
 collection.

 But again, this is about performance, not scalability.

 On Jul 15, 11:21 pm, mk munna.kaka.ch...@gmail.com wrote:



  the requirement we are trying to meet is scalability...

  To get scalability in our app we have to reduce network calls by each
  user.- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: network data per second

2010-07-16 Thread mk
Unrelated to original question.

how do you guys cache static data in browser. I am talking about
static data which changes say once every month. ( I am not talking abt
images, js, css etc). Our solution is bit complicated and I am sure
there are easier solutions/patterns


On Jul 16, 10:53 am, David Vree david.h.v...@gmail.com wrote:
 A great book to read on the subject is Scalable Internet
 Architectures.  It shows why common sense applied to scalability is
 almost always wrong.

 A coarse grained conversation will decrease the number of calls, but
 will increase the load per call. So there may be some small gain in
 scalability, but not much.  There will be a gain in client performance
 potentially. The way to increase scalability is to ensure
 statelessness so you can cluster, reduce calls to the database, push
 static content out to specialized servers, replicate the database
 backend when possible, use better/different switches/routers/web
 servers, etc., etc., etc.

 IMO -- Dave

 On Jul 16, 12:37 pm, mk munna.kaka.ch...@gmail.com wrote:



  IMHO, if our design to reduce network calls, facilitates our servers
  to handle growing amount of work gracefully. Than are not we improving
  scalability ?.

  For example if max server load = # of requests * load per request *
  CONSTANT = 1000
  Before optimication with chatty software it is (1000 requests * 1 load
  per request *CONSTANT) = 1000
  After optimization with reduced network calls it is ( 500 requests *
  1.5 load per request * CONSTANT) = 750. Thus now server is available
  to handle more requests.

  But above is only possible if client had enough bandwidth to receive
  coarse grained data ( so that client's inital page load is not too
  slow. BTW: if applicable we will have background threads to load data
  in browser for upcoming screens)

  Plz correct me if above is wrong.

  BTW: web servers in cloud are idlely located with fiber channel in
  tier-1 network. (so not much of issue of bandwidth at server).
  And I wish we have all the data before we start software development
  but currently we just have to make wise ( or stupid) guesses

  On Jul 16, 8:00 am, David Vree david.h.v...@gmail.com wrote:

   Scalability is a function of many things such as statelessness,
   clustering, latency, connection pooling, etc. the list goes on and on.

   But scalability is NOT a function of network throughput on the client
   sideserver side yes, but not client side.

   I think the requirement you are trying to meet is performance...how
   fast the app will respond to users over a broadband connection.

   In this case, I think your assumption of 1Mbs is a reasonable one...I
   base this on years of personal experience, but no hard data
   collection.

   But again, this is about performance, not scalability.

   On Jul 15, 11:21 pm, mk munna.kaka.ch...@gmail.com wrote:

the requirement we are trying to meet is scalability...

To get scalability in our app we have to reduce network calls by each
user.- Hide quoted text -

   - Show quoted text -- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: network data per second

2010-07-16 Thread mk
Unrelated to original question.

how do you guys cache static data in browser. I am talking about
static data which changes say once every month for example monthly
discount item. (I am not talking abt
images, js, css etc.) Our solution is bit complicated and I am sure
there are easier solutions/patterns




On Jul 16, 10:53 am, David Vree david.h.v...@gmail.com wrote:
 A great book to read on the subject is Scalable Internet
 Architectures.  It shows why common sense applied to scalability is
 almost always wrong.

 A coarse grained conversation will decrease the number of calls, but
 will increase the load per call. So there may be some small gain in
 scalability, but not much.  There will be a gain in client performance
 potentially. The way to increase scalability is to ensure
 statelessness so you can cluster, reduce calls to the database, push
 static content out to specialized servers, replicate the database
 backend when possible, use better/different switches/routers/web
 servers, etc., etc., etc.

 IMO -- Dave

 On Jul 16, 12:37 pm, mk munna.kaka.ch...@gmail.com wrote:



  IMHO, if our design to reduce network calls, facilitates our servers
  to handle growing amount of work gracefully. Than are not we improving
  scalability ?.

  For example if max server load = # of requests * load per request *
  CONSTANT = 1000
  Before optimication with chatty software it is (1000 requests * 1 load
  per request *CONSTANT) = 1000
  After optimization with reduced network calls it is ( 500 requests *
  1.5 load per request * CONSTANT) = 750. Thus now server is available
  to handle more requests.

  But above is only possible if client had enough bandwidth to receive
  coarse grained data ( so that client's inital page load is not too
  slow. BTW: if applicable we will have background threads to load data
  in browser for upcoming screens)

  Plz correct me if above is wrong.

  BTW: web servers in cloud are idlely located with fiber channel in
  tier-1 network. (so not much of issue of bandwidth at server).
  And I wish we have all the data before we start software development
  but currently we just have to make wise ( or stupid) guesses

  On Jul 16, 8:00 am, David Vree david.h.v...@gmail.com wrote:

   Scalability is a function of many things such as statelessness,
   clustering, latency, connection pooling, etc. the list goes on and on.

   But scalability is NOT a function of network throughput on the client
   sideserver side yes, but not client side.

   I think the requirement you are trying to meet is performance...how
   fast the app will respond to users over a broadband connection.

   In this case, I think your assumption of 1Mbs is a reasonable one...I
   base this on years of personal experience, but no hard data
   collection.

   But again, this is about performance, not scalability.

   On Jul 15, 11:21 pm, mk munna.kaka.ch...@gmail.com wrote:

the requirement we are trying to meet is scalability...

To get scalability in our app we have to reduce network calls by each
user.- Hide quoted text -

   - Show quoted text -- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



network data per second

2010-07-15 Thread mk
Any idea how much actual data we can send per second over boradband
connection?

Is this assumption true that a general internet user gets an average
of 1Mbps ( after http,tcp,ethernet ovrehead ) ?
Thus we can send 128KB of data (i.e.html, js, image, css) per second.
There is no ocean hop of packets.

Any corrections?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: network data per second

2010-07-15 Thread mk
the requirement we are trying to meet is scalability...

To get scalability in our app we have to reduce network calls by each
user.

Thus we are bundling data of 3-4 web pages in one webpage transfer.
Or for autosuggestion box, we are transferring all possible
suggestions (in hundreds) in one transfer.
Or we are sending the heavy weight data model etc etc.

Now above works for users with reasonably high speed broadband but for
slow users this optimization may not work out ..

(btw: we have whole professional survey going on to get user's
broadband speed data but it will take 2 month before we get this
number)..
(thus we have to continue with wise guess instead of waiting)

Thus the original question




On Jul 15, 8:08 pm, Ian Petersen ispet...@gmail.com wrote:
 I don't personally have an answer for you.  I'm not using GWT anymore
 these days--I've  moved on to a new project and it's got nothing to do
 with the web.  I stick around because I think it's cool tech and I'd
 like to come back one day.

 I think narrowing yourself to urban US and urban Europe, and assuming
 broadband means you might be able to get some useful numbers, but I
 don't feel qualified to tell you what they'll be.  I'm still curious
 to know the reason that you care about these numbers, though.  If, for
 the sake of argument, 1Mbps is a good average, what does that tell
 you?  I've seen broadband for sale anywhere from 128Kbps to 50Mbps.
 That's a range of at least three orders of magnitude there.  Do you
 really care what the arithmetic mean is?

 Ian



 On Thu, Jul 15, 2010 at 5:54 PM, munna kaka munna.kaka.ch...@gmail.com 
 wrote:
  I was afraid that I will get the response you sent.

  If I can add more to the original question than it's that US urban broadband
  connected users will be served by servers in US and european urban broadband
  connected users will be served by servers in europe.

  thus what's your assumptions about speed and it's effect on web page speed.
  (Is 1Mbps speed assumption low or ?)

  On Thu, Jul 15, 2010 at 2:59 PM, Ian Petersen ispet...@gmail.com wrote:

  I think that question is impossible to answer in general.  If you have
  a user base in mind, it might be possible to start generalizing, but
  the internet as a whole is too diverse for averages to have any
  utility.  For example, the Canadian government has (had?) a mandate to
  make its online properties accessible to 100% of online Canadians.
  Some huge percentage of Canada, by population, is urban and has
  broadband, but there are a heck of a lot of connected farmers in the
  middle of rural Canada dialing into the web at speeds like 56k.  In my
  experience, these facts combine to make the government's websites seem
  rather low-tech.  They do load nice and quickly, though.  :)  Anyway,
  my point is just that you need to ask your users what their connection
  speed is like, not the-internet-at-large, because the answers will
  almost certainly be different.

  Ian

  On Thu, Jul 15, 2010 at 4:39 PM, mk munna.kaka.ch...@gmail.com wrote:
   Any idea how much actual data we can send per second over boradband
   connection?

   Is this assumption true that a general internet user gets an average
   of 1Mbps ( after http,tcp,ethernet ovrehead ) ?
   Thus we can send 128KB of data (i.e.html, js, image, css) per second.
   There is no ocean hop of packets.

   Any corrections?

   --
   You received this message because you are subscribed to the Google
   Groups Google Web Toolkit group.
   To post to this group, send email to
   google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Caution: SmartGwt loadup size is big

2010-07-14 Thread mk
We have a tiny widget from SmartClient's SmartGwt. And it had
increased the intial loadup size between webserver and browser by 2.3MB
+.( js, css)

Thus be cautious if you think this can hamper performance.

(If anybody has solution to above than plz share ).

FYI: We do changed header of script to cache all SmartClient's scripts
forever.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



clinet session something like httpsession

2010-07-13 Thread mk
How to implement a client side session ( something like httpsession at
server).
Is it to just create a static variable ?

How do two different MVP widgets share MODEL data (for example user
entered data in one widget to be passed to second widget of table to
show data for that date).


How do two different MVP widgets share VIEW data ( for example if
a widget (say help dialog box) is dependent on mouse click location of
second
widget, than how do two widgets share view information i.e. mouse
click location).

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Client side mapping between model objects

2010-07-13 Thread mk
How do you maintain mapping between Model objects at client browser?


Say for example, over the course of user conversation, there were
three DIFFERENT ajax calls to load CUSTOMER, ORDERS and ITEMS.

Now do you manually map CUSTOMER to ORDER and ORDER to ITEM in client
to maintain mapping between Model objects..
( or do you store CUSTOMER, ORDER, ITEM  separatly with no mapping or
there is a framework like hibernate mappings but for browser which
maps model objects with configuration)


thanks


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Client OR mapping

2010-07-12 Thread mk
How do you maintain rich OR mapping in client.

For example CUSTOMER has many ORDERS and each ORDER has many ITEMS.

Now GWT makes DIFFERENT ajax calls wherein CUSTOMER, ORDER, ITEM are
loaded at separate times (eager fetching does not look good thus lazy
fetching only).

Thus do you manually map objects again in client ( or do you store
CUSTOMER, ORDER, ITEM  in separate shared variables or something
else.).

I am sure you experts out there must have some directions for us.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT adoption

2010-07-12 Thread mk
Do you guys think that GWT will the most widely used framework in
future ( or there will be mix of other frameworks in future. If yes
than which frameworks).

I am little worried that why GWT is not adopted at a rate I would have
thought for last 4 yrs.  why why...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Client session

2010-07-12 Thread mk
How to implement a client side session ( and any best practices to
implement them).
Is it to just create a static variable ?

How do two different MVP widgets share MODEL data (i.e. user input
data).

How do two different MVP widgets share VIEW data ( for example if
display of one widget is dependent on mouse click location of second
widget, than how do two widgets share view information i.e. mouse
click location).

Again, all widgets are designed using MVP and send events using
EventBus.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Dependency injection perf issues

2010-07-12 Thread mk
I used DI i.e. used @Inject to inject (Presenter, EventBus) in all of
Views.

Now it seems that if I use DI than all views are generated at web app
intial start time in browser. Thus start time becomes slow. Am I
right? ( I think I heard something like this before also but just want
to validate).

So if above is true than using @Inject is no good .. right? ( or where
can we use @Inject ).

Can we use use @Inject to lazily create views instead of web app start
time?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Client session

2010-07-12 Thread mk
I am sure many experts out there had already found solution to below.
Thus please respond to original question.

On Jul 9, 11:48 am, mk munna.kaka.ch...@gmail.com wrote:
 How to implement a client side session ( and any best practices to
 implement them).
 Is it to just create a static variable ?

 How do two different MVP widgets share MODEL data (i.e. user input
 data).

 How do two different MVP widgets share VIEW data ( for example if
 display of one widget is dependent on mouse click location of second
 widget, than how do two widgets share view information i.e. mouse
 click location).

 Again, all widgets are designed using MVP and send events using
 EventBus.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Client OR mapping

2010-07-12 Thread mk
Thanks for response. However may be my question was misleading and
thus I did not get the answer.

My question is how do you maintain mapping between Model objects at
client

Say for example, over the course of user conversation, there were
three DIFFERENT ajax calls to load CUSTOMER, ORDERS and ITEMS.

Now do you manually map CUSTOMER to ORDER and ORDER to ITEM in client
after data is received from server, to maintain mapping between Model
objects
( or do you store CUSTOMER, ORDER, ITEM  separatly with no mapping or
there is a framework which maps obejcts with configuration like
hibernate mappings in client)

thanks





On Jul 12, 12:34 pm, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi,

 the client does not know about OR at all. There is NO WAY to lazy load
 something. The client only know objects.

 In a real good client architecture a view/control works against a
 model proxy in the client (sometimes I call them client object cache)
 Either the model object is already in the cache or it will be
 requested.
 In such an architecture the use of comet/server-push techniques is
 essential.
 You could decide on server side which strategy regarding a certain
 model object is the best (eager supplying dependent object too, or
 not )
 However, feeling well in the async world is a prerequisite

 Stefan Bacherthttp://gwtworld.de

 On 9 Jul., 20:22, mk munna.kaka.ch...@gmail.com wrote:



  How do you maintain rich OR mapping in client.

  For example CUSTOMER has many ORDERS and each ORDER has many ITEMS.

  Now GWT makes DIFFERENT ajax calls wherein CUSTOMER, ORDER, ITEM are
  loaded at separate times (eager fetching does not look good thus lazy
  fetching only).

  Thus do you manually map objects again in client ( or do you store
  CUSTOMER, ORDER, ITEM  in separate shared variables or something
  else.).

  I am sure you experts out there must have some directions for us.- Hide 
  quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT Session problem

2008-10-14 Thread mk

I use the following method to get session ID in my
[RemoteServiceServlet] class:
protected String getSessionId()
{
return getThreadLocalRequest().getSession().getId() ;
}
It used to work nicely. Then all of a sudden, it started returning a
different ID with every call. I use tomcat 6. I have tried switching
to the latest version of tomcat, then tried both IE6 and Firefox 3
with the same result. Any idea what the issue could be?
I understand that I could get and return the ID on the first call and
pass it back to the server as a parameter with each subsequent
request, but that's a lot of extra work and also defeats the purpose
of session management.
Thank you.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---