Re: Problem in AsyncCallback call, returned with success

2009-11-14 Thread Sripathi Krishnan
I think you should go through the discussion in this thread -
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f?fwc=1

--Sri


2009/11/12 Ricardo Cardoso / Gmr 

> Hello,
>
> I'm getting a very strange situation. I get the following error in
> log, when I do an AsyncCallback call:
>
>  Uncaught JavaScript exception [_1 has no properties] in
> http://localhost:/servoeasy/sc/modules/ISC_Core.js, line 773
>
> But the call is returned with success (I get the user data that I
> searched in server). However, the code stops running.
>
> To be more specific, in a login window, when a user clicks in a
> button, an addClickHandler calls the method:
>
> private void loadSeUser(String email, String pw) {
>System.err.println("Sending to loadSeUserByLogin: " + email
> + ", " +
> pw);
>
>  GetInformationService.Util.getInstance().loadSeUserByLogin(email,
> pw,
>new AsyncCallback() {
>
>@Override
>public void onFailure(Throwable
> caught) {
>System.err.println("Error in
> connection to loadSeUserByLogin");
>SC.say(caught.getMessage());
>}
>
>@Override
>public void onSuccess(SeUser result)
> {
>setUser(result);
>SeUser us = getUser();
>
>  System.err.println("loadSeUser()- Received user: "
>+
> us.getFname());
>}
>
>});
>}
>
> I got the log success message "loadSeUser()- Received user: X".
> But the code don't return to addClickHandler following code line.
> Stops here!
> I only get that error log I said, just after control log message
> "Sending to loadSeUserByLogin: x...@xx.com, PW".
>
> More strange than that is the fact this happens only in first time the
> user clicks. After one or two seconds, if he clicks again, everything
> runs OK, the code returns to addClickHandler without problems.
>
> Any idea?
>
> --
>
> 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=.
>
>
>

--

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




JUnit RPC test and Resource not found

2009-11-14 Thread Steve C
I get the following stack trace when trying to test an RPC as per the
instructions at pages such as 
http://code.google.com/webtoolkit/articles/testing_methodologies_using_gwt.html

.http://localhost:1659/com.webucator.gwt.filmlist.FilmList.JUnit/
getfilms
The development shell servlet received a request for 'getfilms' in
module 'com.xyz.gwt.filmlist.FilmList.JUnit.gwt
.xml'
   [WARN] Resource not found: getfilms; (could a file be missing from
the public path or a  tag misconfigured i
n module com.xyz.gwt.filmlist.FilmList.JUnit.gwt.xml ?)
On Error : Cannot find resource 'getfilms' in the public path of
module 'com.xyz.gwt.filmlist.FilmList.JUnit'

I have the servlet configured in web.xml, and use the annotation on
the service interface.  I've gotten the same result using the old
approach of defining the endpoint in my code (as in
GWT.getModuleBaseURL() + "getfilms").

Both yield the same result, that there is an extra level "JUnit"
inserted into the base URL.  I don't have a file called
com.xyz.gwt.filmlist.FilmList.JUnit.gwt.xml, but I do have
com.xyz.gwt.filmlist.FilmList.gwt.xml

If I put a servlet tag in my module gwt.xml file, then things work,
but why back up from a presumably improved structure just to be able
to run tests?

Is there some way to do this without the servlet tag in the gwt.xml
file?

--

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




Re: Force image caching in gallery

2009-11-14 Thread Sripathi Krishnan
Sorry - I made a slightly incorrect statement. GWT 2.0 doesn't eliminate the
need to set HTTP cache headers.

If you use ImageBundle (
http://code.google.com/p/google-web-toolkit/wiki/ImageBundleDesign), GWT
will bundle multiple images into a single composite image. Also, if your
browser supports it, it can inline images using the
data:uriformat. As a
result, the browser is going to make fewer HTTP requests to the
server, and on supported browsers - it may not have to make separate
requests because the image is already inlined. But you are still going to
benefit by setting appropriate cache headers.

--Sri


2009/11/14 Vasily Vasilkov 

>  If you are images are dynamic, or if you are not using GWT 2.0, you will
>> have to set appropriate HTTP Cache headers when the image is served.
>
>
> Could you please clarify - what feature I can use in GWT 2.0 instead of
> setting http headers?
>
> --
> 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=.
>

--

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




Re: Error when running ant hosted on OS X 10.6

2009-11-14 Thread Chris Ramsdale
Thanks for all of your input regarding this issue. We were able to
reproduce the problem and have found that it is a result of an issue
within the 4.0.4 version of JavaScriptCore. We have reported the issue
to the WebKit team (http://trac.webkit.org/changeset/50964) and an
update was made but it will take some time to work it's way into
another Safari update. In the meantime to continue using GWT 1.7.1,
and prior, the safest workaround would be to revert back to Safari
4.0.3. The patches that have be suggested within this thread will work
but may result in other inconsistencies as objects are not properly
being released.

I have also tested out the latest MS2 release of GWT using 4.0.4 and
had no issues running in hosted mode (now referred to as Development
Mode). GWT MS2 is available here:
http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=2.0+Milestone+2

I will keep everyone posted with any further updates.

- Chris


On Nov 14, 11:33 am, julian  wrote:
> Can be that (10.6.1, safari 4) uses 64bit architecture instead 32?
> Have a look to:http://kb2.adobe.com/cps/509/cpsid_50983.html
>
> On Nov 13, 4:41 pm, Kyle Hayes  wrote:
>
>
>
> > I installed your new jar and I'm still getting the followingerror:
> > ==
> >hosted:
> >      [java] On MacOSX, ensure that you have Safari 3 installed.
> >      [java] Exception in thread "main" java.lang.UnsatisfiedLinkError:
> > Unable to load required native library 'gwt-ll'.  Detailederror:
> >      [java] Can't load library: /usr/local/gwt-mac-1.7.1/libgwt-
> > ll.dylib)
> >      [java]
> >      [java] Your GWT installation may be corrupt
> >      [java]     at com.google.gwt.dev.shell.LowLevel.init(LowLevel.java:
> > 106)
> >      [java]     at com.google.gwt.dev.shell.mac.LowLevelSaf.init
> > (LowLevelSaf.java:135)
> >      [java]     at com.google.gwt.dev.BootStrapPlatform.initHostedMode
> > (BootStrapPlatform.java:68)
> >      [java]     at com.google.gwt.dev.HostedModeBase.
> > (HostedModeBase.java:362)
> >      [java]     at com.google.gwt.dev.SwtHostedModeBase.
> > (SwtHostedModeBase.java:127)
> >      [java]     at com.google.gwt.dev.HostedMode.(HostedMode.java:
> > 271)
> >      [java]     at com.google.gwt.dev.HostedMode.main(HostedMode.java:
> > 230)
> > ==
>
> > Here is my install location contents:
> > ==
> > $ ls /usr/local/gwt-mac-1.7.1/
> > COPYING                                 gwt-dev-mac.jar                     
> >     libgwt-ll.jnilib
> > COPYING.html                            gwt-dev-mac.jar.bak                 
> >     libswt-agl-carbon-3235.jnilib
> > about.html                              gwt-module.dtd                      
> >     libswt-carbon-3235.jnilib
> > about.txt                               gwt-servlet.jar                     
> >     libswt-pi-carbon-3235.jnilib
> > benchmarkViewer                         gwt-user.jar                        
> >     libswt-webkit-carbon-3235.jnilib
> > doc                                     i18nCreator                         
> >     release_notes.html
> > gwt-api-checker.jar                     index.html                          
> >     samples
> > gwt-benchmark-viewer.war                junitCreator                        
> >     webAppCreator
> > ==
>
> > The gwt-dev-mac.jar.bak is the old jar and the non.bak is the
> > *patched* one. Yet theerroris still complaining about not finding
> > libgwt-ll.dylib.
>
> > On Nov 13, 2:25 am, bmalkow  wrote:> On 12 
> > Lis, 18:25, Kyle Hayes  wrote:
>
> > > > Heh, you're right this is really ugly. However, it may be worth a try,
> > > > but not on my work code ;-)
>
> > > I use it only on development enviroment.
> > > To production I use original GWT.
>
> > > Someone else thinks similar to 
> > > mehttp://gwtgeek.blogspot.com/2009/11/hosted-mode-crashes-after-os-upda...
> > > ;)

