Cache on Client

2010-07-27 Thread Joyce
Hi. I believe that GWT achieves RIA through initial throwing of
objects and files to the client side initially. but what I do not
understand is that is it possible to control the amount of information
being thrown to the client side? cos this is because I do not want
sensitive information to be cache at the client side. these
information shall only be retrieved from server when requested.

these information should only be sent to the client only when
requested and should not be cached at the client side. does anyone
know if it is possible to control the amount of information being sent
to the client? can anyone enlighten me? would appreciate your help
sincerely.

-- 
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: Serialization problems

2010-07-27 Thread Paul Robinson
The error message does not imply it couldn't find the source, it says
the type is not serializable. Merely implementing Serializable is not in
itself enough to be GWT-serializable. Most likely is that you've not got
a no-arg constructor or that one of your non-static, non-final instance
variables is not GWT-serializable.

Paul

Vinicius Carvalho wrote:
 Hello there. We have our domain model files in a separate jar

 com.acme.model is the base package for it

 in our gwt.xml file we have source=model/

 And everything was ok. We then add a new subfolder: search

 com.acme.model.search

 And all classes there implement java.io.Serializable just like the
 other model classes

 But now, we get

 com.google.gwt.user.client.rpc.SerializationException: Type 'xxx' was
 not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and
 did not have a custom field serializer. For security purposes, this
 type will not be deserialized.

 When invoking the remote service. The odd part is that it never
 happened for the other classes that only implemented
 java.io.Serializable.

 I though that the source directive at the xml was recursive, do I need
 to add each package?

 Regardds

   

-- 
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.



Bug in calculating “Absolute top” position using GWT framework

2010-07-27 Thread Ragothaman Thanikachalam
In ie7 browser set zooming level 100%, and open GWT showcase
application.
http://ongwt.googlecode.com/svn/trunk/com.google.gwt.sample.showcase.Showcase/Showcase.html#CwBasicPopup

Click “Show Basic Popup” button. Now the popup panel opens over this
button.
Change the zoom level to 125%
Continue the previous step.
Now the popup panel position looks strange.

But in IE8 its works perfect.
Can any one help me to resolve this problem?

Thanks
Ragoth…

-- 
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 deserialization issue of bytecode enhanced classes in dev mode

2010-07-27 Thread lpetit
Hello,

I have a problem in dev mode.
I've made a set of domain classes client-side compatible (the java 2
javascript compiler reports no error).
When I get an instance of a class in the server, it's via jibx. jibx
uses bytecode enhancement in a post-compilation phase, and adds some
fields to the enhanced classes.

So, when I get an instance via jibx, I have hidden fields added by
jibx. Example: jibx_sourceLine.

In dev mode, the instance seems to correctly serialize, but there's
a problem when deserializing : the field added by jibx at bytecode
enhancement time has no counter-part, since it's not in the java
source code of the instance's class.

Moreover, I don't care about these jibx fields in the client side.
They could as well be discarded by the serializer/deserializer
mechanisms, I don't care.


Do you have any idea to help me solve my issue ?

-- 
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 call Workerpool : work only with clik??

2010-07-27 Thread gadaleta.marco
Hi,
I try to call workerpool from gwt application to verify if the
application is online or not.
When i test it inside developer ambient it work fine,
but when i deploy on a server it doesn't work.
Why this happens?

p.s.: the path of worker.js file is correct...

Marco

-- 
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: HTML5 Offline GWT APP

2010-07-27 Thread Shawn Brown
Hi Julio,

 Thanks Arthur, the linker works perfectly.

Did you use the  com.google.gwt.core.ext.linker.AbstractLinker  and
just override the link method?

If so, are we just outputting the file names to make a suitable
manifest in the link method.  Will this compile the project and make
the manifest at the same time or is it a two step process.

May I please see your linker code!?!  Is there a manifest linker
available someplace?


 I am using google plugin for eclipse and gae-java

Me too and if I have any info I'll share but right now am a step or
two behind you.

Thanks,

Shawn

-- 
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.



Verify Error

2010-07-27 Thread cooolcat
Hello, I try to get data from a Oracle database via Hibernate. I am
working with DTOs. Now I get following exceptions:

java.lang.VerifyError: (class: org/hibernate/cfg/Environment, method:
clinit signature: ()V) Accessing value from uninitialized register 5
27.07.2010 12:18:16
com.google.appengine.tools.development.ApiProxyLocalImpl log
SEVERE: [1280225896649000] javax.servlet.ServletContext log: Exception
while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.util.List
de.innosystec.project.client.MusicStoreService.getRecords()' threw an
unexpected exception: java.lang.ExceptionInInitializerError
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
378)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
581)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
188)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
224)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
51)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:349)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.ExceptionInInitializerError
at
de.innosystec.project.server.HibernateUtil.createSessionFactory(HibernateUtil.java:
25)
at
de.innosystec.project.server.HibernateUtil.getSessionFactory(HibernateUtil.java:
31)
at
de.innosystec.project.server.MusicStoreServiceImpl.getRecords(MusicStoreServiceImpl.java:
25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
100)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
562)
... 30 more
Caused by: java.lang.VerifyError: (class: org/hibernate/cfg/
Environment, method: clinit signature: ()V) Accessing value from
uninitialized register 5
at org.hibernate.cfg.Configuration.reset(Configuration.java:201)
at org.hibernate.cfg.Configuration.init(Configuration.java:220)
at org.hibernate.cfg.Configuration.init(Configuration.java:224)
at
de.innosystec.project.server.HibernateUtil.createSessionFactory(HibernateUtil.java:
19)
... 38 more

Has someone an idea what is wrong?

-- 
You received this message because you 

Making image that has handlers

2010-07-27 Thread Roope
Hello,

I'm trying to make image from biological data. I have some sequence of
characters and alignment information where some other sequence match.
I want to present all of these matches in image where I could select
some match and present the information.

So the question is, what package should I use? I have been trying to
use GWTCanvas but is there some other package? My problem with
GWTCanvas is that the pixels and coordinates get messed up. I did read
about it but I'm probably missing something.

The idea is to build Google maps kind of tool but with just few
functions. Some zooming and moving the image and selecting individual
lines or selecting all lines that intersect some interval. And maybe
some mouse over stuff. I managed to launch some handlers using
GWTCanvas so that should not be the problem if that is the right
package for this.

All ideas and tips are welcome, I'm not completely sure that the path
I have choose is right. :) I will post some code later...

-- 
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: introducing a marketplace for GWT components associated projects

2010-07-27 Thread Christian Goudreau
I registered Gwt-Platform and our next project, our consultant firm. You
should add a category more specific for team of individuals that want to
offer support or consulting services for Gwt.

Great app ! Did you use Gwt-Platform ? :)

Cheers,

On Mon, Jul 26, 2010 at 10:00 PM, Joe Hudson joe...@gmail.com wrote:

 Thanks for the feedback Peter.

 I've made changes to the categories that you suggested.  That
 definitely seems to make more sense.

 Joe

 On Jul 26, 8:19 am, Peter Simun si...@seges.sk wrote:
  Great idea Joe,
 
  I was missing something like this for a long time. But the
  categorization is little bit confusing me.
  What is the difference between Libraries and Frameworks, or Tools.
  Wouldn't it be better to cover some specific domains in the
  categories? Like UI widgets, RPC, security, MVP, etc ?
 
  Thank you again.
  Peter
 
  On 26. Júl, 10:08 h., maks makspaniza...@gmail.com wrote:
 
   Wow this is nice! keep it up!
 
   On Jul 26, 11:57 am, Joe Hudson joe...@gmail.com wrote:
 
Hi,
 
I'm a huge fan of GWT and the only problem I have with it is not
really a problem with GWT but with the fact that there isn't a
centralized place for registering component and associated tools
AFAIK.  I have created an application to do this which is available
 athttp://gwtmarketplace.appspot.com
 
This project is open-source and the project and source code is
available at:http://code.google.com/p/gwtmarketplace/.
 
I encourage everyone who has a product related to GWT to register it
so it easier for folks like myself to see what is available and be
able to comment on and rate these products.
 
I would certainly appreciate if the GWT folks would link
 tohttp://gwtmarketplace.appspot.comtomakeit easier for people to
see.  Also, any feedback would certainly be appreciated.
 
Thanks,
 
Joe
 
   http://gwtmarketplace.appspot.com

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Christian Goudreau

-- 
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: Another Ajax Crawling question, is #! acceptable rather then just #! ?

2010-07-27 Thread Katharina Probst
On Mon, Jul 26, 2010 at 8:31 PM, Thomas Wrobel darkfl...@gmail.com wrote:

 Sorry for my late reply.
 Lets say I have a url like this;


 http://www.rateoholic.co.uk/main/Rateoholic_Frame.html#!SEARCHFOR=star%20warsTYPE=videogame

 Google Bot will turn it to this;


 http://www.rateoholic.co.uk/main/Rateoholic_Frame.html?_escaped_fragment_SEARCHFOR=star%20warsTYPE=videogame


It should be:

http://www.rateoholic.co.uk/main/Rateoholic_Frame.html?_escaped_fragment_=SEARCHFOR=star%20warsTYPE=videogamehttp://www.rateoholic.co.uk/main/Rateoholic_Frame.html?_escaped_fragment_SEARCHFOR=star%20warsTYPE=videogame

(note the = after the _escaped_fragment_)

What I thought you'd do in PhP is something like
$_GET['_escaped_fragment_'], then take that string, unescape it, and you've
got your query params back (your first workaround).  But I do see the
problem that it's slightly less convenient... With both of your suggested
workarounds, just remember to unescape the keys and values afterwards. It
*would* be nice to have a handy little parser for this.

kathrin



 Correct?

 Now, in PHP you normally access the query string data by calls like
 $_GET[].
 Only in this case if you call  $_GET['SEARCHFOR'] you wont get the
 value star wars like you normally would, because google bot has
 added _escaped_fragment_ to the start of the key value.
 You could still get the other key/value pairs just fine following the
  sign, but the first one be visible in the normal way.

 See the problem?

 I've come up with some solutions, but they arn't that pretty.
 One way is to remove the _escaped_fragment_ from the start of the
 string and make my own parser for the key/value pairs.

 The other is to search for   $_GET['_escaped_fragment_SEARCHFOR']
 instead of SEARCHFOR. However, this results in the query string
 needing to be in a fixed order. (or testing for both
 _escaped_fragment_**  and ** for every key I'm looking for).

 Its not a critical problem, as the first workaround works and am
 currently using it.

 But it does seem like there should be some nice method to be able to
 use PHP's query-string functions as intended.

 ===
 Finally, one last thing; I cant work out any way to tell when my
 system is working or not. After a few days my #! results dont seem
 googlable...so can I assume it isn't working yet for some reason? (Ive
 submitted a sitemap thats parsed over ok...so I expected
 something..hmm..)


 Thanks,
 Thomas Wrobel

 On 26 July 2010 14:45, Katharina Probst kpro...@google.com wrote:
  Sorry, I'm a little confused too.
  When googlebot sees www.example.com?mykey=myvalue#!myhistorytoken ,
  it'll turn it into
  www.example.com?mykey=myvalue_escaped_fragment_=myhistorytoken .
  Can you give an example (complete fake URLs, like I did above) to
 illustrate
  the problem you're seeing?  That would be helpful.
  Thanks,
  kathrin
  Short answer is I don't think you should use #!.
 
  On Sat, Jul 24, 2010 at 12:27 PM, darkflame darkfl...@gmail.com wrote:
 
  Thanks, Sorry if its not clear, but I am actually talking about all of
  those things.
 
  PHP is my back end which is generating the static pages.
  GWT is what my site is coded in. Its completely dynamic and makes
  extensive use of # tokens to store and retrieve its states.
 
  I'm attempting to get my side Ajax crawl-able using this guide;
  http://code.google.com/web/ajaxcrawling/docs/getting-started.html
 
  This guide states to replace the normal #anything style history
  tokens with #!anything tokens instead. Note the additional !
  When google's crawler is requesting these pages it swaps the #! for
  ?_escapedfragment_=, allowing the server to generate a static page
  using the query string.
  This is all laid out in googles guide.
 
  However, the formating of this ?_escapedfragment_=  does not allow
  php to process the key/value pairs in the query string as it normally
  could.
  PHP can normally read of key value pairs from the query string using
  its $_GET[] command.  However, under this system ?_escapedfragment_=
  in the url requested prevents the first key value pair being read.
  (as the parser now sees _escapedfragment_ as its own key, and the
  first true key as its *value*).
 
  Thus, in order to use PHP with Google's system for making Ajax
  crawlable, I was querying if GWT user's should add  to their new
  history token format, rather then just !. So the new tokens become
  #! rather then just #!.
  
  This is a little confusing, but I think it should be understandable
  for anyone who knows both PHP as well as GWT. (or at least, has used
  extensive historytokens/states in their web design).
 
  Finally, I mentioned the Webmaster tools Fetch as Googlebot as thats
  what I'm using to test if my site is indeed browse-able by google's
  bot. Its not yet possible to use it to test completely for this sort
  of functionality, however. So some of this work is a little blind.
 
 
 
 
 
 
 
 
 
 
  On Jul 24, 6:08 pm, Stefan Bachert 

Re: Spring Security UI Conditional Rendering

2010-07-27 Thread Peter Simun
Acris has also the client conditional security. Have a look on:
http://code.google.com/p/acris/wiki/SecurityClient

Just annotate you panel with
@Secured(Grants.ROLE_ADMIN)
protected VerticalPanel mainPanel;

and it will displays only to users which has correct security
permission.

You can study more in the showcase:
http://acris.googlecode.com/svn/trunk/acris-security-showcase

Peter