--

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




Re: Keeping data "safe" in PagingScrollTable

2009-11-14 Thread Open eSignForms
FYI, I know that this simple construct will work:

view.setHTML(cellValue.replace("<", "<"));

This uses the AbstractCellView.setHTML (since setText() is deprecated)
but changes all < to < which generally seems to be enough to keep a
browser from ever introducing any HTML/script hacks in my cell value
as something that can affect the browser's behavior.

Just wondering if this sort of hack is my best solution or whether
something more standardized is in place (though I figured setText()
was that standard, so not sure why it's not allowed here.)

--

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




Keeping data "safe" in PagingScrollTable

2009-11-14 Thread Open eSignForms
Just getting the basics of PagingScrollTable working under GWT 1.7.1
and noted that the basic for CellRenderer was to use the
AbstractCellView.setHTML() method.  Since my data shown comes from the
database, I want to be sure if people enter HTML constructs into our
forms, we don't display them as HTML unless we intended them to
contain HTML.

For example, I have a list now that contains a "Comments" section.
This is just a String in my database/app.  Now this is not intended to
allow HTML, but if such constructs were entered, that would be fine,
but they should be displayed as entered and not be treated as HTML.

The view.setText() method is deprecated saying I should use setHTML
().  So it seems I have no way to tell the table that my data is a
plain text string and is not HTML.

If my comment string contains "Hello there."  I would like to be able to set the comment as
text so all the HTML is still readable (reads like above) rather than
inserting a link for the work 'there'.  In my JSPs, I'd use our HTML
escaper that would convert '<' to '< and doublequotes to '"'
etc.

What's the main technique to use for this sort of escaping client
side?  I'd prefer to not send back pre-HTML-escaped strings to the
client because it could create some odd sorting and display issues
when not used in widgets that expect the contents to be HTML (like a
Label), and prefer that the client who is displaying it knows whether
to treat the string as HTML or plain 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=.




Re: General question about project architecture.

2009-11-14 Thread rjcarr
Great explanation Sri, I just wanted to add that you could also do
both.

In my project, I have two GWT entry points (and about 5 GWT modules
for sharing / reuse), but I also have another 4-5 "regular" web pages
with static content.

You need to decide the portions of your site that require the
dynanicism of GWT and the portions that will suffice with plain old
HTML.  Mostly likely, only a small portion of your site will require
GWT.

On Nov 14, 3:50 am, Sripathi Krishnan 
wrote:
> Multiple modules is the wrong way to use GWT.
>
> GWT highly recommends using a single module. Most of the performance
> optimizations GWT does relies on the fact that you have a single, monolithic
> module. Plus, as you observed, the time to build your application keeps
> growing as you add more modules, so it doesn't scale well.
>
> Part of the problem is deciding whether you are building a "Web App" or a
> "Web Site". Lots of
> discussionscan
> be found on this topic.
>
> GWT is great if you want to build a Web App. Typically, there is only a
> single HTML page, and different "screens" are manipulated on the client side
> using DOM. But if you are building a traditional, multi-page Web Site
> (nothing wrong with that), then GWT is not for you. You are better off using
> one of the many javascript libraries.
>
> So, lets assume you decide you want to build a web-app, and want to use GWT
> to do so. To get started, stick to a single HTML page with a single GWT
> Module/Entry Point. Adding multiple "screens" is adding a new FlowPanel or
> Composite with your content. Or perhaps, you have all "screens" built into
> the original HTML page, and you just hide/unhide the divs based on user
> action.
>
> The above approach works well if you have a few (say less than 10) screens.
> If your application grows bigger and more complex, you would want to start
> following some established patterns. The MVP pattern has been touted as the
> "way to build web-apps". Just do a google search, there are a lot of
> articles on that subject. Also, catch Ray Ryan's talk on GWT Architecture
> and best 
> practices.
>
> --Sri
>
> 2009/11/13 David C. Hicks 
>
>
>
> > Specifically, I'm curious about the use of GWT Modules in a project.
>
> > Each time we have a new "screen" to create, we have been adding a new
> > module to our project.  Of course, with each new module, there is an
> > additional build cycle to generate the Javascript for that module.  What
> > I'm wondering is if this is normal, or does it make more sense to try to
> > build up whole applications in a single module and perhaps keep the
> > build time down?  Each new module we add appears to increase our build
> > time by about 1.5 minutes.  It won't be long and this will be way beyond
> > painful.
>
> > Any thoughts?
> > Thanks,
> > Dave
>
> > --
>
> > 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 > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=.

--

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




Re: Flex Table - Remove rows

2009-11-14 Thread rjcarr
I tend to do this to clear out tables:

while(table.getRowCount() > 0) {
  table.removeRow(0);
}

On Nov 13, 3:09 am, Jonas  wrote:
> Thank you so much Paul, it worked 5 stars.
>
> Best Regards
>
> João Lopes
>
> On 13 Nov, 09:59, Paul Robinson  wrote:
>
>
>
> > After you remove row number 0, what was row 1 becomes the new row 0 etc
> > because everything shifts up one row.
>
> > The way you've set up your loop, what starts off as row 1 will never be
> > removed - second time through the loop you remove row 1, but that is the
> > row that started off as row 2. Also, don't forget that each time through
> > the loop getRowCount() will return a different value.
>
> > Setting the row span looks odd too. You remove row i, then set the row
> > span for row i (which was row i+1 before you removed row i).
>
> > You could try this:
> >     for (int i=0, n=__this.getRowCount() ; i >        __this.removeRow(0);
>
> > or this:
> >     __this.removeAllRows();
>
> > HTH
> > Paul
>
> > Jonas wrote:
> > > Hello all,
>
> > > i'm trying to remove the rows from a dynamic flex table, but without
> > > success. This is my code, i have 5 columns and a variable number of
> > > rows. The idea is to remove all the rows and put new rows in it.
>
> > > Here is what i'm doing
>
> > > for (int i = 0; i < __this.getRowCount(); i++) {
> > >                 __this.removeRow(i);
> > >                 __this.getFlexCellFormatter().setRowSpan(0, 0, i);
> > >                 __this.getFlexCellFormatter().setRowSpan(0, 1, i);
> > >                 __this.getFlexCellFormatter().setRowSpan(0, 2, i);
> > >                 __this.getFlexCellFormatter().setRowSpan(0, 3, i);
> > >                 __this.getFlexCellFormatter().setRowSpan(0, 4, i);
> > >             }
>
> > > I think my problem is in the HTML manipulation, if somebody could help
> > > i would be very gratefull
>
> > > Thanks in advance
>
> > > Best Regards
>
> > > Jo�o Lopes

--

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




Re: how large of your GWT compiled code? My one is 850K

2009-11-14 Thread rjcarr
I have (what I think is) a rather large application and the main files
are about 400KB (remember, only 1 is loaded).  My browser reports that
these files are down to 100K when gzip compressed over the wire.
That's the equivalent of one large image ... not too bad in my
opinion.

Content-Encoding:gzip
Content-Length:109967

On Nov 13, 6:26 pm, "Dean S. Jones"  wrote:
> 850k is nothing, it's the size of many images or photo's, as hazy1
> said, compression will reduce the size dramatically,
> ( I moved compression from the app server to my fronting Apache and
> it's much more efficient )
> and you can also set the expires header on the GWT html/js to some
> future date ( a week or month )
> ( but do not set it on files that contain .nocache. )
>
> once my app is loaded and cached properly, it's up on the screen with
> all the required RPC traffic
> amounting to a a total network xfer of only 4k!!! ( as reported by
> firebug )
>
> On Nov 13, 2:14 pm, hazy1  wrote:
>
>
>
> > Our code size, uncompressed is several megabytes.  We compress and
> > cache it (both on the client and on the server - cache the zipped file
> > in memory).  It is not much trouble after doing this.
>
> > On Nov 12, 6:48 pm, Edgenius  wrote:
>
> > > I am very excited for code split feature on Gwt 2.0 as the HTML code
> > > size after compiled already bloats to 850k. I give a quick try but it
> > > looks not work like a breeze. I know I have to do more research. I
> > > don't use lots of third party libraries, actually, only 2 libraries:
> > > GWT-DND, GWT-LOG. My GWT client code is about 350 classes.
>
> > > So, do you have any good practice to reduce code size? Does code split
> > > give you very good result?
>
> > > Or just tell us what is your compiled code size and how many your
> > > classes...

--

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




Re: GWT i18n - Dictionary message placeholders

2009-11-14 Thread rjcarr
I'm not entirely sure what you're asking.

A dictionary is obtained by parsing javascript objects (i.e.,
dictionary types).  In your javascript you can parameterize your
dictionaries all you want (as far as I know).  As far as something
more elaborate once the dictionary is built, I can't say I've seen
such a thing.

On Nov 13, 10:56 am, Jon Vaughan  wrote:
> Hi all,
>
> Just a quick query - is it possible to do placeholder substitution
> with messages obtained from a Dictionary? i..e into something like:
>
> permissionDenied = Error {0}: User {1} Permission denied.
>
> I couldn't see anything obvious in the doc or forums; does a
> Dictionary link in any way to a Messages instance?
>
> Thanks
>
> Jon

--

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




Does still work in GWT 1.6/7 ?

2009-11-14 Thread Steve C
I'm having trouble getting the above to work in a gwt.xml file, as in:

  
  

where my file structure is:

src/com/xyz/gwt/myapp/ --
 -- entrypoint/ --
 -- -- MyApp.java
 -- webresources/ --
 -- -- MyApp.css

--

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




Re: Major memory leak with RPC, Internet Explorer and GWT 2.0 (MS1 & MS2)

2009-11-14 Thread Ian Bambury
There are over 100 issues that are still 'New' which were reported 2 years
ago or more.


2009/11/14 Rob 

Issue 4133 was raised almost a month ago but doesn't seem to have been
> acknowledged yet - would anyone from the GWT team care to comment ?

--

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




Re: Error when running ant hosted on OS X 10.6

2009-11-14 Thread julian
Can be that (10.6.1, safari 4) uses 64bit architecture instead 32?
Have a look to: http://kb2.adobe.com/cps/509/cpsid_50983.html


On Nov 13, 4:41 pm, Kyle Hayes  wrote:
> I installed your new jar and I'm still getting the following error:
> ==
> hosted:
>      [java] On Mac OS X, ensure that you have Safari 3 installed.
>      [java] Exception in thread "main" java.lang.UnsatisfiedLinkError:
> Unable to load required native library 'gwt-ll'.  Detailed error:
>      [java] Can't load library: /usr/local/gwt-mac-1.7.1/libgwt-
> ll.dylib)
>      [java]
>      [java] Your GWT installation may be corrupt
>      [java]     at com.google.gwt.dev.shell.LowLevel.init(LowLevel.java:
> 106)
>      [java]     at com.google.gwt.dev.shell.mac.LowLevelSaf.init
> (LowLevelSaf.java:135)
>      [java]     at com.google.gwt.dev.BootStrapPlatform.initHostedMode
> (BootStrapPlatform.java:68)
>      [java]     at com.google.gwt.dev.HostedModeBase.
> (HostedModeBase.java:362)
>      [java]     at com.google.gwt.dev.SwtHostedModeBase.
> (SwtHostedModeBase.java:127)
>      [java]     at com.google.gwt.dev.HostedMode.(HostedMode.java:
> 271)
>      [java]     at com.google.gwt.dev.HostedMode.main(HostedMode.java:
> 230)
> ==
>
> Here is my install location contents:
> ==
> $ ls /usr/local/gwt-mac-1.7.1/
> COPYING                                 gwt-dev-mac.jar                       
>   libgwt-ll.jnilib
> COPYING.html                            gwt-dev-mac.jar.bak                   
>   libswt-agl-carbon-3235.jnilib
> about.html                              gwt-module.dtd                        
>   libswt-carbon-3235.jnilib
> about.txt                               gwt-servlet.jar                       
>   libswt-pi-carbon-3235.jnilib
> benchmarkViewer                         gwt-user.jar                          
>   libswt-webkit-carbon-3235.jnilib
> doc                                     i18nCreator                           
>   release_notes.html
> gwt-api-checker.jar                     index.html                            
>   samples
> gwt-benchmark-viewer.war                junitCreator                          
>   webAppCreator
> ==
>
> The gwt-dev-mac.jar.bak is the old jar and the non.bak is the
> *patched* one. Yet the error is still complaining about not finding
> libgwt-ll.dylib.
>
> On Nov 13, 2:25 am, bmalkow  wrote:> On 12 Lis, 
> 18:25, Kyle Hayes  wrote:
>
> > > Heh, you're right this is really ugly. However, it may be worth a try,
> > > but not on my work code ;-)
>
> > I use it only on development enviroment.
> > To production I use original GWT.
>
> > Someone else thinks similar to 
> > mehttp://gwtgeek.blogspot.com/2009/11/hosted-mode-crashes-after-os-upda...
> > ;)

--

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




Re: Major memory leak with RPC, Internet Explorer and GWT 2.0 (MS1 & MS2)

2009-11-14 Thread Rob
See http://code.google.com/p/google-web-toolkit/issues/detail?id=4133
and http://code.google.com/p/google-web-toolkit/issues/detail?id=4229

Issue 4133 was raised almost a month ago but doesn't seem to have been
acknowledged yet - would anyone from the GWT team care to comment ?

Cheers
Rob

On Nov 13, 2:18 pm, Rob  wrote:
> I've been trying out one of my existing apps with GWT 2.0 to see what
> advantages it has and have noticed a major memory leak when using RPC
> with Internet Explorer 8.0.
>
> Basically my application reads some values from a database and
> displays these in the browser every 1 second. I am seeing a memory
> leak of 16k per second - i.e. every time I make an RPC request the
> browser leaks 16k of memory. This eventually leads to an out of
> virtual memory system error. If I switch back to using GWT 1.7 then
> the problem goes away, there are no leaks at all.
>
> I have managed to reproduce the problem with a very simple RPC example
> which I can supply if required.
>
> Has anyone else noticed anything similar ?
>
> Cheers
> Rob

--

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




TaskEngine sample patched for GWT 2.0 MS 2

2009-11-14 Thread Stuart
All,