On 21. Júl, 00:46 h., seanrocket seanrocketjohnc...@gmail.com wrote:
 I am running GWT2.0.4 and Spring Security 3.03.

 I am able to authenticate with Spring Security but have not found a
 good way to conditionally render Widgets and Panels based on ROLES
 from Spring Security.

 For example: In the StockWatcher program, if a user has a ROLE_ADMIN
 then I want to allow that person to add a addPanel. But If the user
 has a role such as ROLE_GUEST who is not a ROLE_ADMIN, that user
 should not see the panel

 I would like to do something like:
    public void onModuleLoad() {
 .
             // Assemble Main panel.
             mainPanel.add(stocksFlexTable);
             if(SpringSecurityRole == ROLE_ADMIN){
                     mainPanel.add(addPanel);
              }
             mainPanel.add(lastUpdatedLabel);
  ..
      }
 I know UI conditional rendering  can be easily accomplished using jsp
 and the Spring Security tags (as shown below). But we don't want to
 use jsp

 sec:authorize access=hasRole('ROLE_ADMIN')
  input type=submit value=Add /
 /sec:authorize

 I have searched gwt forums , google groups and other GWT book forum
 and Spring book forums and have not found a good solution.

 I've tried the acris securityhttp://code.google.com/p/acris/wiki/Introduction
 but the roles don't seem to come from Spring Security but rather its
 own implementation. It uses Spring Security for server side security
 not UI conditional rendering. UI conditional rendering ROLES come from
 its own filter
 sk.seges.acris.security.server.SessionRemoteServiceFilter and user
 define Grants interface.

 I've also tried  gwt-incubator 
 libhttp://code.google.com/p/gwt-incubator-lib/but that seems to only
 cover authentication and no conditional rendering.

 I've seen some news feed about calling back to Spring Security but
 didn't know how to accomplish the actual calls.

 DoCheckUserAuth checkAuth = new DoCheckUserAuth(); boolean b =
 checkAuth.askServerAboutUser();
 if(b){
     RootPanel.get(formPoint).set(new PrivateForm);}
 else
 {
   RootPanel.get(messagePoint).set(new Label(Please, pass
 authorization));

 Your help is much appreciated

-- 
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: Another Ajax Crawling question, is #! acceptable rather then just #! ?

2010-07-27 Thread Thomas Wrobel
Thanks for the clarification.

The problem is, to my knowledge, you can't use the built in parser in
PHP to parse your own strings, it only reads from the URL.
So while you can get the original query string by doing;
$_GET['_escaped_fragment_'],  if you got multiple parameters you then
have to parse over it yourself.

And thanks for the unescape reminder!


On 27 July 2010 14:35, Katharina Probst kpro...@google.com wrote:


 On Mon, Jul 26, 2010 at 8:31 PM, Thomas Wrobel darkfl...@gmail.com wrote:

 Sorry for my late reply.
 Lets say I have a url like this;


 http://www.rateoholic.co.uk/main/Rateoholic_Frame.html#!SEARCHFOR=star%20warsTYPE=videogame

 Google Bot will turn it to this;


 http://www.rateoholic.co.uk/main/Rateoholic_Frame.html?_escaped_fragment_SEARCHFOR=star%20warsTYPE=videogame


 It should be:
 http://www.rateoholic.co.uk/main/Rateoholic_Frame.html?_escaped_fragment_=SEARCHFOR=star%20warsTYPE=videogame

 (note the = after the _escaped_fragment_)
 What I thought you'd do in PhP is something like
 $_GET['_escaped_fragment_'], then take that string, unescape it, and you've
 got your query params back (your first workaround).  But I do see the
 problem that it's slightly less convenient... With both of your suggested
 workarounds, just remember to unescape the keys and values afterwards. It
 *would* be nice to have a handy little parser for this.
 kathrin


 Correct?

 Now, in PHP you normally access the query string data by calls like
 $_GET[].
 Only in this case if you call  $_GET['SEARCHFOR'] you wont get the
 value star wars like you normally would, because google bot has
 added _escaped_fragment_ to the start of the key value.
 You could still get the other key/value pairs just fine following the
  sign, but the first one be visible in the normal way.

 See the problem?

 I've come up with some solutions, but they arn't that pretty.
 One way is to remove the _escaped_fragment_ from the start of the
 string and make my own parser for the key/value pairs.

 The other is to search for   $_GET['_escaped_fragment_SEARCHFOR']
 instead of SEARCHFOR. However, this results in the query string
 needing to be in a fixed order. (or testing for both
 _escaped_fragment_**  and ** for every key I'm looking for).

 Its not a critical problem, as the first workaround works and am
 currently using it.

 But it does seem like there should be some nice method to be able to
 use PHP's query-string functions as intended.

 ===
 Finally, one last thing; I cant work out any way to tell when my
 system is working or not. After a few days my #! results dont seem
 googlable...so can I assume it isn't working yet for some reason? (Ive
 submitted a sitemap thats parsed over ok...so I expected
 something..hmm..)


 Thanks,
 Thomas Wrobel

 On 26 July 2010 14:45, Katharina Probst kpro...@google.com wrote:
  Sorry, I'm a little confused too.
  When googlebot sees www.example.com?mykey=myvalue#!myhistorytoken ,
  it'll turn it into
  www.example.com?mykey=myvalue_escaped_fragment_=myhistorytoken .
  Can you give an example (complete fake URLs, like I did above) to
  illustrate
  the problem you're seeing?  That would be helpful.
  Thanks,
  kathrin
  Short answer is I don't think you should use #!.
 
  On Sat, Jul 24, 2010 at 12:27 PM, darkflame darkfl...@gmail.com wrote:
 
  Thanks, Sorry if its not clear, but I am actually talking about all of
  those things.
 
  PHP is my back end which is generating the static pages.
  GWT is what my site is coded in. Its completely dynamic and makes
  extensive use of # tokens to store and retrieve its states.
 
  I'm attempting to get my side Ajax crawl-able using this guide;
  http://code.google.com/web/ajaxcrawling/docs/getting-started.html
 
  This guide states to replace the normal #anything style history
  tokens with #!anything tokens instead. Note the additional !
  When google's crawler is requesting these pages it swaps the #! for
  ?_escapedfragment_=, allowing the server to generate a static page
  using the query string.
  This is all laid out in googles guide.
 
  However, the formating of this ?_escapedfragment_=  does not allow
  php to process the key/value pairs in the query string as it normally
  could.
  PHP can normally read of key value pairs from the query string using
  its $_GET[] command.  However, under this system ?_escapedfragment_=
  in the url requested prevents the first key value pair being read.
  (as the parser now sees _escapedfragment_ as its own key, and the
  first true key as its *value*).
 
  Thus, in order to use PHP with Google's system for making Ajax
  crawlable, I was querying if GWT user's should add  to their new
  history token format, rather then just !. So the new tokens become
  #! rather then just #!.
  
  This is a little confusing, but I think it should be understandable
  for anyone who knows both PHP as well as GWT. (or at least, has used
  extensive historytokens/states in their web design).
 
  Finally, I 

Re: HTML5 Offline GWT APP

2010-07-27 Thread Julio Faerman
I am doing like the Google IO Linkers video:

@LinkerOrder(Order.POST)
public class OfflineLinker extends AbstractLinker {

@Override
public String getDescription() {
return HTML 5 Offline Linker;
}

@Override
public ArtifactSet link(TreeLogger logger, LinkerContext context,
ArtifactSet artifacts) throws UnableToCompleteException 
{
ArtifactSet artifactSet = new ArtifactSet(artifacts);
StringBuilder buf = new StringBuilder();
buf.append(CACHE MANIFEST\nindex.html\n);
buf.append(#).append(System.currentTimeMillis()).append(\n);

for(EmittedArtifact 
artifact:artifacts.find(EmittedArtifact.class)){
if(!artifact.isPrivate()){

buf.append(artifact.getPartialPath()).append(\n);
}
}
EmittedArtifact artifact = emitString(logger, buf.toString(),
gt.manifest); //my manifest file name
artifactSet.add(artifact);
return artifactSet;
}
}

I also needed this servlet (mapped to /gt.manifest) :

public class ManifestServlet extends HttpServlet{
@Override
protected void service(HttpServletRequest req, HttpServletResponse
resp)
throws ServletException, IOException {
resp.setContentType(text/cache-manifest);
RequestDispatcher disp = req.getRequestDispatcher(/gt/
gt.manifest);
disp.forward(req, resp);
}
}

It seems to be working, but debugging is not easy.

On Jul 27, 6:37 am, Shawn Brown big.coffee.lo...@gmail.com wrote:
 Hi Julio,

  Thanks Arthur, the linker works perfectly.

 Did you use the  com.google.gwt.core.ext.linker.AbstractLinker  and
 just override the link method?

 If so, are we just outputting the file names to make a suitable
 manifest in the link method.  Will this compile the project and make
 the manifest at the same time or is it a two step process.

 May I please see your linker code!?!  Is there a manifest linker
 available someplace?

  I am using google plugin for eclipse and gae-java

 Me too and if I have any info I'll share but right now am a step or
 two behind you.

 Thanks,

 Shawn

-- 
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 app no longer working in Eclipse 3.6 dev-mode

2010-07-27 Thread googelybear
Hi,

Previously I was running my gwt app in eclipse 3.5. Now I have
installed a fresh 3.6 (helios, classic), subversive and the gwt plugin
via the update sites. Starting my gwt app also works fine and the
Development Mode tab gets opened. When I connect to my app via
firefox and login I get the following error:

14:58:58.693 [ERROR] [MonoCore] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException:
(NS_ERROR_NOT_AVAILABLE): Component returned failure code: 0x80040111
(NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]
 QueryInterface: function QueryInterface() {
[native code]
}
 result: 2147746065
 filename: http://127.0.1.1:
 lineNumber: 104
 columnNumber: 0
 inner: null
 data: null
 initialize: function initialize() {
[native code]
}
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
195)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
264)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:
1669)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
401)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:619)

I am running on a linux box (Ubuntu) and I already tried to clean and
rebuild the project and restart firefox and eclipse but to no help. I
also created a new launch config (right click on project  run as 
web application). On eclipse 3.5 everything worked fine.

Did anyone else experience this issue or has an idea what's going
wrong here? Thanks for any help.

Dennis

-- 
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: How can I specify a browser that GWT tests should be run on?

2010-07-27 Thread Arthur Kalmenson
Hey Damian,

It doesn't look like that's possible:
http://code.google.com/webtoolkit/doc/latest/DevGuideTestingHtmlUnit.html.
HtmlUnit only supports emulating FF 2, FF 3 and IE 6 - 8. For doing
GUI testing, I'd suggesting looking at Selenium. GWTTestCase is good
for doing integration testing that involves some UI components, but
not straight on GUI testing.

--
Arthur Kalmenson



On Fri, Jul 23, 2010 at 8:41 AM, Damian Rodziewicz
damianrodziew...@gmail.com wrote:
 Hi!

 I am writing a GWT project that uses HTML5 canvas.

 To test application I use GWTTestCase.

 For firefox some functions are supported since gecko 1.9.
 While testing, firefox 3.0.1 is being used and errors occur.

 How can I set up GWT tests to be launched on firefox 3.6?
 (in Eclipse using GWT plugin or using build.xml for ant)

 --
 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.



Re: Persistent class ... does not seem to have been enhanced .. Error??

2010-07-27 Thread AlexG
Problem is solved.

On 26 Jul., 12:26, AlexG alexander.gauss.ax...@googlemail.com wrote:
 Hi @ all,

 as you can see (topic) I get strange errors, when runnig my GWT/GAE
 projects.
 The error message is:

 Persistent class myClass does not seem to have been enhanced.  You
 may want to rerun the enhancer and check for errors in the output.
 has no table in the database, but the operation requires it. Please
 check the specification of the MetaData for this class.

 The thing is, to give more background information, I have 2 projects.
 One project includes the whole UI (gwt/gae), and the service
 interface. The other project (JavaProject) includes the service-
 implementation and the
 persistent-class-definitions.

 I believe, the problem is, that the datanucleus-enhance doesn´t know,
 where the persistent classes are. Don´t know if this is correct?

 Does anybody had a similar error? Any ideas how I can solve this
 problem?

 Thanks,
 Alex

-- 
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: Google Web Toolkit JavaScript Vs hand Crafted JavaScript benchmark

2010-07-27 Thread Arthur Kalmenson
I'd be interested to see how much faster this runs with GwtQuery
instead of vanilla GWT. GwtQuery doesn't try to emulate the Java
collections API so the code is much smaller and potentially faster.

--
Arthur Kalmenson



On Mon, Jul 26, 2010 at 11:38 AM, Ciarán ciaran.mccann@gmail.com wrote:
 Hey everyone I am really interested in GWT for a project I am working
 at the moement. The main benefit for me is the fact that I don't have
 to write JavaScript which I really dislike, but then I was thinking
 would the code produced by GWT be slower then hand crafted JavaScript
 so I ran a benchmark, the results of which I posted here http://bit.ly/cxo4dS
 some very interesting results when running it on the iphone.

 --
 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.



Re: Need strategy to implement window layout

2010-07-27 Thread heros
Thanks for your hint.
I want to add an icon to the splitter to hide/open left panel like the
vertical splitter 
http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
Do I use SplitLayoutPanel or LayoutPanel?
Sorry for my stupid question.


On Jul 20, 5:19 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 19 juil, 23:01, David Vree david.h.v...@gmail.com wrote:

  Brand new GWT developer here -- tasked with implementing a thin client
  that will replace a rich client .NET program that used to make use of
  this dockable window library:

 http://www.divelements.com/net/controls/sanddock/screenshots.aspx

  I'm currently struggling with the layout of the main window.  It is
  fairly standard with a nearly static header at the top, fixed height
  status pane at the bottom, hideable navigation window to the left
  (west) and a master/detail form in the middle, and hideable help pane
  to the right (east).  After some investigation and coding, it looks
  likeSplitLayoutPanelmay be what I need, but I have questions:

 Because not all panels should be resizable, I'd rather go with a
 DockLayoutPanel; eventually mixing it with aSplitLayoutPanel:
 DockLayoutPanel for north+south,SplitLayoutPanelin the center with
 resizable east and west regions.

  1) How do I make it so that it properly reacts to window resize
  events?  Do I have to code this myself? Is there a better way?

 Layout panels should handle it automatically, provided you add them to
 the RootLayoutPanel.

  2) Can I get rid of the splitters below the header and above the
  status bar.  If this is not possible, should I just use a
  VerticlePanel and put theSplitLayoutPanelin the middle?

 See above: DockLayoutPanel w/ nestedSplitLayoutPanel.

  3) How do I make it so that the master pane can be dragged and
  dropped below the navigation pane.  This is an important capability
  for users because it allows them to maximize the detail area while
  keeping the master items visible.

 GWT doesn't provide anything for drag'n'drop, though there are 3rd-
 party libs, such as gwt-dnd. But, honestly, it'd probably be a big
 amount of work to plug this into a LayoutPanel...
 If you can, replace DnD with some other interaction: for instance,
 some kind of maximize button to move the master to the west in one
 click.

  4) What kind of pane should I use for the hidable panes?

 If you really want click to hide (or the reverse, click to pin),
 you'd probably rather use a LayoutPanel which has a setWidgetVisible
 method, than a DockLayoutPanel orSplitLayoutPanel(but of course
 you'd lose the splitters). It might be possible to 
 extendSplitLayoutPanelthough and play directly with the LayoutData
 associated with widgets.

  How do I animate the showing/hiding?

 AnimatedLayout (LayoutPanel, DockLayoutPanel,SplitLayoutPanel) panels
 have an animate(int) method.

-- 
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.



CssResources @external and tail-globs

2010-07-27 Thread david.herv...@gmail.com
Hello,

as mentionned in the CssResource wiki :
http://code.google.com/p/google-web-toolkit/wiki/CssResource#External_and_legacy_scopes
it may be possible to match tail glob pattern in the annotated
@external CSS Class.

I've tried this feature with no success. Only the @external fixed CSS
name are not obfuscated but the tail regexp seems not to be applied ?

Did someone already experiment this with success ?

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.



Re: XSL Transformation, AccessControlException, NoClassDefFoundError and SyntheticRepository

2010-07-27 Thread Jan
I'm sorry, the reason for having all those error messages was that I
forgot to put serializer-version.jar and xalan-version.jar into /
WEB-INF/lib.
Best regards
Jan

-- 
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 side caching?

2010-07-27 Thread Christian Goudreau
http://turbomanage.wordpress.com/

David Chandler wrote a couple of great article on that. Everything is around
Gwt-Dispatch project, but you could also use Gwt-Platform to do the same
thing.

Cheers,

On Tue, Jul 27, 2010 at 7:40 AM, Julius julius.kle...@gmail.com wrote:

 Hi,

 I am new to GWT and kinda dealing with the same questions at the
 moment. I need user data, basically a User object very often and I
 want to get it just once in every request. At this moment multiple
 presenters are getting the User and this is obviously bad for
 performance.

 The solution Feldman suggested sounds right to me, I just have no idea
 how to set this up. Could you give me a code example on how to
 implement this?

 Best, J

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Christian Goudreau

-- 
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: HTML5 Offline GWT APP

2010-07-27 Thread Shawn Brown
 It seems to be working, but debugging is not easy.

Why is that?

Can't you use Firebug, the Error console in Safari or the Dev console
in chrome to display logging?

Sorry if it's a dumb question but ...

Anyway thanks!

Shawn

-- 
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: GWT 2.1 how to customize style for TextColumn

2010-07-27 Thread Deepak Singh
Hello,

I have to use this data presentation widget for my project. Can anybody help
me how to use it or any sample code for that would be very helpful.

Regards
Deepak

On Tue, Jul 27, 2010 at 2:07 AM, Ted ted.slus...@gmail.com wrote:

 Hello,

 Does anyone have a suggestion for the preferred way to customize a
 style for a given cell using a TextColumn with the new Data
 Presentation Widgets framework in GWT 2.1?

 Thanks,
 Ted

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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.



Re: GWT app no longer working in Eclipse 3.6 dev-mode

2010-07-27 Thread Piyush Garg

Hi Dennis,

I will suggest you to open a defect instead of posting it here.
For me the combination of 3.6 and gwt eclipse plugin is working fine on 
ubuntu lucid.


Thanks and Regards
Piyush Garg


On Tuesday 27 July 2010 06:35 PM, googelybear wrote:

Hi,

Previously I was running my gwt app in eclipse 3.5. Now I have
installed a fresh 3.6 (helios, classic), subversive and the gwt plugin
via the update sites. Starting my gwt app also works fine and the
Development Mode tab gets opened. When I connect to my app via
firefox and login I get the following error:

14:58:58.693 [ERROR] [MonoCore] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException:
(NS_ERROR_NOT_AVAILABLE): Component returned failure code: 0x80040111
(NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]
  QueryInterface: function QueryInterface() {
 [native code]
}
  result: 2147746065
  filename: http://127.0.1.1:
  lineNumber: 104
  columnNumber: 0
  inner: null
  data: null
  initialize: function initialize() {
 [native code]
}
 at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
195)
 at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120)
 at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
 at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
264)
 at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
 at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
 at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
 at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
 at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
 at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
 at
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:
1669)
 at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
401)
 at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
 at java.lang.Thread.run(Thread.java:619)

I am running on a linux box (Ubuntu) and I already tried to clean and
rebuild the project and restart firefox and eclipse but to no help. I
also created a new launch config (right click on project  run as
web application). On eclipse 3.5 everything worked fine.

Did anyone else experience this issue or has an idea what's going
wrong here? Thanks for any help.

Dennis

   


--
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.



Test Data

2010-07-27 Thread Jose Luis Estrella Campaña
Hello fellow GWT programmers !

Need some kind of parallel advice here. I need to deliver a GWT
application compiled inside an EAR file, I have managed to assemble my
EAR file correctly and deploy it to a variety of application servers,
but now I'm in a bit of a pickle here. A Client has requested I
deliver my web app with some test data preloaded into the application.
What's the best way to do this with GWT ? Is there a way to emulate a
Database ? Could I use Serialization ? (I have already tried but the
file locations become unpredictable) Could I deliver some sort of
portable Database with my EAR file ?

I expect to read from you soon, and thanks in advance,

Best Regards,

Jose.

-- 
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-side deserialization issue of bytecode enhanced classes in dev mode

2010-07-27 Thread Deepak Singh
Can i know how you are using jibx binding with gwt ?

On Tue, Jul 27, 2010 at 2:53 PM, lpetit laurent.pe...@gmail.com wrote:

 Hello,

 I have a problem in dev mode.
 I've made a set of domain classes client-side compatible (the java 2
 javascript compiler reports no error).
 When I get an instance of a class in the server, it's via jibx. jibx
 uses bytecode enhancement in a post-compilation phase, and adds some
 fields to the enhanced classes.

 So, when I get an instance via jibx, I have hidden fields added by
 jibx. Example: jibx_sourceLine.

 In dev mode, the instance seems to correctly serialize, but there's
 a problem when deserializing : the field added by jibx at bytecode
 enhancement time has no counter-part, since it's not in the java
 source code of the instance's class.

 Moreover, I don't care about these jibx fields in the client side.
 They could as well be discarded by the serializer/deserializer
 mechanisms, I don't care.


 Do you have any idea to help me solve my issue ?

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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.



Re: GWT app no longer working in Eclipse 3.6 dev-mode

2010-07-27 Thread googelybear
Hi kathrin,

thanks for the pointers! You were absolutely right, it is related to
SOP. I tried it on IE and there I get a human readable message (The
URL ... is invalid or violates the same-origin sercurity restriction).
It seems that someone - probably by mistake - set the wrong url in a
config file so it's trying to connect to a foreign server directly
instead of going through the proxy servlet. After fixing this it works
again.

thanks again,
Dennis


On Jul 27, 3:33 pm, Katharina Probst kpro...@google.com wrote:
 Hi Dennis,

 my guess is that this has something to do with the ports you're using for
 DevMode.  A couple of things to try:

 - are you running DevMode in -noserver mode? If so, it could be a Same
 Origin Policy problem.
 - can you confirm that this problem only occurs on Firefox and not on IE?
  AFAIU, this is Firefox-specific.
 - does compiling and deploying your app work fine (even for FF)?

 kathrin



 On Tue, Jul 27, 2010 at 9:05 AM, googelybear googelyb...@gmail.com wrote:
  Hi,

  Previously I was running my gwt app in eclipse 3.5. Now I have
  installed a fresh 3.6 (helios, classic), subversive and the gwt plugin
  via the update sites. Starting my gwt app also works fine and the
  Development Mode tab gets opened. When I connect to my app via
  firefox and login I get the following error:

  14:58:58.693 [ERROR] [MonoCore] Uncaught exception escaped
  com.google.gwt.core.client.JavaScriptException:
  (NS_ERROR_NOT_AVAILABLE): Component returned failure code: 0x80040111
  (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]
   QueryInterface: function QueryInterface() {
     [native code]
  }
   result: 2147746065
   filename:http://127.0.1.1:
   lineNumber: 104
   columnNumber: 0
   inner: null
   data: null
   initialize: function initialize() {
     [native code]
  }
     at

  com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
  elServer.java:
  195)
     at
  com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
  120)
     at
  com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
  507)
     at
  com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
  264)
     at

  com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
  ava:
  91)
     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
     at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
     at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
     at

  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
  l.java:
  25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at
  com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
     at
  com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
     at

  com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav 
  a:
  157)
     at

  com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java 
  :
  1669)
     at

  com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
  nelServer.java:
  401)
     at

  com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java 
  :
  222)
     at java.lang.Thread.run(Thread.java:619)

  I am running on a linux box (Ubuntu) and I already tried to clean and
  rebuild the project and restart firefox and eclipse but to no help. I
  also created a new launch config (right click on project  run as 
  web application). On eclipse 3.5 everything worked fine.

  Did anyone else experience this issue or has an idea what's going
  wrong here? Thanks for any help.

  Dennis

  --
  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.comgoogle-web-toolkit%2Bunsubs 
  cr...@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.



Re: Standards Mode + Decorated Popup Panel + IE == FAIL

2010-07-27 Thread randomwalk
Have the exact same problem with IE8 in standards mode. I'm not using
Decorated Popup Panel though. I wrote my own PopupWindow class that
extends PopupPanel.

On Jul 6, 5:31 pm, lineman78 linema...@gmail.com wrote:
 I am having aproblemwhere I have changed to standards mode in order
 to use layout panels, but it seems to have broken decoratedpopup
 panel inIE(thepopupshows, but the rest of the screen turns white
 behind it).  I have taken a very rough look with Firebug Lite and
 didn't see anything obvious and was just wondering if anyone else has
 seen thisproblem.  Again, I have not done a whole lot of debugging
 yet, but I am in standards mode with IE6 and a DockLayoutPanel as my
 root.  When I click on the button to pop up thepopupshows up, but
 everything else goes white, but as soon as you resize the window
 everything paints correctly again.  Is there a way to tell the browser
 to manually do a repaint maybe?

-- 
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.



Storing an object at the client during a request

2010-07-27 Thread Julius
Hello,

How can I store an object on the client side during an entire request
and make it accessible to multiple presenters in a MVP application?

I am currently retrieving the User object in a servlet filter and
putting it on the request, like so

// get User by cookie
User user = sercurityService.getCurrentUser();
// Add to request
req.setAttribute(user, user);
// Go ahead
chain.doFilter(req, res);

So, how would I now store it on the client side and access it from my
presenters?

Best, S

-- 
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.



Null values to objects after deployment.

2010-07-27 Thread v b
Hi!

I test my application on development mode and it works as I expect -
no problems.
When I deploy it on the server, some objects on the client have null
value. My objects are quite complicated with lists, for example. Is
that a problem?
Any hint?

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-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.



Why does GWT+JUnit take so long to start?

2010-07-27 Thread Felipe Baytelman
I'm implementing a big project using TDD, but it's becoming a real
pain:
JUnit takes 2 minutes to start the first test (basically, setting up).
Is there a way to speed up JUnit with GWT?

Thanks in advance,
--Felipe Baytelman

-- 
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.



enum serialization

2010-07-27 Thread mbstiburon
I have classes with inner enums such as
public class Foo implements java.io.Serializable {
  public enum Status {
ACTIVE, INACTIVE, NA
  }

  private Status status;
  public Foo() {}

  public Status getStatus(){
return this.status;
  }
  
}

When I compile (gwtc), it does not complain; however, I get the
following exception during runtime.

Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
'com.mycompany.gwt.Foo$Status' was not included in the set of types
which can be serialized by this SerializationPolicy or its Class
object could not be loaded. For security purposes, this type will not
be serialized.: instance = ACTIVE
...

Any idea?
Does gwt not able to serialize enums defined as an inner class? Do I
have to create top level enum classes?

BTW, I am using GWT 2.0.3 on OS X.

Any help on this would be greatly appreciated.

-- 
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: Writing a JS library in GWT?

2010-07-27 Thread S Rabin
I see. So when the only thing in my loadModule function is an export
call, and I export the method (via Ray Cromwell's gwt-exporter
library, which I was already using):

public void HelloTest(String id){
 DOM.getElementById(id).setInnerHTML(Hello World);
}

it should compile to 25kb plus a bootloader?  I'm not arguing that a
bootloader is a bad idea for larger code, but I was really just hoping
for a --disable bootloader compile option.

To address your concern that there is 'no possible way for the code
size to grow', and that the GWT compiler aggressively prunes dead
code, yes, I'm fully aware that it is designed to do that.  That's
why, when writing a function in GWT, I expect it to compile out to
something that doesn't exceed the size of handwritten JS for the same
purposes.  There are two options here: one, I'm missing some checkbox
(and it's not the OBFuscated option), or two, GWT is including a lot
more crap it thinks I need that I'm not aware of, hence why I'm asking
how to fix it.

As for whether I know better than Google when it comes to the
bootloader... yes, in this case, I do.  I anticipate this library to
be approximately 10kb of handwritten javascript, and I'm not doing
anything that should warrant more than 1 permutation beyond browser
specific speed optimizations.  Therefore, distributing the library as
a .js file instead of a bootloader plus 4 different permutations seems
like a better idea.

Is my only option here really to write my own linker to output one .js
file, no bootloader, no browser-specific optimizations?

On Jul 26, 12:42 pm, lineman78 linema...@gmail.com wrote:
 First, let me start by saying that people are already writing
 javascript libraries using GWT and have been for some time.  Ray
 Cromwell created the GWT exporter library for this exact purpose for
 his own usage and open sourced it.  While bootloaders seem expensive
 it is the only way to deliver the most efficient code to the client.
 There is no possible way for code size to grow when compiled because
 if you go far enough every method will eventually make it to a JSNI
 method, so what you are missing in your calculations is all the code
 supplied by google and the small overhead code involved with the
 bootloader.  However, there is a linker available to create only one
 output, but in order for this to work the compilation must result in
 only one permutation, which is almost impossible unless you know the
 browser your client will be using.  You asked: Is there a way to crop
 out all the unnecessary cruft GWT seems to think I need?.  You can
 write your own linker if you feel that you know better than google
 when it comes to the bootloader, but as far as the compiled code
 itself; the GWT compiler has very aggressive dead code elimination, so
 any output code will be used at some point.

 On Jul 26, 9:21 am, S Rabin scottra...@gmail.com wrote:



  I've done quite a bit of searching to find any information about this,
  but it seems that people are more concerned with writing GWT libraries
  to keep in GWT before compilation.

  I would like to write the libraries I frequently use in my projects in
  GWT, then compile and expose them to hand-written Javascript.  I have
  several issues with the way GWT seems to handle what I want to do:

  1) Bootstrapping.  I understand that the iframe loading method is
  highly efficient for large codebases so as to make the page non-
  blocking, but for a small library bootstrapping is overkill.  To test,
  I tried writing my TableGenerator library (a 7kb handwritten non-
  minified library) in GWT.  The result was a 6 kb deferred binding
  loader file (table.nocache.js) and 4 permutations of compiled JS
  weighing in at 20-30kb each.  Which brings me to issue #2

  2) For compiling the code, GWT seems to produce LARGER codebases.
  Fast, yes, but how does 3-5kb of source result in 20-30kb of compiled
  javascript? Is there a way to crop out all the unnecessary cruft GWT
  seems to think I need?

  3) I would prefer to not have a bootloader - I anticipate the compiled
  form of my code is going to be smaller than the bootstrap code and
  would rather it just be loaded.  Is there a compilation option to
  disable permutations and output (obviously more to handle different
  implementations) code that works in all browsers?

  Sincerely,
  Scott Rabin

-- 
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.



Is this a valid uiBinder xml file?

2010-07-27 Thread PeteUK
Hello,

Just going through the UiBinder development guide at
http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html.
The example below struck me as perhaps not being valid because there
are two widgets at the top level and when calling createAndBindUi(),
this returns just one containing element. I know this example is to do
with styling, but it just made me wonder if I'm missing something
about the binding?

!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g=urn:import:com.google.gwt.user.client.ui

  ui:style
.hot { color: magenta; }
.pretty { background-color: Skyblue; }
  /ui:style

  g:PushButton styleName='{style.pretty}'This button doesn't look
like one/g:PushButton
  g:PushButton addStyleNames='{style.pretty} {style.hot}'Push my hot
button!/g:PushButton


/ui:UiBinder

Thanks,

Pete

-- 
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: Is this a valid uiBinder xml file?

2010-07-27 Thread Christian Goudreau
You need to have only one container.

Wrap inside an HTMLPanel your two buttons and it'll be fine.

Cheers,

On Tue, Jul 27, 2010 at 10:59 AM, PeteUK newbar...@gmail.com wrote:

 Hello,

 Just going through the UiBinder development guide at
 http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html.
 The example below struck me as perhaps not being valid because there
 are two widgets at the top level and when calling createAndBindUi(),
 this returns just one containing element. I know this example is to do
 with styling, but it just made me wonder if I'm missing something
 about the binding?

 !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
 ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
 xmlns:g=urn:import:com.google.gwt.user.client.ui

  ui:style
.hot { color: magenta; }
.pretty { background-color: Skyblue; }
  /ui:style

  g:PushButton styleName='{style.pretty}'This button doesn't look
 like one/g:PushButton
  g:PushButton addStyleNames='{style.pretty} {style.hot}'Push my hot
 button!/g:PushButton


 /ui:UiBinder

 Thanks,

 Pete

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Christian Goudreau

-- 
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: enum serialization

2010-07-27 Thread Prashant
try

public enum Status *implements **java.io.**Serializable* {
 ACTIVE, INACTIVE, NA
}

-- 
Prashant
www.claymus.com

-- 
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: GWT HIBERNATE ECLIPSE

2010-07-27 Thread Sebastian Coronado A.
Hello here is it:

?xml version=1.0 encoding=UTF-8?
module rename-to='hiberpost'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name='com.google.gwt.user.User'/

  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  inherits name='com.google.gwt.user.theme.standard.Standard'/
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

  !-- Other module inherits  --

  !-- Specify the app entry point class. --
  entry-point class='com.uls.client.Hiberpost'/

  !-- Specify the paths for translatable code--
  source path='client'/
  source path='shared'/
  source path='hiber'/

/module


On 27 jul, 08:13, Arthur Kalmenson arthur.k...@gmail.com wrote:
 What does your GWT module file look like (.gwt.xml)?

 --
 Arthur Kalmenson

 On Mon, Jul 26, 2010 at 12:36 PM, Sebastian Coronado A.



 sca...@gmail.com wrote:
  Hello I am testing a gwt project using rpc to comunicate with the
  server, using hibernate and postgres, Everything compiles okey but
  when I run it as a Web Aplicacation it says the following error:

  21:41:22.992 [ERROR] [hiberpost] Errors in 'file:/Users/Sebastian/
  Documents/workspace/hiberpost/src/com/uls/client/Hiberpost.java'

  21:41:23.107 [ERROR] [hiberpost] Line 47: No source code is available
  for type com.hiber.pregunta; did you forget to inherit a required
  module?

  
  Note that if I run things as a java aplication everything works...

  Well I will atach my eclipse project ..., I hope someone can help
  me ...
  the file can be downloaded here
 http://www.2shared.com/file/HLbCuBi1/hiberpost.html
  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 
  athttp://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.



IE Bookmarks IFrame src issue.

2010-07-27 Thread Sony
A truly idiotic bunch at Microsoft must have decided this was a great
idea:  If you open an IE Bookmark in a text editor you will see it
records an IFrame's src at the time the bookmark was created.  When
using said bookmark next time around, IE makes a request of the
IFrame's src without even checking if the src for that IFrame has
changed in the newly requested page  so if and only if the
previously recorded src fails to load (either from cache or from
server) does it try loading the new src that the IFrame tag now
carries.

This is actually a major problem for our GWT web-app - as we release
every quarter and we employ GWT's 'perfect caching' strategy i.e.
cache policy of forever for all *.cache.* files.  Both IE6  IE8 end
up requesting and then loading from cache the older version of our
cache.html resulting in various incompatibility exceptions.  For now
we just let users know to delete the bookmark and recreate it in these
types of situations.

Any help in fixing this issue would be appreciated.  I've tried
replacing the iframe-linker with the cross-site linker which works but
then code-splitting is not supported (which we rely on heavily).

Thanks much
Sony

-- 
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: IE Bookmarks IFrame src issue.

2010-07-27 Thread Jeff Chimene
On 07/27/2010 08:53 AM, Sony wrote:
 A truly idiotic bunch at Microsoft must have decided this was a great
 idea:  If you open an IE Bookmark in a text editor you will see it
 records an IFrame's src at the time the bookmark was created.  When
 using said bookmark next time around, IE makes a request of the
 IFrame's src without even checking if the src for that IFrame has
 changed in the newly requested page  so if and only if the
 previously recorded src fails to load (either from cache or from
 server) does it try loading the new src that the IFrame tag now
 carries.
 
 This is actually a major problem for our GWT web-app - as we release
 every quarter and we employ GWT's 'perfect caching' strategy i.e.
 cache policy of forever for all *.cache.* files.  Both IE6  IE8 end
 up requesting and then loading from cache the older version of our
 cache.html resulting in various incompatibility exceptions.  For now
 we just let users know to delete the bookmark and recreate it in these
 types of situations.
 
 Any help in fixing this issue would be appreciated.  I've tried
 replacing the iframe-linker with the cross-site linker which works but
 then code-splitting is not supported (which we rely on heavily).
 
 Thanks much
 Sony
 

You can set the cache properties using .htaccess or, if you control the
httpd server, in that software's domain settings.

-- 
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.



Upgrade problems with GWT 2.0.4

2010-07-27 Thread skippy
It looks like the methods DialogBox.setGlassEnabled and
HighlightedFlexTable.removeAllRows may cause problems in version
2.0.4.  I reverted to version 2.0.3 and was able to compile the
classes using those methods successfully.

Are there release notes that I am missing that explains this change?

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.



Where can I put a File to be read/write from RPC Servlet ?

2010-07-27 Thread Jose Luis Estrella Campaña
Good day everybody,

I have this particular need, where I need to have a file (xml) within
my GWT app. I have some data in this xml I must read, change, and then
write (update)
The file must be delivered or included within the Gwt App. Can anybody
please tell me where can I place this file, so I can read/write it
using java's file APi from an RPC Servlet.

Here's a brief description of how my App's directory structure looks
like:

GwtApp
|__ src
|  |__org
|  |   |__jose
|  | |__client
|  | |__server
|  | |__shared
|  |
|  |__META-INF
|
|__ war
  |__gwtapp
  |__WEB-INF

For my current needs, where would you suggest placing the file ?

Thank you very much in advance,

Have a nice day,

Jose


-- 
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: Writing a JS library in GWT?

2010-07-27 Thread lineman78
Once the GWT compile completes, it is up to the linker to decide how
to package it.  The single script linker should behave how you would
like, but you will have to make sure that deferred binding is never
used in your code unless only one permutation is possible.  The
default linker is an iframe linker, which is the bootloader you are
talking about.  Google knew some people wouldn't like this and would
like to do exactly what you are saying, which is why they maintain the
SingleScriptLinker.  If it doesn't behave exactly as you would like
you may have to pull the source down and modify it to fit your needs.
There needs to be exactly one primary linker, therefore there is no
disable bootloader compile option because a linker must be provided in
order for GWT to know how to distribute and load the code.

http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/core/linker/SingleScriptLinker.html