[excuse the cross posting to gwt/appengine]

The TaskEngine sample application (http://taskengine.googlecode.com)
by jaimeyap is a Google Web Toolkit application that runs on App
Engine (http://taskengine.appspot.com) but is especially designed for
use on iPhone.

TaskEngine depends on GWT Incubator (http://code.google.com/p/google-
web-toolkit-incubator) for CssResource, which is now folded into the
main GWT trunk with GWT 2.0 Milestone 2. (http://code.google.com/p/
google-web-toolkit/downloads/list?can=1&q=2.0+Milestone+2).

I have patched the TaskEngine sample code to remove the dependency for
the incubator jar, and use the updated annotations for CssResource and
ClientBundle available in GWT 2.0 MS 2. The patch is located at:
http://code.google.com/p/emcode/wiki/TaskEnginePatchGWT20MS2

I have posted a screencast of TaskEngine running in the iPhone SDK
emulator at: http://www.youtube.com/watch?v=LuJi6nadVhU

Stuart

--

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




Making ScrollTable scrollable using keyboard (up/down arrows)

2009-11-14 Thread myapplicationquestions
Hi All,

How can we make gwt incubators scrollTable scrollable using keyboards?
I want the user to be able to use "up" down keys to scroll the rows.
Is that possible?

Thanks,
Parag

--

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




IE8 and Compatibility View settings and ListBoxes

2009-11-14 Thread Danny
My version of IE8 was accidentally set to "Display all Websites in
Compatibility View".  This seemed to not hurt anything in my
application at first, but later I found that ListBoxes would not
display properly, i.e., not at all.  I guess GWT generates ListBox
code for IE8 that is not compatible with older versions.

I will make sure to inform my users to not use compatibility mode for
IE8.  IE8 permits selecting compatibility mode for specific websites,
but this is a bit messy.

I admit that this is a Microsoft, rather than GWT, problem.  Maybe it
is too late for 1.7, but would it be possible for 2.0 to generate
ListBox code for all versions of IE?  But, who knows what other
inconsistencies we will find from mighty Microsoft?

Thanks,

Danny

--

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




Re: GWT Hosted Mode crashing after Snow Leopard 10.6.2 Update

2009-11-14 Thread hugues


On 12 nov, 18:39, hugues  wrote:
> On 12 nov, 13:35, Daniel Kurka  wrote:
>
> > I found a very UGLY solution to my problem (which enables me to continue
> > working).
>
> > I replaced in LowLevelSaf.java public static native void gcUnprotect(int,
> > int); to public static void gcUnprotect(int, int) {}
>
> I've built a file for GWT 1.5.3 on that same pattern if people are
> insterested... but I've got nowhere to put it. It's +9MB.

It's finally here: 
http://org.labarben.s3.amazonaws.com/gwt-saf-fix/gwt-dev-mac.jar

- Hugues

--

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




Joseph Favara/HQ/Corp/OAI is out of the office.

2009-11-14 Thread Joseph . Favara

I will be out of the office starting  11/13/2009 and will not return until
11/16/2009.

I will respond to your message when I return. If this is urgnet please
contact Narayanan Pillai at 105986

--

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




Re: Force image caching in gallery

2009-11-14 Thread Vasily Vasilkov
>
> If you are images are dynamic, or if you are not using GWT 2.0, you will
> have to set appropriate HTTP Cache headers when the image is served.


Could you please clarify - what feature I can use in GWT 2.0 instead of
setting http headers?

--

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




Re: Local call to a service instead RPC

2009-11-14 Thread Sripathi Krishnan
>
> My all application is running in the same JVM
>
I think you have the wrong idea about GWT.
GWT eventually compiles client side code into javascript. The Service call
is something that the javascript code executing in browser makes to your
server side code which is written in java. Hence, the concept of a Local
Interface doesn't make sense at all.


--Sri


2009/11/13 Badawi 

> Hi,
> Every call to a Service is a Remote Call?
> My all application is running in the same JVM, why I have to "force"
> all calls to and Remote Service and the serialize/deserialize the
> object?
>
> Is there a way to create a Asyncronous call to a Local Service?
> Because if I dont need to serialize the returning object, I can use
> Lazy Loading approach in my data layer.
>
> 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=.
>
>
>

--

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




Re: simple question (offtopic?)

2009-11-14 Thread Sripathi Krishnan
GWT is just plain old javascript at the end of the day. Since it is not
possible to achieve this use case in javascript, you can't do it in GWT.

Google Gears (a browser extension) provides a way to drag and drop files and
upload them to the server. I haven't tried it myself, but this
articleexplains
the concept.

--Sri


2009/11/11 K. 

> Hi there.
>
> I'm interested in being able to implement this scenario:  Being able
> to save straight to server an image from clipboard.  This is to ease
> the transfer of images from word documents/emails into our wiki-fied
> knowledgebase.
>
> I would love if people could click a link in the wiki to "upload image
> from clipboard", I'm running apache/php/mysql-based wiki.
>
> I would love if people could do this in IE/Firefox/chrome
>
> - me googling how to do this hasn't come up with many answers, so I've
> been trying to see what programming language could help me get as
> close to what I want as possible.. but as I'm a beginner, I'm not able
> to understand what's best to use and how to best use it, and although
> I'm interested in trying Google Web Toolkit, I don't know enough to
> tell whether it's something I can use.
>
> If someone knowledgeable can recommend or theorize what solution I
> should be looking towards as an implementation, I'd appreciate it.
>
> K.
>
> --
>
> 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=.
>
>
>

--

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




Re: Force image caching in gallery

2009-11-14 Thread Sripathi Krishnan
Are the images dynamic (user can upload them), or static (known at compile
time)?

If the images are from a fixed set of images that are available at compile
time, you should consider using
ImageBundle.
It would take care of most of your concerns. In addition, it can bundle
multiple images in a single file, saving further http round trips.

If you are images are dynamic, or if you are not using GWT 2.0, you will
have to set appropriate HTTP Cache headers when the image is served.
Essentially, your server tells the browser "This image is not going to
change for the next few years, so you can cache it till then without
bothering to ask me if it has changed".

A typical strategy is assigning every image a unique name based on a MD5
hash of its contents. You then set a far in the future expiry date on that
image, so that browser doesn't go back to the server to see if it has
changed. If the image changes, you will generate a totally different file
name, and hence the browser will download it again.

--Sri


2009/11/11 dicko 

> Hi there
>
> I've setup a basic GWT app that's essentially an image gallery.  The
> gallery works by updating an Image widget with widget.setURL('url')
> either by clicking a forward or back button.  To reduce bandwidth, the
> images are only loaded as they're requested (ie. by clicking the
> forward button).
>
> However, images are being forcibly reloaded when a use clicks the back
> button rather than retrieving a cached image stored by the client's
> browser.  Obviously, in an attempt to speed the page load and reduce
> bandwidth, it would be preferable to use a cached image rather than
> reloading the same image every time it's requested.
>
> Has anybody else had this problem and is there any way around this?
>
> --
>
> 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=.
>
>
>

--

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




Re: General question about project architecture.

2009-11-14 Thread Sripathi Krishnan
Multiple modules is the wrong way to use GWT.

GWT highly recommends using a single module. Most of the performance
optimizations GWT does relies on the fact that you have a single, monolithic
module. Plus, as you observed, the time to build your application keeps
growing as you add more modules, so it doesn't scale well.

Part of the problem is deciding whether you are building a "Web App" or a
"Web Site". Lots of
discussionscan
be found on this topic.

GWT is great if you want to build a Web App. Typically, there is only a
single HTML page, and different "screens" are manipulated on the client side
using DOM. But if you are building a traditional, multi-page Web Site
(nothing wrong with that), then GWT is not for you. You are better off using
one of the many javascript libraries.

So, lets assume you decide you want to build a web-app, and want to use GWT
to do so. To get started, stick to a single HTML page with a single GWT
Module/Entry Point. Adding multiple "screens" is adding a new FlowPanel or
Composite with your content. Or perhaps, you have all "screens" built into
the original HTML page, and you just hide/unhide the divs based on user
action.

The above approach works well if you have a few (say less than 10) screens.
If your application grows bigger and more complex, you would want to start
following some established patterns. The MVP pattern has been touted as the
"way to build web-apps". Just do a google search, there are a lot of
articles on that subject. Also, catch Ray Ryan's talk on GWT Architecture
and best 
practices.



--Sri


2009/11/13 David C. Hicks 

> Specifically, I'm curious about the use of GWT Modules in a project.
>
> Each time we have a new "screen" to create, we have been adding a new
> module to our project.  Of course, with each new module, there is an
> additional build cycle to generate the Javascript for that module.  What
> I'm wondering is if this is normal, or does it make more sense to try to
> build up whole applications in a single module and perhaps keep the
> build time down?  Each new module we add appears to increase our build
> time by about 1.5 minutes.  It won't be long and this will be way beyond
> painful.
>
> Any thoughts?
> Thanks,
> Dave
>
> --
>
> 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=.
>
>
>

--

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




Re: RunAsyncCallback

2009-11-14 Thread Sri
Just in case someone reads through this issue later - there is an
interesting discussion on using GIN with runAsync() over here -
http://code.google.com/p/google-gin/issues/detail?id=61


On Oct 30, 8:34 pm, Sripathi Krishnan 
wrote:
> I haven't tried it out with GIN / DI.
> I am 'guessing' that it won't work , but I could be wrong.
>
> --Sri
>
> 2009/10/29 skrat 
>
>
>
> > Okay, that's kind of clear. Async Package (gateway class) looks nice,
> > but how does it fit within Gin and DI?
>
> > On Oct 26, 4:24 am, Sripathi Krishnan 
> > wrote:
> > > Maybe somebody from google will confirm this, but I doubt you are going
> > to
> > > achieve code splitting by using proxies or interfaces, or by using any
> > > generic parameterized approach.
>
> > > A piece of code will end up in split-point-1.js *only if* it is always
> > being
> > > used from within GWT.runAsync(). If a class can be used from two separate
> > > GWT.runAsync() method blocks, it is going to end up in the left-overs
> > block.
>
> > > Now here is my understanding of the situation (of course I may be wrong)
> > -
>
> > >    - You have two instances of the class AsyncLoader, say LoaderA and
> > >    LoaderB, with two unique providers - say ProviderA and ProviderB
> > >    - GWTC recognizes that there will be two GWT.runAsync() blocks, which
> > is
> > >    why it creates two split points
> > >    - But it cannot guarantee that LoaderA will always get ProviderA, and
> > so
> > >    it should put the code for ProviderA in split-point1.js
> > >    - So, it knows that the entry point is not using ProviderA or
> > ProviderB -
> > >    which is why it is not in the initial download fragment. But it cannot
> > >    guarantee it will always be used from a unique code fragment, which is
> > why
> > >    it ends up in the left-over fragment.
> > >    - When you use the inline implementation, you will hard-code the
> > actual
> > >    provider - and hence things will work.
>
> > > The only pattern that works well is Googles recommended "Async Package
> > > Patter". See this
> > > presentation<
> >http://dl.google.com/io/2009/pres/Th_1045_TheStoryofyourCompile-Readi...>.
>
> > > --Sri
>
> > > 2009/10/25 skrat 
>
> > > > I'm trying to split my code using sort of proxies, where I reuse
> > > > parametrized RunAsyncCallback class. This class has basically  just
> > > > reference to Gin Provider of the real module class. When I use this
> > > > for loading one module, it works perfectly, and I'm getting nice and
> > > > correct location of split point in report. When I use this second
> > > > time, loading different module proxy which uses the same
> > > > RunAsyncCallback class, both split points happen to be in Leftovers
> > > > code. Yet, split point on my proxies are still listed in report, but
> > > > with the same minimal (386) size.
>
> > > > I tried to use inline implementation of RunAsyncCallback instead, and
> > > > surprise! Split points worked correctly again.
>
> > > > Here is my parametrized RunAsyncCallback class:
>
> > > > class AsyncLoader implements RunAsyncCallback {
>
> > > >    private ProjectPresenter parent;
> > > >    private PlaceManager placeManager;
> > > >    private Provider real;
>
> > > >    AsyncLoader( ProjectPresenter parent,
> > > >                 Provider real,
> > > >                 PlaceManager placeManager ) {
>
> > > >        this.placeManager = placeManager;
> > > >        this.parent = parent;
> > > >        this.real = real;
> > > >    }
>
> > > >   �...@override
> > > >    public void onFailure(Throwable reason) {
> > > >        // TODO Auto-generated method stub
>
> > > >    }
>
> > > >   �...@override
> > > >    public void onSuccess() {
> > > >        AbstractLabeledPresenter mod = real.get();
> > > >        parent.addModule( mod );
>
> > > >        if ( mod.hasToken( History.getToken() ) ) {
> > > >            mod.revealDisplay();
> > > >            parent.show(mod);
> > > >            placeManager.fireCurrentPlace();
> > > >        }
>
> > > >    }
> > > > }
>
> > > > This is inner class defined in AbstractLabeledPresenter, that's the
> > > > same one I'm proxying and loading with GWT.runAsync. @Inject
> > > > annotation is not present because injection is done on proxy class
> > > > which in turn instatiates AbstractLabeledPresenter$AsyncLoader.
>
> > > > Not sure whether this is bug, but I can't see any linking or any other
> > > > rason why that code should end up in Leftovers and have empty, zero
> > > > size split points.

--

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




Re: Error when running ant hosted on OS X 10.6

2009-11-14 Thread bmalkow
On 14 Lis, 09:45, "Hayes, Kyle"  wrote:
> Yes that would be great!

http://demo.ovh.net/download/d3c8cd1708cabf4e6bbb24fe2eef8b53/gwt-mac-1.7.1-bmalkow.tar.gz

file will be available for: 4 days, 23 hours, 58 minutes

--

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




Re: Error when running ant hosted on OS X 10.6

2009-11-14 Thread Hayes, Kyle
Yes that would be great!

On Nov 14, 2009, at 12:28 AM, "bmalkow"   
wrote:

> On 13 Lis, 16:41, Kyle Hayes  wrote:
>> I installed your new jar and I'm still getting the following error:
>
>
> This is not my jar. ;)
>
> I checked out releases/1.7 from GWT svn and I compiled it myself. Then
> I use whole generated GWT distro, not only new JAR.
>
>
> If You don't want build GWT yourself I can send You my.
>
> --
>
> 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.com 
> .
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl= 
> .
>
>

--

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




Re: Error when running ant hosted on OS X 10.6

2009-11-14 Thread bmalkow
On 13 Lis, 16:41, Kyle Hayes  wrote:
> I installed your new jar and I'm still getting the following error:


This is not my jar. ;)

I checked out releases/1.7 from GWT svn and I compiled it myself. Then
I use whole generated GWT distro, not only new JAR.


If You don't want build GWT yourself I can send You my.

--

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