On Jul 26, 4:54 pm, S Rabin scottra...@gmail.com wrote:
 I see. So when the only thing in my loadModule function is an export
 call, and I export the method (via Ray Cromwell's gwt-exporter
 library, which I was already using):

 public void HelloTest(String id){
      DOM.getElementById(id).setInnerHTML(Hello World);

 }

 it should compile to 25kb plus a bootloader?  I'm not arguing that a
 bootloader is a bad idea for larger code, but I was really just hoping
 for a --disable bootloader compile option.

 To address your concern that there is 'no possible way for the code
 size to grow', and that the GWT compiler aggressively prunes dead
 code, yes, I'm fully aware that it is designed to do that.  That's
 why, when writing a function in GWT, I expect it to compile out to
 something that doesn't exceed the size of handwritten JS for the same
 purposes.  There are two options here: one, I'm missing some checkbox
 (and it's not the OBFuscated option), or two, GWT is including a lot
 more crap it thinks I need that I'm not aware of, hence why I'm asking
 how to fix it.

 As for whether I know better than Google when it comes to the
 bootloader... yes, in this case, I do.  I anticipate this library to
 be approximately 10kb of handwritten javascript, and I'm not doing
 anything that should warrant more than 1 permutation beyond browser
 specific speed optimizations.  Therefore, distributing the library as
 a .js file instead of a bootloader plus 4 different permutations seems
 like a better idea.

 Is my only option here really to write my own linker to output one .js
 file, no bootloader, no browser-specific optimizations?

 On Jul 26, 12:42 pm, lineman78 linema...@gmail.com wrote:

  First, let me start by saying that people are already writing
  javascript libraries using GWT and have been for some time.  Ray
  Cromwell created the GWT exporter library for this exact purpose for
  his own usage and open sourced it.  While bootloaders seem expensive
  it is the only way to deliver the most efficient code to the client.
  There is no possible way for code size to grow when compiled because
  if you go far enough every method will eventually make it to a JSNI
  method, so what you are missing in your calculations is all the code
  supplied by google and the small overhead code involved with the
  bootloader.  However, there is a linker available to create only one
  output, but in order for this to work the compilation must result in
  only one permutation, which is almost impossible unless you know the
  browser your client will be using.  You asked: Is there a way to crop
  out all the unnecessary cruft GWT seems to think I need?.  You can
  write your own linker if you feel that you know better than google
  when it comes to the bootloader, but as far as the compiled code
  itself; the GWT compiler has very aggressive dead code elimination, so
  any output code will be used at some point.

  On Jul 26, 9:21 am, S Rabin scottra...@gmail.com wrote:

   I've done quite a bit of searching to find any information about this,
   but it seems that people are more concerned with writing GWT libraries
   to keep in GWT before compilation.

   I would like to write the libraries I frequently use in my projects in
   GWT, then compile and expose them to hand-written Javascript.  I have
   several issues with the way GWT seems to handle what I want to do:

   1) Bootstrapping.  I understand that the iframe loading method is
   highly efficient for large codebases so as to make the page non-
   blocking, but for a small library bootstrapping is overkill.  To test,
   I tried writing my TableGenerator library (a 7kb handwritten non-
   minified library) in GWT.  The result was a 6 kb deferred binding
   loader file (table.nocache.js) and 4 permutations of compiled JS
   weighing in at 20-30kb each.  Which brings me to issue #2

   2) For compiling the code, GWT seems to produce LARGER codebases.
   Fast, yes, but how does 3-5kb of source result in 20-30kb of compiled
   javascript? Is there a way to crop out all 

Re: Is this a valid uiBinder xml file?

2010-07-27 Thread PeteUK
Christian,

Thanks for confirming I wasn't missing something.

Pete

On 27 July, 16:01, Christian Goudreau goudreau.christ...@gmail.com
wrote:
 You need to have only one container.

 Wrap inside an HTMLPanel your two buttons and it'll be fine.

 Cheers,



 On Tue, Jul 27, 2010 at 10:59 AM, PeteUK newbar...@gmail.com wrote:
  Hello,

  Just going through the UiBinder development guide at
 http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html.
  The example below struck me as perhaps not being valid because there
  are two widgets at the top level and when calling createAndBindUi(),
  this returns just one containing element. I know this example is to do
  with styling, but it just made me wonder if I'm missing something
  about the binding?

  !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
  ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
  xmlns:g=urn:import:com.google.gwt.user.client.ui

   ui:style
     .hot { color: magenta; }
     .pretty { background-color: Skyblue; }
   /ui:style

   g:PushButton styleName='{style.pretty}'This button doesn't look
  like one/g:PushButton
   g:PushButton addStyleNames='{style.pretty} {style.hot}'Push my hot
  button!/g:PushButton

  /ui:UiBinder

  Thanks,

  Pete

  --
  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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Christian Goudreau

-- 
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: Standards Mode + Decorated Popup Panel + IE == FAIL

2010-07-27 Thread lineman78
I can confirm that this did fix the problem.

On Jul 27, 10:38 am, lineman78 linema...@gmail.com wrote:
 According to this bug it has been fixed in 2.0.4, I will try updating
 and let you know if it worked:

 http://code.google.com/p/google-web-toolkit/issues/detail?id=4532can...

 On Jul 27, 3:15 am, randomwalk ligaomob...@gmail.com wrote:

  Have the exact same problem with IE8 in standards mode. I'm not using
  Decorated Popup Panel though. I wrote my own PopupWindow class that
  extends PopupPanel.

  On Jul 6, 5:31 pm, lineman78 linema...@gmail.com wrote:

   I am having aproblemwhere I have changed to standards mode in order
   to use layout panels, but it seems to have broken decoratedpopup
   panel inIE(thepopupshows, but the rest of the screen turns white
   behind it).  I have taken a very rough look with Firebug Lite and
   didn't see anything obvious and was just wondering if anyone else has
   seen thisproblem.  Again, I have not done a whole lot of debugging
   yet, but I am in standards mode with IE6 and a DockLayoutPanel as my
   root.  When I click on the button to pop up thepopupshows up, but
   everything else goes white, but as soon as you resize the window
   everything paints correctly again.  Is there a way to tell the browser
   to manually do a repaint maybe?

-- 
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: HTML5 Offline GWT APP

2010-07-27 Thread Julio Faerman
The problem is finding out which files are cached and how... i don't
know if there is any tool that show you that.

On Jul 27, 10:51 am, Shawn Brown big.coffee.lo...@gmail.com wrote:
  It seems to be working, but debugging is not easy.

 Why is that?

 Can't you use Firebug, the Error console in Safari or the Dev console
 in chrome to display logging?

 Sorry if it's a dumb question but ...

 Anyway thanks!

 Shawn

-- 
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: iframe JS code linker

2010-07-27 Thread opichals
Hi!

Thanks for the answer!

I didn't even mention the sandbox environment as that seemed quite
obvious at the first sight. But I was kind of thinking to read about
some JS codebase size related advantages that could be implied... The
caching issues are definitely interesting, but that's not a reason for
a separate JS code iframe on its own.

Best Regards
Standa


On Jul 21, 4:13 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 20 juil, 17:06, opichals opich...@gmail.com wrote:

  Hi!

  Commonly JS frameworks' .js files are simply added to the .html file
  as script tags. GWT linker by default creates aniframethat contains
  all the JS code script tags inside kept separate from the rest of the
  application page markup. I have been searching for the reason that led
  to having that separateiframefor the generated JavaScript
  application code and found no answer for on the web.

  I can imagine it is useful for modularization reasons... basically to
  simplify the application linker and HTML generation process.

  I fail to see any other reason for this. Is it just the linker reason
  or is there some other e.g. performance benefit or something that
  would be further motivation to have the JS code in a separateiframe?

 There are two reasons IIRC:
  -iframegives you a sandbox for free, so you don't mess with other
 scripts in the web page *and* they don't mess with your script (note
 that the XS linker uses the module pattern, so it shouldn't a
 problem either, except maybe when you also use runAsync)
  - some browsers (particularly those coming from Redmond) won't cache
 gzipped *.js files coming from SSL/TLS, but will cache *.html (this is
 from memory, it might be unrelated to gzipping or to SSL/TLS, but it's
 at least one of those)

-- 
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.



Managing History with two tab panels

2010-07-27 Thread skippy
I am using a two row tab panel and am trying to incorporate history
for back and forward navigations. I have reviewed and implemented some
of the code in the CodingBasics - History - GWT - Google Code.

I can back up on the lower tab panel, but I can't seem to back up past
the top panel.

This sounds like a complicated design.

Anyone with some thoughts/ design patterns on the topic?

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.



Re: IE Bookmarks IFrame src issue.

2010-07-27 Thread Greg Dougherty
Can they do that ONLY for IE 6  8?  Because it doesn't look like they
want to stop caching, they want the bookmark to stop going to the old
iFrame source.

Greg

On Jul 27, 11:04 am, Jeff Chimene jchim...@gmail.com wrote:
 On 07/27/2010 08:53 AM, Sony wrote:



  A truly idiotic bunch at Microsoft must have decided this was a great
  idea:  If you open an IE Bookmark in a text editor you will see it
  records an IFrame's src at the time the bookmark was created.  When
  using said bookmark next time around, IE makes a request of the
  IFrame's src without even checking if the src for that IFrame has
  changed in the newly requested page  so if and only if the
  previously recorded src fails to load (either from cache or from
  server) does it try loading the new src that the IFrame tag now
  carries.

  This is actually a major problem for our GWT web-app - as we release
  every quarter and we employ GWT's 'perfect caching' strategy i.e.
  cache policy of forever for all *.cache.* files.  Both IE6  IE8 end
  up requesting and then loading from cache the older version of our
  cache.html resulting in various incompatibility exceptions.  For now
  we just let users know to delete the bookmark and recreate it in these
  types of situations.

  Any help in fixing this issue would be appreciated.  I've tried
  replacing the iframe-linker with the cross-site linker which works but
  then code-splitting is not supported (which we rely on heavily).

  Thanks much
  Sony

 You can set the cache properties using .htaccess or, if you control the
 httpd server, in that software's domain settings.

-- 
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: Bug in calculating “Absolute top” position u sing GWT framework

2010-07-27 Thread lineman78
Are you sure that the problem is the getAbsoluteTop method, or is it
muliplying the + 10 for you without you knowing and messing things
up.  Try taking out the +10 and see if it consistently shows on the
top left.

On Jul 27, 2:19 am, Ragothaman Thanikachalam gwtforum4r...@gmail.com
wrote:
 In ie7 browser set zooming level 100%, and open GWT showcase
 application.http://ongwt.googlecode.com/svn/trunk/com.google.gwt.sample.showcase

 Click “Show Basic Popup” button. Now the popup panel opens over this
 button.
 Change the zoom level to 125%
 Continue the previous step.
 Now the popup panel position looks strange.

 But in IE8 its works perfect.
 Can any one help me to resolve this problem?

 Thanks
 Ragoth…

-- 
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: IE Bookmarks IFrame src issue.

2010-07-27 Thread Jeff Chimene
On 07/27/2010 10:29 AM, Greg Dougherty wrote:
 Can they do that ONLY for IE 6  8?  Because it doesn't look like they
 want to stop caching, they want the bookmark to stop going to the old
 iFrame source.
 
 Greg

Then they'll also have to work with RewriteCond, which is an ugly
solution. Were it me, I'd back up and try another path. But it isn't,
and I'm not.

 
 On Jul 27, 11:04 am, Jeff Chimene jchim...@gmail.com wrote:
 On 07/27/2010 08:53 AM, Sony wrote:



 A truly idiotic bunch at Microsoft must have decided this was a great
 idea:  If you open an IE Bookmark in a text editor you will see it
 records an IFrame's src at the time the bookmark was created.  When
 using said bookmark next time around, IE makes a request of the
 IFrame's src without even checking if the src for that IFrame has
 changed in the newly requested page  so if and only if the
 previously recorded src fails to load (either from cache or from
 server) does it try loading the new src that the IFrame tag now
 carries.

 This is actually a major problem for our GWT web-app - as we release
 every quarter and we employ GWT's 'perfect caching' strategy i.e.
 cache policy of forever for all *.cache.* files.  Both IE6  IE8 end
 up requesting and then loading from cache the older version of our
 cache.html resulting in various incompatibility exceptions.  For now
 we just let users know to delete the bookmark and recreate it in these
 types of situations.

 Any help in fixing this issue would be appreciated.  I've tried
 replacing the iframe-linker with the cross-site linker which works but
 then code-splitting is not supported (which we rely on heavily).

 Thanks much
 Sony

 You can set the cache properties using .htaccess or, if you control the
 httpd server, in that software's domain settings.
 

-- 
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: Standards Mode + Decorated Popup Panel + IE == FAIL

2010-07-27 Thread randomwalk
Thanks for the update. That did fix the problem.

On Jul 27, 9:51 am, lineman78 linema...@gmail.com wrote:
 I can confirm that this did fix theproblem.

 On Jul 27, 10:38 am, lineman78 linema...@gmail.com wrote:



  According to this bug it has been fixed in 2.0.4, I will try updating
  and let you know if it worked:

 http://code.google.com/p/google-web-toolkit/issues/detail?id=4532can...

  On Jul 27, 3:15 am, randomwalk ligaomob...@gmail.com wrote:

   Have the exact sameproblemwith IE8 in standards mode. I'm not using
   DecoratedPopupPanel though. I wrote my own PopupWindow class that
   extends PopupPanel.

   On Jul 6, 5:31 pm, lineman78 linema...@gmail.com wrote:

I am having aproblemwhere I have changed to standards mode in order
to use layout panels, but it seems to have broken decoratedpopup
panel inIE(thepopupshows, but the rest of the screen turns white
behind it).  I have taken a very rough look with Firebug Lite and
didn't see anything obvious and was just wondering if anyone else has
seen thisproblem.  Again, I have not done a whole lot of debugging
yet, but I am in standards mode with IE6 and a DockLayoutPanel as my
root.  When I click on the button to pop up thepopupshows up, but
everything else goes white, but as soon as you resize the window
everything paints correctly again.  Is there a way to tell the browser
to manually do a repaint maybe?

-- 
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: Where can I put a File to be read/write from RPC Servlet ?

2010-07-27 Thread dane.molotok
I guess I'm missing something in the question. Have you tried some
things and it's not working like you'd expect? I would think you could
put it in src/org/jose/server.

On Jul 27, 11:21 am, Jose Luis Estrella Campaña jlecamp...@gmail.com
wrote:
 Good day everybody,

 I have this particular need, where I need to have a file (xml) within
 my GWT app. I have some data in this xml I must read, change, and then
 write (update)
 The file must be delivered or included within the Gwt App. Can anybody
 please tell me where can I place this file, so I can read/write it
 using java's file APi from an RPC Servlet.

 Here's a brief description of how my App's directory structure looks
 like:

 GwtApp
             |__ src
             |          |__org
             |          |       |__jose
             |          |                 |__client
             |          |                 |__server
             |          |                 |__shared
             |          |
             |          |__META-INF
             |
             |__ war
                       |__gwtapp
                       |__WEB-INF

 For my current needs, where would you suggest placing the file ?

 Thank you very much in advance,

 Have a nice day,

 Jose

-- 
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: Why does GWT+JUnit take so long to start?

2010-07-27 Thread Miroslav Genov
 I suggest you to take a look into MVP pattern. It will speed things 
up. About the UI interface and visualization, you can take a look into a 
webdriver or selenium. Both of them may test user interactions with the UI.


On 27.7.2010 г. 09:53 ч., Felipe Baytelman wrote:

I'm implementing a big project using TDD, but it's becoming a real
pain:
JUnit takes 2 minutes to start the first test (basically, setting up).
Is there a way to speed up JUnit with GWT?

Thanks in advance,
--Felipe Baytelman



--
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: GWT 2.1 how to customize style for TextColumn

2010-07-27 Thread Ted
Hi Christian,

Thanks for the link.  The Column object doesn't appear to have a way
to set the style.  There are no setStyleName or addStyleNames methods
to call as in UIObject.  I am hoping there is an alternative way but I
cannot discover it yet.

Thanks,
Ted

On Jul 27, 9:18 am, Christian Goudreau goudreau.christ...@gmail.com
wrote:
 http://stackoverflow.com/questions/2891803/how-to-use-gwt-2-1-data-pr...

 As for customization, use the same technique as for any other widget.

 Cheers,

 On Tue, Jul 27, 2010 at 10:04 AM, Deepak Singh 
 deepaksingh...@gmail.comwrote:





  Hello,

  I have to use this data presentation widget for my project. Can anybody
  help me how to use it or any sample code for that would be very helpful.

  Regards
  Deepak

  On Tue, Jul 27, 2010 at 2:07 AM, Ted ted.slus...@gmail.com wrote:

  Hello,

  Does anyone have a suggestion for the preferred way to customize a
  style for a given cell using a TextColumn with the new Data
  Presentation Widgets framework in GWT 2.1?

  Thanks,
  Ted

  --
  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.comgoogle-web-toolkit%2Bunsubs
   cr...@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.comgoogle-web-toolkit%2Bunsubs 
  cr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Christian Goudreau

-- 
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: GWT 2.1 how to customize style for TextColumn

2010-07-27 Thread Christian Goudreau
You're right, but if a row can have his style changed, I bet a Cell can too.

Give me 10 minutes, I'll do a fast check, I'm also right into this stuff
right now.

Cheers,

On Tue, Jul 27, 2010 at 2:37 PM, Ted ted.slus...@gmail.com wrote:

 Hi Christian,

 Thanks for the link.  The Column object doesn't appear to have a way
 to set the style.  There are no setStyleName or addStyleNames methods
 to call as in UIObject.  I am hoping there is an alternative way but I
 cannot discover it yet.

 Thanks,
 Ted

 On Jul 27, 9:18 am, Christian Goudreau goudreau.christ...@gmail.com
 wrote:
  http://stackoverflow.com/questions/2891803/how-to-use-gwt-2-1-data-pr...
 
  As for customization, use the same technique as for any other widget.
 
  Cheers,
 
  On Tue, Jul 27, 2010 at 10:04 AM, Deepak Singh deepaksingh...@gmail.com
 wrote:
 
 
 
 
 
   Hello,
 
   I have to use this data presentation widget for my project. Can anybody
   help me how to use it or any sample code for that would be very
 helpful.
 
   Regards
   Deepak
 
   On Tue, Jul 27, 2010 at 2:07 AM, Ted ted.slus...@gmail.com wrote:
 
   Hello,
 
   Does anyone have a suggestion for the preferred way to customize a
   style for a given cell using a TextColumn with the new Data
   Presentation Widgets framework in GWT 2.1?
 
   Thanks,
   Ted
 
   --
   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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  Christian Goudreau

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Christian Goudreau

-- 
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: GWT 2.1 how to customize style for TextColumn

2010-07-27 Thread Christian Goudreau
Ok, in CellTable you have a function for this : ct.addColumnStyleName().
That would change the column number.

But need more infomrations, you want to set the style of a single cell or of
an entire row ?

Cheers,

On Tue, Jul 27, 2010 at 2:41 PM, Christian Goudreau 
goudreau.christ...@gmail.com wrote:

 You're right, but if a row can have his style changed, I bet a Cell can
 too.

 Give me 10 minutes, I'll do a fast check, I'm also right into this stuff
 right now.

 Cheers,


 On Tue, Jul 27, 2010 at 2:37 PM, Ted ted.slus...@gmail.com wrote:

 Hi Christian,

 Thanks for the link.  The Column object doesn't appear to have a way
 to set the style.  There are no setStyleName or addStyleNames methods
 to call as in UIObject.  I am hoping there is an alternative way but I
 cannot discover it yet.

 Thanks,
 Ted

 On Jul 27, 9:18 am, Christian Goudreau goudreau.christ...@gmail.com
 wrote:
  http://stackoverflow.com/questions/2891803/how-to-use-gwt-2-1-data-pr.
 ..
 
  As for customization, use the same technique as for any other widget.
 
  Cheers,
 
  On Tue, Jul 27, 2010 at 10:04 AM, Deepak Singh 
 deepaksingh...@gmail.comwrote:
 
 
 
 
 
   Hello,
 
   I have to use this data presentation widget for my project. Can
 anybody
   help me how to use it or any sample code for that would be very
 helpful.
 
   Regards
   Deepak
 
   On Tue, Jul 27, 2010 at 2:07 AM, Ted ted.slus...@gmail.com wrote:
 
   Hello,
 
   Does anyone have a suggestion for the preferred way to customize a
   style for a given cell using a TextColumn with the new Data
   Presentation Widgets framework in GWT 2.1?
 
   Thanks,
   Ted
 
   --
   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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  Christian Goudreau

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




 --
 Christian Goudreau




-- 
Christian Goudreau

-- 
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: GWT 2.1 how to customize style for TextColumn

2010-07-27 Thread Christian Goudreau
Else for a row. ct.getRowElement(i).setAttribute(style, width: 200px;);

For now, those are the only thing a could see

On Tue, Jul 27, 2010 at 2:51 PM, Christian Goudreau 
goudreau.christ...@gmail.com wrote:

 Ok, in CellTable you have a function for this : ct.addColumnStyleName().
 That would change the column number.

 But need more infomrations, you want to set the style of a single cell or
 of an entire row ?

 Cheers,


 On Tue, Jul 27, 2010 at 2:41 PM, Christian Goudreau 
 goudreau.christ...@gmail.com wrote:

 You're right, but if a row can have his style changed, I bet a Cell can
 too.

 Give me 10 minutes, I'll do a fast check, I'm also right into this stuff
 right now.

 Cheers,


 On Tue, Jul 27, 2010 at 2:37 PM, Ted ted.slus...@gmail.com wrote:

 Hi Christian,

 Thanks for the link.  The Column object doesn't appear to have a way
 to set the style.  There are no setStyleName or addStyleNames methods
 to call as in UIObject.  I am hoping there is an alternative way but I
 cannot discover it yet.

 Thanks,
 Ted

 On Jul 27, 9:18 am, Christian Goudreau goudreau.christ...@gmail.com
 wrote:
  http://stackoverflow.com/questions/2891803/how-to-use-gwt-2-1-data-pr.
 ..
 
  As for customization, use the same technique as for any other widget.
 
  Cheers,
 
  On Tue, Jul 27, 2010 at 10:04 AM, Deepak Singh 
 deepaksingh...@gmail.comwrote:
 
 
 
 
 
   Hello,
 
   I have to use this data presentation widget for my project. Can
 anybody
   help me how to use it or any sample code for that would be very
 helpful.
 
   Regards
   Deepak
 
   On Tue, Jul 27, 2010 at 2:07 AM, Ted ted.slus...@gmail.com wrote:
 
   Hello,
 
   Does anyone have a suggestion for the preferred way to customize a
   style for a given cell using a TextColumn with the new Data
   Presentation Widgets framework in GWT 2.1?
 
   Thanks,
   Ted
 
   --
   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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  Christian Goudreau

 --
 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
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




 --
 Christian Goudreau




 --
 Christian Goudreau




-- 
Christian Goudreau

-- 
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: GWT 2.1 how to customize style for TextColumn

2010-07-27 Thread Ted
Hi Christian,

When I override the render object of Column I can nest a span inside
the td for that cell.  This way I can control the style of the
span.  However if there is a way to control the style of the td I
would be interested in what you can discover.

Thanks,
Ted

On Jul 27, 1:41 pm, Christian Goudreau goudreau.christ...@gmail.com
wrote:
 You're right, but if a row can have his style changed, I bet a Cell can too.

 Give me 10 minutes, I'll do a fast check, I'm also right into this stuff
 right now.

 Cheers,





 On Tue, Jul 27, 2010 at 2:37 PM, Ted ted.slus...@gmail.com wrote:
  Hi Christian,

  Thanks for the link.  The Column object doesn't appear to have a way
  to set the style.  There are no setStyleName or addStyleNames methods
  to call as in UIObject.  I am hoping there is an alternative way but I
  cannot discover it yet.

  Thanks,
  Ted

  On Jul 27, 9:18 am, Christian Goudreau goudreau.christ...@gmail.com
  wrote:
  http://stackoverflow.com/questions/2891803/how-to-use-gwt-2-1-data-pr...

   As for customization, use the same technique as for any other widget.

   Cheers,

   On Tue, Jul 27, 2010 at 10:04 AM, Deepak Singh deepaksingh...@gmail.com
  wrote:

Hello,

I have to use this data presentation widget for my project. Can anybody
help me how to use it or any sample code for that would be very
  helpful.

Regards
Deepak

On Tue, Jul 27, 2010 at 2:07 AM, Ted ted.slus...@gmail.com wrote:

Hello,

Does anyone have a suggestion for the preferred way to customize a
style for a given cell using a TextColumn with the new Data
Presentation Widgets framework in GWT 2.1?

Thanks,
Ted

--
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.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
  cr...@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.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
  cr...@googlegroups.com
.
For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=en.

   --
   Christian Goudreau

  --
  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.comgoogle-web-toolkit%2Bunsubs 
  cr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Christian Goudreau

-- 
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: Where can I put a File to be read/write from RPC Servlet ?

2010-07-27 Thread Jose Luis Estrella Campaña
Hello dane !

You're right in assuming something it's not working. Here's the
thing... I need to read from the xml file so I can perform some
operations on it and then save it again, here's the code I'm trying to
get to work:

import 

public class GreetingServiceImpl extends RemoteServiceServlet
implements
GreetingService {
public String greetServer(String input) throws
IllegalArgumentException {

FileInputStream fin;

try {
fin = new FileInputStream (users.xml);
System.out.println( new DataInputStream(fin).readLine() );
fin.close();
} catch (IOException e) {
System.err.println (Unable to read from file);
System.exit(-1);
}
return success reading file;

}
}

And here's the exception I'm getting:

Unable to read from file
.
.
.
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission exitVM.-1)


--

This last test was performed putting the file where you suggested.
(src/org/jose/server. )

Thank you very much,

Jose.


On Jul 27, 1:13 pm, dane.molotok dane.molo...@gmail.com wrote:
 I guess I'm missing something in the question. Have you tried some
 things and it's not working like you'd expect? I would think you could
 put it in src/org/jose/server.

 On Jul 27, 11:21 am, Jose Luis Estrella Campaña jlecamp...@gmail.com
 wrote:



  Good day everybody,

  I have this particular need, where I need to have a file (xml) within
  my GWT app. I have some data in this xml I must read, change, and then
  write (update)
  The file must be delivered or included within the Gwt App. Can anybody
  please tell me where can I place this file, so I can read/write it
  using java's file APi from an RPC Servlet.

  Here's a brief description of how my App's directory structure looks
  like:

  GwtApp
              |__ src
              |          |__org
              |          |       |__jose
              |          |                 |__client
              |          |                 |__server
              |          |                 |__shared
              |          |
              |          |__META-INF
              |
              |__ war
                        |__gwtapp
                        |__WEB-INF

  For my current needs, where would you suggest placing the file ?

  Thank you very much in advance,

  Have a nice day,

  Jose

-- 
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: Where can I put a File to be read/write from RPC Servlet ?

2010-07-27 Thread skippy
I would put the file in the WEB-INF/XML/
change the path to the file to xml/users.xml or /xml/user.xml

On Jul 27, 1:57 pm, Jose Luis Estrella Campaña jlecamp...@gmail.com
wrote:
 Hello dane !

 You're right in assuming something it's not working. Here's the
 thing... I need to read from the xml file so I can perform some
 operations on it and then save it again, here's the code I'm trying to
 get to work:

 import 

 public class GreetingServiceImpl extends RemoteServiceServlet
 implements
                 GreetingService {
         public String greetServer(String input) throws
 IllegalArgumentException {

                 FileInputStream fin;

                 try {
                     fin = new FileInputStream (users.xml);
                     System.out.println( new DataInputStream(fin).readLine() );
                     fin.close();
                     } catch (IOException e) {
                         System.err.println (Unable to read from file);
                         System.exit(-1);
                     }
                 return success reading file;

         }

 }

 And here's the exception I'm getting:

 Unable to read from file
 .
 .
 .
 Caused by: java.security.AccessControlException: access denied
 (java.lang.RuntimePermission exitVM.-1)

 ---­---­

 This last test was performed putting the file where you suggested.
 (src/org/jose/server. )

 Thank you very much,

 Jose.

 On Jul 27, 1:13 pm, dane.molotok dane.molo...@gmail.com wrote:



  I guess I'm missing something in the question. Have you tried some
  things and it's not working like you'd expect? I would think you could
  put it in src/org/jose/server.

  On Jul 27, 11:21 am, Jose Luis Estrella Campaña jlecamp...@gmail.com
  wrote:

   Good day everybody,

   I have this particular need, where I need to have a file (xml) within
   my GWT app. I have some data in this xml I must read, change, and then
   write (update)
   The file must be delivered or included within the Gwt App. Can anybody
   please tell me where can I place this file, so I can read/write it
   using java's file APi from an RPC Servlet.

   Here's a brief description of how my App's directory structure looks
   like:

   GwtApp
               |__ src
               |          |__org
               |          |       |__jose
               |          |                 |__client
               |          |                 |__server
               |          |                 |__shared
               |          |
               |          |__META-INF
               |
               |__ war
                         |__gwtapp
                         |__WEB-INF

   For my current needs, where would you suggest placing the file ?

   Thank you very much in advance,

   Have a nice day,

   Jose- 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: Where can I put a File to be read/write from RPC Servlet ?

2010-07-27 Thread skippy
If that does not work, ping me again and I will provide a code sample.


On Jul 27, 2:09 pm, skippy a...@2lehmans.com wrote:
 I would put the file in the WEB-INF/XML/
 change the path to the file to xml/users.xml or /xml/user.xml

 On Jul 27, 1:57 pm, Jose Luis Estrella Campaña jlecamp...@gmail.com
 wrote:



  Hello dane !

  You're right in assuming something it's not working. Here's the
  thing... I need to read from the xml file so I can perform some
  operations on it and then save it again, here's the code I'm trying to
  get to work:

  import 

  public class GreetingServiceImpl extends RemoteServiceServlet
  implements
                  GreetingService {
          public String greetServer(String input) throws
  IllegalArgumentException {

                  FileInputStream fin;

                  try {
                      fin = new FileInputStream (users.xml);
                      System.out.println( new DataInputStream(fin).readLine() 
  );
                      fin.close();
                      } catch (IOException e) {
                          System.err.println (Unable to read from file);
                          System.exit(-1);
                      }
                  return success reading file;

          }

  }

  And here's the exception I'm getting:

  Unable to read from file
  .
  .
  .
  Caused by: java.security.AccessControlException: access denied
  (java.lang.RuntimePermission exitVM.-1)

  ---­­--­-­

  This last test was performed putting the file where you suggested.
  (src/org/jose/server. )

  Thank you very much,

  Jose.

  On Jul 27, 1:13 pm, dane.molotok dane.molo...@gmail.com wrote:

   I guess I'm missing something in the question. Have you tried some
   things and it's not working like you'd expect? I would think you could
   put it in src/org/jose/server.

   On Jul 27, 11:21 am, Jose Luis Estrella Campaña jlecamp...@gmail.com
   wrote:

Good day everybody,

I have this particular need, where I need to have a file (xml) within
my GWT app. I have some data in this xml I must read, change, and then
write (update)
The file must be delivered or included within the Gwt App. Can anybody
please tell me where can I place this file, so I can read/write it
using java's file APi from an RPC Servlet.

Here's a brief description of how my App's directory structure looks
like:

GwtApp
            |__ src
            |          |__org
            |          |       |__jose
            |          |                 |__client
            |          |                 |__server
            |          |                 |__shared
            |          |
            |          |__META-INF
            |
            |__ war
                      |__gwtapp
                      |__WEB-INF

For my current needs, where would you suggest placing the file ?

Thank you very much in advance,

Have a nice day,

Jose- 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: IE Bookmarks IFrame src issue.

2010-07-27 Thread Sony
Greg, you understand correctly.  IE attempts to load the
older.cache.html that was recorded as the src of the iframe when the
page was bookmarked instead of the src as it exists currently on the
requested page resulting in incompatibility exceptions with the newer
version on the server.  The older.cache.html still resides in IE cache
as it was sent with a cache header equivalent of forever.

Sony

On Jul 27, 12:29 pm, Greg Dougherty dougherty.greg...@mayo.edu
wrote:
 Can they do that ONLY for IE 6  8?  Because it doesn't look like they
 want to stop caching, they want the bookmark to stop going to the old
 iFrame source.

 Greg

 On Jul 27, 11:04 am, Jeff Chimene jchim...@gmail.com wrote:



  On 07/27/2010 08:53 AM, Sony wrote:

   A truly idiotic bunch at Microsoft must have decided this was a great
   idea:  If you open an IE Bookmark in a text editor you will see it
   records an IFrame's src at the time the bookmark was created.  When
   using said bookmark next time around, IE makes a request of the
   IFrame's src without even checking if the src for that IFrame has
   changed in the newly requested page  so if and only if the
   previously recorded src fails to load (either from cache or from
   server) does it try loading the new src that the IFrame tag now
   carries.

   This is actually a major problem for our GWT web-app - as we release
   every quarter and we employ GWT's 'perfect caching' strategy i.e.
   cache policy of forever for all *.cache.* files.  Both IE6  IE8 end
   up requesting and then loading from cache the older version of our
   cache.html resulting in various incompatibility exceptions.  For now
   we just let users know to delete the bookmark and recreate it in these
   types of situations.

   Any help in fixing this issue would be appreciated.  I've tried
   replacing the iframe-linker with the cross-site linker which works but
   then code-splitting is not supported (which we rely on heavily).

   Thanks much
   Sony

  You can set the cache properties using .htaccess or, if you control the
  httpd server, in that software's domain settings.

-- 
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.



Web service call

2010-07-27 Thread Deepak Singh
Hi,

With GWT 2.1

My requirement is, I have to connect to different airlines thorugh their web
services at the same time to search for available flights and then display
the search result on my page.response
I have wsdl files for all of them and methods to invoke and set request as
xml string and get response as xml string. I have to do this search very
very fast to get the response in 2 seconds from all the airlines. Kindly
suggest the best approach to follow.
If possible provide some sample code.

Regards
Deepak

-- 
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 on Client

2010-07-27 Thread Stefan Bachert
Hi,

GWT is putting javascript into the browser cache.
Data which are coming from GWT-RPC do not went into the browser cache.

However, a client data cache (programmed in java/javascript) greatly
improves the data loading by avoiding duplicate requests.
I do not see a security hit from doing so.
Even a browser cache is no security hit as long the user account of
the operating system is not shared.

Stefan Bachert
http::/gwtworld.de

Inquiries for professional GWT support are welcome.
I am sorry, I won't do free personal support.

On 27 Jul., 09:08, Joyce joyc...@gmail.com wrote:
 Hi. I believe that GWT achieves RIA through initial throwing of
 objects and files to the client side initially. but what I do not
 understand is that is it possible to control the amount of information
 being thrown to the client side? cos this is because I do not want
 sensitive information to be cache at the client side. these
 information shall only be retrieved from server when requested.

 these information should only be sent to the client only when
 requested and should not be cached at the client side. does anyone
 know if it is possible to control the amount of information being sent
 to the client? can anyone enlighten me? would appreciate your help
 sincerely.

-- 
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: Where can I put a File to be read/write from RPC Servlet ?

2010-07-27 Thread Jose Luis Estrella Campaña
Hi skippy !

I have tried your suggestion but unfortunately it did not work :(

I changed the java APIs I used this time but the result is the same:
...
  try {
File f = new File(xml/users.xml);
FileReader reader = new FileReader(f);
BufferedReader buffer = new BufferedReader(reader);
buffer.readLine();
// Read a line of text
System.out.println(buffer.readLine());
}


The generated exception is:

Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission \users.xml read)

also, If I try it like this: /xml/users.xml with the forward slash a
the beginning it goes for the root of the system which is C:/ and it
still does not work, which I find weird because that's outside the
application's context, right ?

Anyways, please help me Skippy.

Sincerely,

Jose.

On Jul 27, 2:13 pm, skippy a...@2lehmans.com wrote:
 If that does not work, ping me again and I will provide a code sample.

 On Jul 27, 2:09 pm, skippy a...@2lehmans.com wrote:



  I would put the file in the WEB-INF/XML/
  change the path to the file to xml/users.xml or /xml/user.xml

  On Jul 27, 1:57 pm, Jose Luis Estrella Campaña jlecamp...@gmail.com
  wrote:

   Hello dane !

   You're right in assuming something it's not working. Here's the
   thing... I need to read from the xml file so I can perform some
   operations on it and then save it again, here's the code I'm trying to
   get to work:

   import 

   public class GreetingServiceImpl extends RemoteServiceServlet
   implements
                   GreetingService {
           public String greetServer(String input) throws
   IllegalArgumentException {

                   FileInputStream fin;

                   try {
                       fin = new FileInputStream (users.xml);
                       System.out.println( new 
   DataInputStream(fin).readLine() );
                       fin.close();
                       } catch (IOException e) {
                           System.err.println (Unable to read from file);
                           System.exit(-1);
                       }
                   return success reading file;

           }

   }

   And here's the exception I'm getting:

   Unable to read from file
   .
   .
   .
   Caused by: java.security.AccessControlException: access denied
   (java.lang.RuntimePermission exitVM.-1)

   ---

   ­­-
-­-­

   This last test was performed putting the file where you suggested.
   (src/org/jose/server. )

   Thank you very much,

   Jose.

   On Jul 27, 1:13 pm, dane.molotok dane.molo...@gmail.com wrote:

I guess I'm missing something in the question. Have you tried some
things and it's not working like you'd expect? I would think you could
put it in src/org/jose/server.

On Jul 27, 11:21 am, Jose Luis Estrella Campaña jlecamp...@gmail.com
wrote:

 Good day everybody,

 I have this particular need, where I need to have a file (xml) within
 my GWT app. I have some data in this xml I must read, change, and then
 write (update)
 The file must be delivered or included within the Gwt App. Can anybody
 please tell me where can I place this file, so I can read/write it
 using java's file APi from an RPC Servlet.

 Here's a brief description of how my App's directory structure looks
 like:

 GwtApp
             |__ src
             |          |__org
             |          |       |__jose
             |          |                 |__client
             |          |                 |__server
             |          |                 |__shared
             |          |
             |          |__META-INF
             |
             |__ war
                       |__gwtapp
                       |__WEB-INF

 For my current needs, where would you suggest placing the file ?

 Thank you very much in advance,

 Have a nice day,

 Jose- 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.



what to do to a panel for not automatically resize itself?

2010-07-27 Thread Memo Sanchez
Hello, I need to use a panel that doesn't automatically resize
itself... and I don't want to use the absolutePanel, Is there a way to
do this? or which panel should I use?

Thank you very much.

-- 
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: Where can I put a File to be read/write from RPC Servlet ?

2010-07-27 Thread skippy
I would have tried your last example.
It look like a access problem to the file.  follow the access denied
message.  See what that get you.
Sorry, I know how it does.


On Jul 27, 2:36 pm, Jose Luis Estrella Campaña jlecamp...@gmail.com
wrote:
 Hi skippy !

 I have tried your suggestion but unfortunately it did not work :(

 I changed the java APIs I used this time but the result is the same:
 ...
               try {
                         File f = new File(xml/users.xml);
                         FileReader reader = new FileReader(f);
                         BufferedReader buffer = new BufferedReader(reader);
                         buffer.readLine();
                         // Read a line of text
                         System.out.println(buffer.readLine());
                 }
 

 The generated exception is:

 Caused by: java.security.AccessControlException: access denied
 (java.io.FilePermission \users.xml read)

 also, If I try it like this: /xml/users.xml with the forward slash a
 the beginning it goes for the root of the system which is C:/ and it
 still does not work, which I find weird because that's outside the
 application's context, right ?

 Anyways, please help me Skippy.

 Sincerely,

 Jose.

 On Jul 27, 2:13 pm, skippy a...@2lehmans.com wrote:



  If that does not work, ping me again and I will provide a code sample.

  On Jul 27, 2:09 pm, skippy a...@2lehmans.com wrote:

   I would put the file in the WEB-INF/XML/
   change the path to the file to xml/users.xml or /xml/user.xml

   On Jul 27, 1:57 pm, Jose Luis Estrella Campaña jlecamp...@gmail.com
   wrote:

Hello dane !

You're right in assuming something it's not working. Here's the
thing... I need to read from the xml file so I can perform some
operations on it and then save it again, here's the code I'm trying to
get to work:

import 

public class GreetingServiceImpl extends RemoteServiceServlet
implements
                GreetingService {
        public String greetServer(String input) throws
IllegalArgumentException {

                FileInputStream fin;

                try {
                    fin = new FileInputStream (users.xml);
                    System.out.println( new 
DataInputStream(fin).readLine() );
                    fin.close();
                    } catch (IOException e) {
                        System.err.println (Unable to read from file);
                        System.exit(-1);
                    }
                return success reading file;

        }

}

And here's the exception I'm getting:

Unable to read from file
.
.
.
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission exitVM.-1)

---
 
­­-
 -­-­

This last test was performed putting the file where you suggested.
(src/org/jose/server. )

Thank you very much,

Jose.

On Jul 27, 1:13 pm, dane.molotok dane.molo...@gmail.com wrote:

 I guess I'm missing something in the question. Have you tried some
 things and it's not working like you'd expect? I would think you could
 put it in src/org/jose/server.

 On Jul 27, 11:21 am, Jose Luis Estrella Campaña jlecamp...@gmail.com
 wrote:

  Good day everybody,

  I have this particular need, where I need to have a file (xml) 
  within
  my GWT app. I have some data in this xml I must read, change, and 
  then
  write (update)
  The file must be delivered or included within the Gwt App. Can 
  anybody
  please tell me where can I place this file, so I can read/write it
  using java's file APi from an RPC Servlet.

  Here's a brief description of how my App's directory structure looks
  like:

  GwtApp
              |__ src
              |          |__org
              |          |       |__jose
              |          |                 |__client
              |          |                 |__server
              |          |                 |__shared
              |          |
              |          |__META-INF
              |
              |__ war
                        |__gwtapp
                        |__WEB-INF

  For my current needs, where would you suggest placing the file ?

  Thank you very much in advance,

  Have a nice day,

  Jose- Hide quoted text -

- Show quoted text -- 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 

Re: Writing a JS library in GWT?

2010-07-27 Thread Sripathi Krishnan

 That's why, when writing a function in GWT, I expect it to compile out
 to something that doesn't exceed the size of handwritten JS for the
 same purposes.

Compiling Java to Javascript has some overheads which you cannot get rid off
easily. These overheads are not much if you are building a web-application;
but it could prove expensive if you are building a general purpose js
library.

*Overhead 1 : IFrame Bootstrap loader*
As lineman78 suggests, you could use the built-in SingleScriptLinker, or you
could write a custom linker (not too difficult). But this isn't the bulk of
the overhead.

*Overhead 2 : Java emulation in javascript*
GWT has to emulate java.lang and java.util packages for you in javascript.
Every class that you write will typically have the following four methods -
getClass(), toString(), equals() and hashcode() in javascript - even if you
don't actually invoke those methods. Besides, there are overheads with the
collections emulation. You cannot write a linker to overcome this overhead.
I believe GWT team is working on a simpler collections emulation, and that
would reduce the overheads - but till then I am afraid you don't have an
option.

The only thing I can suggest is -*XdisableClassMetadata *flag to reduce some
of the overheads.

--Sri


On 27 July 2010 22:02, lineman78 linema...@gmail.com wrote:

 Once the GWT compile completes, it is up to the linker to decide how
 to package it.  The single script linker should behave how you would
 like, but you will have to make sure that deferred binding is never
 used in your code unless only one permutation is possible.  The
 default linker is an iframe linker, which is the bootloader you are
 talking about.  Google knew some people wouldn't like this and would
 like to do exactly what you are saying, which is why they maintain the
 SingleScriptLinker.  If it doesn't behave exactly as you would like
 you may have to pull the source down and modify it to fit your needs.
 There needs to be exactly one primary linker, therefore there is no
 disable bootloader compile option because a linker must be provided in
 order for GWT to know how to distribute and load the code.


 http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/core/linker/SingleScriptLinker.html

 On Jul 26, 4:54 pm, S Rabin scottra...@gmail.com wrote:
  I see. So when the only thing in my loadModule function is an export
  call, and I export the method (via Ray Cromwell's gwt-exporter
  library, which I was already using):
 
  public void HelloTest(String id){
   DOM.getElementById(id).setInnerHTML(Hello World);
 
  }
 
  it should compile to 25kb plus a bootloader?  I'm not arguing that a
  bootloader is a bad idea for larger code, but I was really just hoping
  for a --disable bootloader compile option.
 
  To address your concern that there is 'no possible way for the code
  size to grow', and that the GWT compiler aggressively prunes dead
  code, yes, I'm fully aware that it is designed to do that.  That's
  why, when writing a function in GWT, I expect it to compile out to
  something that doesn't exceed the size of handwritten JS for the same
  purposes.  There are two options here: one, I'm missing some checkbox
  (and it's not the OBFuscated option), or two, GWT is including a lot
  more crap it thinks I need that I'm not aware of, hence why I'm asking
  how to fix it.
 
  As for whether I know better than Google when it comes to the
  bootloader... yes, in this case, I do.  I anticipate this library to
  be approximately 10kb of handwritten javascript, and I'm not doing
  anything that should warrant more than 1 permutation beyond browser
  specific speed optimizations.  Therefore, distributing the library as
  a .js file instead of a bootloader plus 4 different permutations seems
  like a better idea.
 
  Is my only option here really to write my own linker to output one .js
  file, no bootloader, no browser-specific optimizations?
 
  On Jul 26, 12:42 pm, lineman78 linema...@gmail.com wrote:
 
   First, let me start by saying that people are already writing
   javascript libraries using GWT and have been for some time.  Ray
   Cromwell created the GWT exporter library for this exact purpose for
   his own usage and open sourced it.  While bootloaders seem expensive
   it is the only way to deliver the most efficient code to the client.
   There is no possible way for code size to grow when compiled because
   if you go far enough every method will eventually make it to a JSNI
   method, so what you are missing in your calculations is all the code
   supplied by google and the small overhead code involved with the
   bootloader.  However, there is a linker available to create only one
   output, but in order for this to work the compilation must result in
   only one permutation, which is almost impossible unless you know the
   browser your client will be using.  You asked: Is there a way to crop
   out all the unnecessary cruft GWT seems to 

Re: Where can I put a File to be read/write from RPC Servlet ?

2010-07-27 Thread Jose Luis Estrella Campaña
Hello sir !

I have already tried all the ways I mentioned previously, including
the ones you suggested, but the problem remains. It is obviously
according to the stack trace launched by the Exception some sort of
File permission error. I would like to know what can I do about it ?
can you help me a little further, I'm lost.

Good luck,

Jose.

On Jul 27, 3:02 pm, skippy a...@2lehmans.com wrote:
 I would have tried your last example.
 It look like a access problem to the file.  follow the access denied
 message.  See what that get you.
 Sorry, I know how it does.

 On Jul 27, 2:36 pm, Jose Luis Estrella Campaña jlecamp...@gmail.com
 wrote:



  Hi skippy !

  I have tried your suggestion but unfortunately it did not work :(

  I changed the java APIs I used this time but the result is the same:
  ...
                try {
                          File f = new File(xml/users.xml);
                          FileReader reader = new FileReader(f);
                          BufferedReader buffer = new BufferedReader(reader);
                          buffer.readLine();
                          // Read a line of text
                          System.out.println(buffer.readLine());
                  }
  

  The generated exception is:

  Caused by: java.security.AccessControlException: access denied
  (java.io.FilePermission \users.xml read)

  also, If I try it like this: /xml/users.xml with the forward slash a
  the beginning it goes for the root of the system which is C:/ and it
  still does not work, which I find weird because that's outside the
  application's context, right ?

  Anyways, please help me Skippy.

  Sincerely,

  Jose.

  On Jul 27, 2:13 pm, skippy a...@2lehmans.com wrote:

   If that does not work, ping me again and I will provide a code sample.

   On Jul 27, 2:09 pm, skippy a...@2lehmans.com wrote:

I would put the file in the WEB-INF/XML/
change the path to the file to xml/users.xml or /xml/user.xml

On Jul 27, 1:57 pm, Jose Luis Estrella Campaña jlecamp...@gmail.com
wrote:

 Hello dane !

 You're right in assuming something it's not working. Here's the
 thing... I need to read from the xml file so I can perform some
 operations on it and then save it again, here's the code I'm trying to
 get to work:

 import 

 public class GreetingServiceImpl extends RemoteServiceServlet
 implements
                 GreetingService {
         public String greetServer(String input) throws
 IllegalArgumentException {

                 FileInputStream fin;

                 try {
                     fin = new FileInputStream (users.xml);
                     System.out.println( new 
 DataInputStream(fin).readLine() );
                     fin.close();
                     } catch (IOException e) {
                         System.err.println (Unable to read from 
 file);
                         System.exit(-1);
                     }
                 return success reading file;

         }

 }

 And here's the exception I'm getting:

 Unable to read from file
 .
 .
 .
 Caused by: java.security.AccessControlException: access denied
 (java.lang.RuntimePermission exitVM.-1)

 ---
  
 ­­-
  -­-­

 This last test was performed putting the file where you suggested.
 (src/org/jose/server. )

 Thank you very much,

 Jose.

 On Jul 27, 1:13 pm, dane.molotok dane.molo...@gmail.com wrote:

  I guess I'm missing something in the question. Have you tried some
  things and it's not working like you'd expect? I would think you 
  could
  put it in src/org/jose/server.

  On Jul 27, 11:21 am, Jose Luis Estrella Campaña 
  jlecamp...@gmail.com
  wrote:

   Good day everybody,

   I have this particular need, where I need to have a file (xml) 
   within
   my GWT app. I have some data in this xml I must read, change, and 
   then
   write (update)
   The file must be delivered or included within the Gwt App. Can 
   anybody
   please tell me where can I place this file, so I can read/write it
   using java's file APi from an RPC Servlet.

   Here's a brief description of how my App's directory structure 
   looks
   like:

   GwtApp
               |__ src
               |          |__org
               |          |       |__jose
               |          |                 |__client
               |          |                 |__server
               |          |                 |__shared
               |          |
               |          |__META-INF
               |
               |__ war
                         |__gwtapp
                         

Re: How to create a GWT Library?

2010-07-27 Thread nacho
Thanks.

Yes, i was thinking about see some libs to inspire myself. The trouble
is that right now i am overloaded :D

I think that the next week i could start trying to do it.

On 26 jul, 09:45, Peter Simun si...@seges.sk wrote:
 Just inspire by the existing GWT libraries. Sources are opensourced ;)
 Better libraries/frameworks has also documentation how to build them.
 Maven will simplify this a lot.

 One 
 example:http://code.google.com/p/acris/source/browse/#svn/trunkhttp://code.google.com/p/acris/wiki/HowTo

 Peter

 On 23. Júl, 20:06 h., cokol eplisc...@googlemail.com wrote:

  hi.its fairly easy to do.just google for a gwt module howto

  On Jul 23, 6:14 pm, nacho vela.igna...@gmail.com wrote:

   Hi, i'm looking some info about how to create and package my own gwt's
   lib.

   Does anyone know where can i find some tuto?

-- 
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: Css Calendar using GWT

2010-07-27 Thread nacho
Jejej i was thinking in do myself something like that.

it's nice

On 26 jul, 09:30, Peter Simun si...@seges.sk wrote:
 Seems not working for me in FF, I'm not able to click on the date in
 the calendar.
 Is there any official project site?

 Peter

 On 25. Júl, 23:39 h., dodo dard keratonj...@gmail.com wrote:

  Hello,

  I would like to present my new gwt-application, css-calendar. If you
  know zen garden, the idea of my application is the same. I'm hoping
  that people will join to my cause and share their css design through
  this application.

  And I would like also your opinion of this application.
  You can test it in :http://css-calendar.appspot.com/

  Thanks in advance

-- 
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: Tree Padding

2010-07-27 Thread nacho
Something like that happened to me.

What i did was the following.

For example:

div id=container
!-- here goes my tree --
/div

In the css:

#container div { padding: 20px; margin: 20px; }

Play with padding and margin and it could help you.

On 25 jul, 21:11, David E. dve1...@gmail.com wrote:
 I'm trying to control the margin, image size and padding in a gwt-tree
 and gwt-tree-items. I've read the various posts but haven't found
 anything definitive that resolved the problem. I may have missed
 something, but below is the results of my latest efforts on being able
 to control these attributes on the tree. See below for the firebug
 view of the html in the browser. You can see that gwt-Tree and
 gwtTreeItem don't have any padding or margins set but the phantom div
 parent that was generated does. How do you control the on that parent
 div to gwt-TreeItem? Also, you can see GWT inserts the 16px x 16px
 blank space, where does that come from and how can we control it?

 Thanks in advance,

 css:

 .gwt-Tree {
   margin: 0px 0px 0px 0px !important;
   padding: 0px 0px 0px 0px !important;

 }

 .gwt-Tree .gwt-TreeItem {
   margin: 0px 0px 0px 0px !important;
   padding: 0px 0px 0px 0px !important;

 }

 .gwt-Tree .gwt-TreeItem-selected {
   margin: 0px 0px 0px 0px !important;
   padding: 0px 0px 0px 0px !important;

 }

 output from firebug:

 div style=padding: 0px; margin-left: 0pt;
   table style=white-space: nowrap;
     tbody
       tr
         td style=vertical-align: middle;
           img border=0 style=width: 16px; height: 16px;
 background: url(quot;http://localhost:/formsui2/
 A7CD51F9E5A7DED5F85AD1D82BA67A8A.cache.pngquot;) no-repeat scroll
 -32px 0px transparent; src=http://localhost:/formsui2/
 clear.cache.gif
         /td
         td style=vertical-align: middle;
           div style=display: inline; class=gwt-TreeItem
 role=treeitem id=gwt-uid-46Fast Load_FF
           /div
         /td
       /tr
     /tbody
   /table
 div style=white-space: nowrap; display: none;
   div style=padding: 3px 3px 3px 23px; margin-left: 16px;
     div style=display: inline; class=gwt-TreeItem role=treeitem
 id=gwt-uid-47What Up?
     /div
   /div
 /div

-- 
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: JNDI datasources in GWT 2.1.0 M2 hosted mode

2010-07-27 Thread Y2i
Hi Lukateake,

Have you been able to solve your problem?

I have a simpler problem of configuring JNDI in GWT 2.0.3.  My
Configure class=org.mortbay.jetty.webapp.WebAppContext/ looks
exactly as yours (that works under M1), except it uses postgresql
driver.

Configure class=org.mortbay.jetty.webapp.WebAppContext
New id=DS class=org.mortbay.jetty.plus.naming.Resource
Argjava:comp/env/jdbc/testDb/Arg
Arg
New class=org.apache.commons.dbcp.BasicDataSource
Set 
name=driverClassNameorg.postgresql.Driver/Set
Set 
name=urljdbc:postgresql://localhost/testDb/Set
Set name=usernameuser/Set
Set name=passwordpassword/Set
/New
/Arg
/New
/Configure

When I ran the application in eclipse, I'm getting the following
error:

java.lang.ClassNotFoundException:
org.mortbay.jetty.plus.naming.Resource
at java.lang.ClassLoader.findClass(ClassLoader.java:359)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
...

It looks like there is no problem locating
org.mortbay.jetty.webapp.WebAppContext, but
org.mortbay.jetty.plus.naming.Resource cannot be found.

I tried to modify -classpath to point to jetty-plus-6.1.23.jar, but it
didn't help, same error.

Would really appreciate yours or someone else's advice on how to make
JNDI work with GWT 2.0.3.

Thanks in advance!


On Jul 21, 8:10 am, lukateake lukepe...@gmail.com wrote:
 Has anyone successfully got JNDI datasources up and running under
 Milestone 2?
 The class packages changed from mortbay to eclipse as I understand it.

 My jetty-env.xml file (DOES NOT WORK):

 Configure class=org.eclipse.jetty.webapp.WebAppContext

 New id=MySQLMSA class=org.eclipse.jetty.plus.jndi.Resource
      Arg/Arg
      Argjdbc/MyDataSource/Arg
      Arg
          New class=org.apache.commons.dbcp.BasicDataSource
             Set name=driverClassNamecom.mysql.jdbc.Driver/Set
             Set name=urljdbc_url/Set
             Set name=usernamedb_user/Set
             Set name=passworddb_pass/Set
          /New
      /Arg
 /New

 /Configure

 Under Milestone 1, this jetty-web.xml works:

 Configure class=org.mortbay.jetty.webapp.WebAppContext

 New id=DS class=org.mortbay.jetty.plus.naming.Resource
     Argjava:comp/env/jdbc/MySQLMSA/Arg
     Arg
      New class=org.apache.commons.dbcp.BasicDataSource
                  Set name=driverClassNamecom.mysql.jdbc.Driver/
 Set
                  Set name=urljdbc_url/Set
                  Set name=usernamedb_user/Set
                  Set name=passworddb_pass/Set
      /New
     /Arg
 /New
 /Configure

-- 
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.



Single Sign On - Multiple GWT Applications

2010-07-27 Thread DKeller
I need to build a set of GWT Aplications, each one separate of another
(different WAR files, no GWT modules), but my client want to log in
just once at one main application. In other words, when the client
open another GWT application, he dont want to do the login operation
again.

Any suggests?

-- 
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.



HTML5 elements

2010-07-27 Thread yvsong
I wonder if GWT supports new HTML5 elements such as figure and
figcaption. I added the following into the starter HTML file
generated by GWT plugin for eclipse:

figure
img src=images/GoogleCode.png alt=Google Code
figcaptionFigure 1./figcaption
/figure

but it does not display properly. The caption is beside instead of
below the figure.

-- 
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: Strange Mail from group 'islam'

2010-07-27 Thread nacho
i receive a mail of that

On 26 jul, 16:48, Breno Gomes breno.gomesfernan...@gmail.com wrote:
 yes

 2010/7/26 Nabeel Ali Memon nabeelalime...@gmail.com

  No, i've never been hit by spam due to signing up with gwt mailing list :)

  Nabeel

  On Mon, Jul 26, 2010 at 9:39 PM, jsaar duddelfud...@googlemail.comwrote:

  After having posted a question to GWT ...

  Has anynone had problems of thos kind?

  --
  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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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.



Re: Writing a JS library in GWT?

2010-07-27 Thread André Moraes
I had the same problema of getting bigger source code files.

The solution: Check your Module file (Module.gwt.xml).

As the default behavior is to create GUI the default module loads the User
module and this module has a lot of code that you don't use when creating
non GUI libraries/applications.

In my case I wrapped the json.org json functions (JSON.stringify e
JSON.parse) into a GWT module. Since the modern browsers has those functions
built-in i used deffered binding so the code was download only for IE 6 
 7.

In my case all my code was removed from the permutation for moderm browser
and the total download was only ~4KB and the code for IE 6/7 was 7KB (3KB
for the mimified version of json.org).

Most of the 4KB was jre emulation, wich will be required (and download only
once) no matter how many libraries you use. That's why all libraries in GWT
must go with the Java code in the JAR.

When using GWT you will use it to develop larger apps, so this 4KB overhead
is minimal (or you known some javascript framework which uses less than 4KB
in the minimal version?)

if your library is so small you should consider writing it in plain
javascript, but if you want to use it as a GWT library the final overhead in
the application will be very small.

On Tue, Jul 27, 2010 at 5:05 PM, Sripathi Krishnan 
sripathi.krish...@gmail.com wrote:

 That's why, when writing a function in GWT, I expect it to compile out
 to something that doesn't exceed the size of handwritten JS for the
 same purposes.

 Compiling Java to Javascript has some overheads which you cannot get rid
 off easily. These overheads are not much if you are building a
 web-application; but it could prove expensive if you are building a general
 purpose js library.

 *Overhead 1 : IFrame Bootstrap loader*
 As lineman78 suggests, you could use the built-in SingleScriptLinker, or
 you could write a custom linker (not too difficult). But this isn't the bulk
 of the overhead.

 *Overhead 2 : Java emulation in javascript*
 GWT has to emulate java.lang and java.util packages for you in javascript.
 Every class that you write will typically have the following four methods -
 getClass(), toString(), equals() and hashcode() in javascript - even if you
 don't actually invoke those methods. Besides, there are overheads with the
 collections emulation. You cannot write a linker to overcome this overhead.
 I believe GWT team is working on a simpler collections emulation, and that
 would reduce the overheads - but till then I am afraid you don't have an
 option.

 The only thing I can suggest is -*XdisableClassMetadata *flag to reduce
 some of the overheads.

 --Sri



 On 27 July 2010 22:02, lineman78 linema...@gmail.com wrote:

 Once the GWT compile completes, it is up to the linker to decide how
 to package it.  The single script linker should behave how you would
 like, but you will have to make sure that deferred binding is never
 used in your code unless only one permutation is possible.  The
 default linker is an iframe linker, which is the bootloader you are
 talking about.  Google knew some people wouldn't like this and would
 like to do exactly what you are saying, which is why they maintain the
 SingleScriptLinker.  If it doesn't behave exactly as you would like
 you may have to pull the source down and modify it to fit your needs.
 There needs to be exactly one primary linker, therefore there is no
 disable bootloader compile option because a linker must be provided in
 order for GWT to know how to distribute and load the code.


 http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/core/linker/SingleScriptLinker.html

 On Jul 26, 4:54 pm, S Rabin scottra...@gmail.com wrote:
  I see. So when the only thing in my loadModule function is an export
  call, and I export the method (via Ray Cromwell's gwt-exporter
  library, which I was already using):
 
  public void HelloTest(String id){
   DOM.getElementById(id).setInnerHTML(Hello World);
 
  }
 
  it should compile to 25kb plus a bootloader?  I'm not arguing that a
  bootloader is a bad idea for larger code, but I was really just hoping
  for a --disable bootloader compile option.
 
  To address your concern that there is 'no possible way for the code
  size to grow', and that the GWT compiler aggressively prunes dead
  code, yes, I'm fully aware that it is designed to do that.  That's
  why, when writing a function in GWT, I expect it to compile out to
  something that doesn't exceed the size of handwritten JS for the same
  purposes.  There are two options here: one, I'm missing some checkbox
  (and it's not the OBFuscated option), or two, GWT is including a lot
  more crap it thinks I need that I'm not aware of, hence why I'm asking
  how to fix it.
 
  As for whether I know better than Google when it comes to the
  bootloader... yes, in this case, I do.  I anticipate this library to
  be approximately 10kb of handwritten javascript, and I'm not doing
  anything that should warrant 

GWT Distrubted Compiler Project

2010-07-27 Thread Dobes
Hi,

I've been working on a distributed compiler project, to speed up
compile times by distributing the work across many machines.  Useful
for those times when the compiler takes a long time and you have a lot
of permutations.

Since its a bit of a side-project I'm hoping some other will jump on
board and help out.

This project provides an AppEngine? based server and java clients that
distribute GWT permutation compiles automatically over participating
computers.

Symmetric keys are used to protect the privacy of your data.

How it works:

 1. The team agrees on the queue ID and symmetric key for their builds
 2. They select or deploy the server
 3. They run any number of build slaves and configure them to watch
that queue on that server
 4. When building, they use the DistCompile? class to compile instead
of the Compile class
 5. DistCompile? does a pre-compile (non-permutation specific), then
uploads the results to the central server on AppEngine?
 6. Build Slaves who are polling the server download the precompiled
file and perform a permutation compile, then upload the results to the
server again
 7. The compile client downloads build results until it has all the
permutations
 8 . Then it runs Link with the results and your build is done,
hopefully faster than if you did it all locally

The best use case for this is if you have a few extra PCs and want to
do your work on a laptop or something without a lot of memory/CPU.
For example, one of my co-workers is taking 40 minutes to build our
GWT stuff; I'm hoping this can bring it down to 5-10 minutes instead.

Please contact me if you're willing to help with:

 1. Suggestions (file them in the issue tracker)
 2. Patches (put them in the issue tracker, too)
 3. Active Development (be happy to give you contributor access)
 4. Testing (file the bugs ...)

Thanks in advance!

-- 
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: Writing a JS library in GWT?

2010-07-27 Thread André Moraes
Correction on my last post.

The module load is required by the user.agent property.

But the output from the compiler remove the GUI code from the library when
compiled, you must remove the line which imports the Standard style so the
images  for borders and other things will no go in the output.

My GWT_Json.gwt.xml looks like this:

?xml version=1.0 encoding=UTF-8?
module rename-to='gwtjson'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name=com.google.gwt.user.User/

  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  !-- inherits name='com.google.gwt.user.theme.standard.Standard'/ --
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

  !-- Other module inherits  --

  !-- Specify the app entry point class. --
  entry-point class='br.com.gwtjson.client.GWTJson'/

  !-- Deferred Binding - Some browsers have a native implementation of
  JSON.parse() and JSON.stringify(), so instead of injecting the JSON.org
  code, we can use the native (and fast) implementation.
  As a default the code is always injected, but later rules check for the
  user agent to avoid adding the code (+/- 3K of code) --

  replace-with class=br.com.gwtjson.client.JSON2Inject
   when-type-is class=br.com.gwtjson.client.JSONInject /
  /replace-with

  replace-with class=br.com.gwtjson.client.NativeJSONInject
   when-type-is class=br.com.gwtjson.client.JSONInject /
   any
   when-property-is name=user.agent value=gecko1_8/
   when-property-is name=user.agent value=gecko/
   when-property-is name=user.agent value=chrome/
   when-property-is name=user.agent value=safari/
   when-property-is name=user.agent value=ie8/
   when-property-is name=user.agent value=opera/
   /any
  /replace-with

  !-- Specify the paths for translatable code--
  source path='client'/
  source path='shared'/
  source path='test'/

/module

2010/7/27 André Moraes andr...@gmail.com

 I had the same problema of getting bigger source code files.

 The solution: Check your Module file (Module.gwt.xml).

 As the default behavior is to create GUI the default module loads the User
 module and this module has a lot of code that you don't use when creating
 non GUI libraries/applications.

 In my case I wrapped the json.org json functions (JSON.stringify e
 JSON.parse) into a GWT module. Since the modern browsers has those functions
 built-in i used deffered binding so the code was download only for IE 6 
  7.

 In my case all my code was removed from the permutation for moderm browser
 and the total download was only ~4KB and the code for IE 6/7 was 7KB (3KB
 for the mimified version of json.org).

 Most of the 4KB was jre emulation, wich will be required (and download only
 once) no matter how many libraries you use. That's why all libraries in GWT
 must go with the Java code in the JAR.

 When using GWT you will use it to develop larger apps, so this 4KB overhead
 is minimal (or you known some javascript framework which uses less than 4KB
 in the minimal version?)

 if your library is so small you should consider writing it in plain
 javascript, but if you want to use it as a GWT library the final overhead in
 the application will be very small.


 On Tue, Jul 27, 2010 at 5:05 PM, Sripathi Krishnan 
 sripathi.krish...@gmail.com wrote:

  That's why, when writing a function in GWT, I expect it to compile out
 to something that doesn't exceed the size of handwritten JS for the
 same purposes.

 Compiling Java to Javascript has some overheads which you cannot get rid
 off easily. These overheads are not much if you are building a
 web-application; but it could prove expensive if you are building a general
 purpose js library.

 *Overhead 1 : IFrame Bootstrap loader*
 As lineman78 suggests, you could use the built-in SingleScriptLinker, or
 you could write a custom linker (not too difficult). But this isn't the bulk
 of the overhead.

 *Overhead 2 : Java emulation in javascript*
 GWT has to emulate java.lang and java.util packages for you in javascript.
 Every class that you write will typically have the following four methods -
 getClass(), toString(), equals() and hashcode() in javascript - even if you
 don't actually invoke those methods. Besides, there are overheads with the
 collections emulation. You cannot write a linker to overcome this overhead.
 I believe GWT team is working on a simpler collections emulation, and that
 would reduce the overheads - but till then I am afraid you don't have an
 option.

 The only thing I can suggest is -*XdisableClassMetadata *flag to reduce
 some of the overheads.

 --Sri



 On 27 July 2010 22:02, lineman78 linema...@gmail.com wrote:

 Once the GWT compile completes, it is up to the 

Re: GWT Distrubted Compiler Project

2010-07-27 Thread Dobes
The google code project for this is at http://code.google.com/p/gwt-distcc/

On Jul 27, 3:05 pm, Dobes dob...@gmail.com wrote:
 Hi,

 I've been working on a distributed compiler project, to speed up
 compile times by distributing the work across many machines.  Useful
 for those times when the compiler takes a long time and you have a lot
 of permutations.

 Since its a bit of a side-project I'm hoping some other will jump on
 board and help out.

 This project provides an AppEngine? based server and java clients that
 distribute GWT permutation compiles automatically over participating
 computers.

 Symmetric keys are used to protect the privacy of your data.

 How it works:

  1. The team agrees on the queue ID and symmetric key for their builds
  2. They select or deploy the server
  3. They run any number of build slaves and configure them to watch
 that queue on that server
  4. When building, they use the DistCompile? class to compile instead
 of the Compile class
  5. DistCompile? does a pre-compile (non-permutation specific), then
 uploads the results to the central server on AppEngine?
  6. Build Slaves who are polling the server download the precompiled
 file and perform a permutation compile, then upload the results to the
 server again
  7. The compile client downloads build results until it has all the
 permutations
  8 . Then it runs Link with the results and your build is done,
 hopefully faster than if you did it all locally

 The best use case for this is if you have a few extra PCs and want to
 do your work on a laptop or something without a lot of memory/CPU.
 For example, one of my co-workers is taking 40 minutes to build our
 GWT stuff; I'm hoping this can bring it down to 5-10 minutes instead.

 Please contact me if you're willing to help with:

  1. Suggestions (file them in the issue tracker)
  2. Patches (put them in the issue tracker, too)
  3. Active Development (be happy to give you contributor access)
  4. Testing (file the bugs ...)

 Thanks in advance!

-- 
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 Rocks!

2010-07-27 Thread nacho
Hi, i just must say that i like GWT more and more every second!!!

In argentinian 'GWT es una masa!!!'

In spanish 'GWT está de puta madre!!!'

Nothing more, i had to share my felling

:D

-- 
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: GWT Distrubted Compiler Project

2010-07-27 Thread Gal Dolber
Love your idea... even compiling a medium project in a macbook right now is
a pain in the ass.
I am out of time right now but I will love to help in a near future

2010/7/27 Dobes dob...@gmail.com

 The google code project for this is at
 http://code.google.com/p/gwt-distcc/

 On Jul 27, 3:05 pm, Dobes dob...@gmail.com wrote:
  Hi,
 
  I've been working on a distributed compiler project, to speed up
  compile times by distributing the work across many machines.  Useful
  for those times when the compiler takes a long time and you have a lot
  of permutations.
 
  Since its a bit of a side-project I'm hoping some other will jump on
  board and help out.
 
  This project provides an AppEngine? based server and java clients that
  distribute GWT permutation compiles automatically over participating
  computers.
 
  Symmetric keys are used to protect the privacy of your data.
 
  How it works:
 
   1. The team agrees on the queue ID and symmetric key for their builds
   2. They select or deploy the server
   3. They run any number of build slaves and configure them to watch
  that queue on that server
   4. When building, they use the DistCompile? class to compile instead
  of the Compile class
   5. DistCompile? does a pre-compile (non-permutation specific), then
  uploads the results to the central server on AppEngine?
   6. Build Slaves who are polling the server download the precompiled
  file and perform a permutation compile, then upload the results to the
  server again
   7. The compile client downloads build results until it has all the
  permutations
   8 . Then it runs Link with the results and your build is done,
  hopefully faster than if you did it all locally
 
  The best use case for this is if you have a few extra PCs and want to
  do your work on a laptop or something without a lot of memory/CPU.
  For example, one of my co-workers is taking 40 minutes to build our
  GWT stuff; I'm hoping this can bring it down to 5-10 minutes instead.
 
  Please contact me if you're willing to help with:
 
   1. Suggestions (file them in the issue tracker)
   2. Patches (put them in the issue tracker, too)
   3. Active Development (be happy to give you contributor access)
   4. Testing (file the bugs ...)
 
  Thanks in advance!

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
http://ajax-development.blogspot.com/

-- 
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: GWT Distrubted Compiler Project

2010-07-27 Thread Jim Douglas
You might be interested in these references, Dobes:

http://code.google.com/p/google-web-toolkit/wiki/DistributedBuilds
http://development.lombardi.com/?p=993
http://development.lombardi.com/?p=1027

On Jul 27, 3:17 pm, Dobes dob...@gmail.com wrote:
 The google code project for this is athttp://code.google.com/p/gwt-distcc/

 On Jul 27, 3:05 pm, Dobes dob...@gmail.com wrote:



  Hi,

  I've been working on a distributed compiler project, to speed up
  compile times by distributing the work across many machines.  Useful
  for those times when the compiler takes a long time and you have a lot
  of permutations.

  Since its a bit of a side-project I'm hoping some other will jump on
  board and help out.

  This project provides an AppEngine? based server and java clients that
  distribute GWT permutation compiles automatically over participating
  computers.

  Symmetric keys are used to protect the privacy of your data.

  How it works:

   1. The team agrees on the queue ID and symmetric key for their builds
   2. They select or deploy the server
   3. They run any number of build slaves and configure them to watch
  that queue on that server
   4. When building, they use the DistCompile? class to compile instead
  of the Compile class
   5. DistCompile? does a pre-compile (non-permutation specific), then
  uploads the results to the central server on AppEngine?
   6. Build Slaves who are polling the server download the precompiled
  file and perform a permutation compile, then upload the results to the
  server again
   7. The compile client downloads build results until it has all the
  permutations
   8 . Then it runs Link with the results and your build is done,
  hopefully faster than if you did it all locally

  The best use case for this is if you have a few extra PCs and want to
  do your work on a laptop or something without a lot of memory/CPU.
  For example, one of my co-workers is taking 40 minutes to build our
  GWT stuff; I'm hoping this can bring it down to 5-10 minutes instead.

  Please contact me if you're willing to help with:

   1. Suggestions (file them in the issue tracker)
   2. Patches (put them in the issue tracker, too)
   3. Active Development (be happy to give you contributor access)
   4. Testing (file the bugs ...)

  Thanks in advance!

-- 
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: GWT Distrubted Compiler Project

2010-07-27 Thread charlie
Is there a way to 'follow' this project on google code ?

On Tue, Jul 27, 2010 at 5:30 PM, Gal Dolber gal.dol...@gmail.com wrote:

 Love your idea... even compiling a medium project in a macbook right now is
 a pain in the ass.
 I am out of time right now but I will love to help in a near future

 2010/7/27 Dobes dob...@gmail.com

 The google code project for this is at
 http://code.google.com/p/gwt-distcc/

 On Jul 27, 3:05 pm, Dobes dob...@gmail.com wrote:
  Hi,
 
  I've been working on a distributed compiler project, to speed up
  compile times by distributing the work across many machines.  Useful
  for those times when the compiler takes a long time and you have a lot
  of permutations.
 
  Since its a bit of a side-project I'm hoping some other will jump on
  board and help out.
 
  This project provides an AppEngine? based server and java clients that
  distribute GWT permutation compiles automatically over participating
  computers.
 
  Symmetric keys are used to protect the privacy of your data.
 
  How it works:
 
   1. The team agrees on the queue ID and symmetric key for their builds
   2. They select or deploy the server
   3. They run any number of build slaves and configure them to watch
  that queue on that server
   4. When building, they use the DistCompile? class to compile instead
  of the Compile class
   5. DistCompile? does a pre-compile (non-permutation specific), then
  uploads the results to the central server on AppEngine?
   6. Build Slaves who are polling the server download the precompiled
  file and perform a permutation compile, then upload the results to the
  server again
   7. The compile client downloads build results until it has all the
  permutations
   8 . Then it runs Link with the results and your build is done,
  hopefully faster than if you did it all locally
 
  The best use case for this is if you have a few extra PCs and want to
  do your work on a laptop or something without a lot of memory/CPU.
  For example, one of my co-workers is taking 40 minutes to build our
  GWT stuff; I'm hoping this can bring it down to 5-10 minutes instead.
 
  Please contact me if you're willing to help with:
 
   1. Suggestions (file them in the issue tracker)
   2. Patches (put them in the issue tracker, too)
   3. Active Development (be happy to give you contributor access)
   4. Testing (file the bugs ...)
 
  Thanks in advance!

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




 --
 http://ajax-development.blogspot.com/

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
charlie/

-- 
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: GWT Rocks!

2010-07-27 Thread Gal Dolber
Bien ahi otro argentino en gwt :)

2010/7/27 nacho vela.igna...@gmail.com

 Hi, i just must say that i like GWT more and more every second!!!

 In argentinian 'GWT es una masa!!!'

 In spanish 'GWT está de puta madre!!!'

 Nothing more, i had to share my felling

 :D

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
http://ajax-development.blogspot.com/

-- 
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: GWT Rocks!

2010-07-27 Thread Daniel Simons
I agree

On Tue, Jul 27, 2010 at 5:30 PM, nacho vela.igna...@gmail.com wrote:

 Hi, i just must say that i like GWT more and more every second!!!

 In argentinian 'GWT es una masa!!!'

 In spanish 'GWT está de puta madre!!!'

 Nothing more, i had to share my felling

 :D

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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.



Re: GWT Rocks!

2010-07-27 Thread charlie
Thirded.

On Tue, Jul 27, 2010 at 5:38 PM, Daniel Simons daniel.simo...@gmail.comwrote:

 I agree


 On Tue, Jul 27, 2010 at 5:30 PM, nacho vela.igna...@gmail.com wrote:

 Hi, i just must say that i like GWT more and more every second!!!

 In argentinian 'GWT es una masa!!!'

 In spanish 'GWT está de puta madre!!!'

 Nothing more, i had to share my felling

 :D

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
charlie/

-- 
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: GWT Rocks!

2010-07-27 Thread Christian Goudreau
Gwt est de la bombe ! Ok, that sound more like french from France. I would
have said Gwt Rocks even if I'm french ! LOL

On Tue, Jul 27, 2010 at 6:45 PM, charlie charlie.f...@gmail.com wrote:

 Thirded.


 On Tue, Jul 27, 2010 at 5:38 PM, Daniel Simons 
 daniel.simo...@gmail.comwrote:

 I agree


 On Tue, Jul 27, 2010 at 5:30 PM, nacho vela.igna...@gmail.com wrote:

 Hi, i just must say that i like GWT more and more every second!!!

 In argentinian 'GWT es una masa!!!'

 In spanish 'GWT está de puta madre!!!'

 Nothing more, i had to share my felling

 :D

 --
 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
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




 --
 charlie/

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Christian Goudreau

-- 
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: GWT Rocks!

2010-07-27 Thread nino ekambi
The Best Webframework of the world in my eyes.

Thanks Google

2010/7/28 Christian Goudreau goudreau.christ...@gmail.com

 Gwt est de la bombe ! Ok, that sound more like french from France. I would
 have said Gwt Rocks even if I'm french ! LOL


 On Tue, Jul 27, 2010 at 6:45 PM, charlie charlie.f...@gmail.com wrote:

 Thirded.


 On Tue, Jul 27, 2010 at 5:38 PM, Daniel Simons 
 daniel.simo...@gmail.comwrote:

 I agree


 On Tue, Jul 27, 2010 at 5:30 PM, nacho vela.igna...@gmail.com wrote:

 Hi, i just must say that i like GWT more and more every second!!!

 In argentinian 'GWT es una masa!!!'

 In spanish 'GWT está de puta madre!!!'

 Nothing more, i had to share my felling

 :D

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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-toolkit@googlegroups.com
 .
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




 --
 charlie/

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




 --
 Christian Goudreau

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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.



Re: Single Sign On - Multiple GWT Applications

2010-07-27 Thread rjcarr
Single sign on is a feature that will be offered by your servlet
container.  Depending on which you choose you should have several
options for how to implement this.

On Jul 27, 1:44 pm, DKeller keller.di...@gmail.com wrote:
 I need to build a set of GWT Aplications, each one separate of another
 (different WAR files, no GWT modules), but my client want to log in
 just once at one main application. In other words, when the client
 open another GWT application, he dont want to do the login operation
 again.

 Any suggests?

-- 
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 on Client

2010-07-27 Thread Joyce
Hi Sefan,

Many thanks for your clarification. Appreciate it.
May I ask what is the difference between GWT-RPC and GWT?

So this means that the data cache at client side can be controlled
right?

Thanks once again.


On Jul 28, 3:26 am, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi,

 GWT is putting javascript into the browser cache.
 Data which are coming from GWT-RPC do not went into the browser cache.

 However, a client data cache (programmed in java/javascript) greatly
 improves the data loading by avoiding duplicate requests.
 I do not see a security hit from doing so.
 Even a browser cache is no security hit as long the user account of
 the operating system is not shared.

 Stefan Bachert
 http::/gwtworld.de

 Inquiries for professional GWT support are welcome.
 I am sorry, I won't do free personal support.

 On 27 Jul., 09:08, Joyce joyc...@gmail.com wrote:



  Hi. I believe that GWT achieves RIA through initial throwing of
  objects and files to the client side initially. but what I do not
  understand is that is it possible to control the amount of information
  being thrown to the client side? cos this is because I do not want
  sensitive information to be cache at the client side. these
  information shall only be retrieved from server when requested.

  these information should only be sent to the client only when
  requested and should not be cached at the client side. does anyone
  know if it is possible to control the amount of information being sent
  to the client? can anyone enlighten me? would appreciate your help
  sincerely.

-- 
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.



How to show server log file on the client?

2010-07-27 Thread Magnus
Hi,

I would like to show the contents of a log at the client side:

There is a complex operation (chess move analysis) on the server,
triggered by a client's RPC serivce call.
The operation produces a list of log entries, which should be
presented at the client.

My intuitive idea is to collect the log entries and return them as
part of the return value of the RPC call. But in this case, all the
log entries would be presented at once.

I would prefer the log entries to be shown as they are created. I
think that in this case the server has to contact the client. But I
have no idea of a concept for such a scenario, and I would avoid
getting the whole scene too complex.

How would you do that?

Thanks
Magnus

-- 
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.



over-optimisation of .equals(mystring)

2010-07-27 Thread Nick
I've spent the last day or so trying to figure out why GWT was setting
a non-null String to null for no apparent reason.  The code was
essentially as follows:

public void runTest() {
  test( testing );
}

public void test( String mystring ) {
  if( .equals(mystring) ) {
mystring = null;
  }
  // else if( mystring == null ) { log.debug( This line makes it
work, even though it evaluates to false ); }

  log.debug(mystring:  + mystring, null);  // optimised by GWT
compiler to mystring: null
  doSomethingElse(mystring);
}

When I uncomment the log.debug line everything works as expected,
but without it, GWT seems to assume that mystring must always be
null and hard-codes it as such throughout the generated javascript.
eg:

$log(log_9, 1, 'mystring: null', null);
   doSomethingElse(null);

The workaround (after spending several hours tracking down the
problem) is to change the java code to:

  if( null != mystring  mystring.length() == 0 ) {
mystring = null;
  }

Although this works, hopefully the GWT team will be able to get to the
bottom of this issue and fix the problem (I'm using GWT 2.1.0.M1)

-- 
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-contrib] UiBinder. Parser for AbsolutePanel. (issue715802)

2010-07-27 Thread Konstantin . Scheglov

Reviewers: Ray Ryan,



Please review this at http://gwt-code-reviews.appspot.com/715802/show

Affected files:
  user/src/com/google/gwt/uibinder/elementparsers/AbsolutePanelParser.java
  user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
  user/src/com/google/gwt/user/client/ui/AbsolutePanel.java
  user/src/com/google/gwt/user/client/ui/LayoutPanel.java
  user/test/com/google/gwt/uibinder/UiBinderJreSuite.java
   
user/test/com/google/gwt/uibinder/elementparsers/AbsolutePanelParserTest.java

  user/test/com/google/gwt/uibinder/test/UiJavaResources.java
  user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
  user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java
  user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Fixing WindowImplIE.getQueryString to look for the first occurence of a ? instead of the last. ... (issue709801)

2010-07-27 Thread jlabanca

committed as r8406

http://gwt-code-reviews.appspot.com/709801/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: UiBinder. Parser for AbsolutePanel. (issue715802)

2010-07-27 Thread rjrjr

Thanks! Looks great, just a couple of nits.


http://gwt-code-reviews.appspot.com/715802/diff/1/3
File
user/test/com/google/gwt/uibinder/elementparsers/AbsolutePanelParserTest.java
(right):

http://gwt-code-reviews.appspot.com/715802/diff/1/3#newcode37
user/test/com/google/gwt/uibinder/elementparsers/AbsolutePanelParserTest.java:37:
///
I didn't say anything in previous CLs, but we really don't do this type
of method grouping. In most of our code we follow alphabetical sorting,
for good or for ill, and folks frequently auto sort tests too (though
that's not strictly required by our style guide). Would you mind
dropping the groups?

http://gwt-code-reviews.appspot.com/715802/diff/1/3#newcode114
user/test/com/google/gwt/uibinder/elementparsers/AbsolutePanelParserTest.java:114:
b.append(  g:position left='1' top='2');
Could you make this g:child? And could you test having several children?

http://gwt-code-reviews.appspot.com/715802/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Patch from Gustav Trede (gustav.tr...@gmail.com) (issue716801)

2010-07-27 Thread rice

http://gwt-code-reviews.appspot.com/716801/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Replacing Cell#consumesEvents() with Cell#getConsumedEvents(), and using the return value to sin... (issue707803)

2010-07-27 Thread jlabanca

committed as r8420

http://gwt-code-reviews.appspot.com/707803/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Patch from Gustav Trede (gustav.tr...@gmail.com) (issue716801)

2010-07-27 Thread rice

http://gwt-code-reviews.appspot.com/716801/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


Re: [gwt-contrib] Phasing in a new, unified linker

2010-07-27 Thread Lex Spoon
On Mon, Jul 26, 2010 at 6:56 PM, John Tamplin j...@google.com wrote:

 Well, we do know there will be other linkers, and if there aren't extension
 points defined they will be done via cut-and-paste, which is what led to the
 current state we are in.


No question that extension points are useful. Let's add them, but only when
we have an idea of what we are supporting with them.

Note that IFrameLinker and XSLinker have several extension points, and yet
nonetheless there is a lot of cut and paste going on.  We didn't add (all
of) the ones that people really ended up needing.

-Lex

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

  1   2   >