Re: General question about project architecture.

2009-11-15 Thread David C. Hicks
Thanks for the replies, guys, and yes that's a great explanation!  We're
very new to GWT.  So, clearly we're learning these ins and outs.

Unfortunately, we started with a Struts2-based application, and we're
only adding new "screens" in GWT as they come up.  I'll have to think
about it, but it's kind of hard to see, right now, how I can consolidate
those into a single module.  I definitely can see the benefits, now that
you've explained it, though.

Thanks again,
Dave

rjcarr wrote:
> 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=.
>
>
>   

--

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-15 Thread Zak
I do the same as rjcarr

It's also really convenient if you have a header row (with the names
of the columns, for example). then to clear the data you can do:

while (table.getRowCount() > 1)
   table.removeRow(1);

it's too bad FlexTable#clear() only removes the widgets... it's never
been useful enough to use for me :P

On Nov 14, 3:53 pm, rjcarr  wrote:
> 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: Problem with Eclipse and GWT

2009-11-15 Thread Christoph Breidert
Thanks everyone for the replies. Great news group.

I fixed the problem by changing to Sun's JDK in eclipse's project
settings

Instead of /usr/lib/jvm/java-6-openjdk
I now use /usf/lib/jvm/java-6-sun-1.6.0.16

Now everything work's nice and smoothly just like before I upgraded
Ubuntu.

Cheers,

Christoph

On 9 Nov., 21:39, Christoph Breidert  wrote:
> Hi everyone,
>
> I had Eclipse 3.4 and GWT running perfectly under Ubuntu 9.04.
>
> Since I updated Ubuntu to the latest version 9.10 I cannot start the
> hosted mode browser any more. It just starts briefly and the closes
> again. Also nothing responds onhttp:// localhost:8080. I tested this
> with Eclipse 3.4 and 3.5 both give the same error.
>
> The console log is this:
>
> 09.11.2009 20:30:44 com.google.apphosting.utils.jetty.JettyLogger info
> INFO: jetty-6.1.x
> 09.11.2009 20:30:45breidert.bse.server.EncodingFilter init
> INFO: Filter EncodingFilter initializing...
> 09.11.2009 20:30:45breidert.bse.server.EncodingFilter init
> INFO: Using encoding: UTF-8
> 09.11.2009 20:30:46 com.google.apphosting.utils.jetty.JettyLogger info
> INFO: Started selectchannelconnec...@0.0.0.0:8080
> The server is running athttp://localhost:8080/
> /usr/lib/jvm/java-6-openjdk/bin/java: symbol lookup error: /usr/lib/
> xulrunner-1.9.1.4/libxul.so: undefined symbol:
> PR_GetPhysicalMemorySize
>
> The error tells me nothing, googling also does not bring anything that
> makes sense to me. If anybody has an idea or hint it would be
> appreciated, I have spent too much time and headbanging on this.
>
> Cheers and thx, Christoph

--

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




Handling Oracle TIMESTAMP(3) with GWT 1.7.1, GXT 2.0.4 and Hibernate

2009-11-15 Thread Robert La Ferla
I have database tables that contain some columns of type TIMESTAMP(3).  
I map these in Hibernate using "timestamp" in the XML mapping file.  The 
corresponding Java class uses "Date".  This gets passed over GWT-RPC to 
the client that is using GXT 2.0.4 to display those records in a Grid.  
The problem is that the Grid doesn't sort the date fields properly.  As 
ExtJS has claimed that it's not a bug in GXT, I am wondering if it's 
somehow a problem in how the column is mapped and converted.  Thoughts?

--

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




Simple example on using gwt-incubator PagingScrollTable

2009-11-15 Thread Davis Ford
I just slapped this blog entry together with a simple example on using
PagingScrollTable from gwt-incubator.

http://zenoconsulting.wikidot.com/blog:17

Hope someone finds it useful.

Regards,
Davis

--

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: Which is the best way to manage many rows in a table with pagination?

2009-11-15 Thread Davis Ford
Ok, as promised, here is how I'm using the widget:
http://zenoconsulting.wikidot.com/blog:17  -- hope it helps.

Regards,
Davis

On Thu, Nov 12, 2009 at 9:28 PM, Yozons Support on Gmail
wrote:

> That would be awesome.  I'll keep my eyes out for your posting.  I would
> love to use it, but there is a huge learning curve already with GWT (I am
> not even a GUI programmer other than good old HTML+CSS generated by JSPs)
> and there's nothing like an example that makes use of the various classes to
> speed up our own development.
>
> I don't have big data volumes (yet), but I expect to show lots of our
> objects using tables, with the ability to click on rows to bring up editors,
> etc.   I hope your examples will help me with this...  Thanks again 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=.
>



-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

--

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: incubator's PagingScrollTable(pagination+Sorting)

2009-11-15 Thread Davis Ford
Hi, here's a blog post I made that shows how I'm using the widget.  It may
help if you are still looking for a solution.

http://zenoconsulting.wikidot.com/blog:17

Regards,
Davis

On Wed, Nov 4, 2009 at 2:40 AM, shloka  wrote:

>
> Thanks Davis !
>
> Yes,I saw the Bug u have reported.
>
>
> I tried with gwtlib.jar and sample code  given for this in the link
> http://code.google.com/p/gwtlib/
> They use PagingTable and write the comparator code for sorting...
> The approach is same as you have suggested...
>
> So now i have to decide weather to go for PagingScrollTable of
> incubator or PagingTable of gwtlib :)
>
>
> Thanks!!
>
> On Nov 3, 8:36 pm, Davis Ford  wrote:
> > Sorting does seem to work out of the box.  I ended up building my own
> > comparators.
> >
> > Here's an example of what I did.  I was going to write up a longer blog
> > entry on this -- just haven't had time.
> >
> > Let's say I have a simple object like this for my RowValue:
> >
> > public class Person {
> >private final String first;
> >private final String last;
> >public Person(String first, String last) { first = first; last = last;
> }
> >public String getFirst() { return first; }
> >public String getLast() { return last; }
> >
> > }
> >
> > So, I have to define my table model for Person =>
> >
> > private final classs DataSourceTableModel extends
> MutableTableModel
> > {
> >
> > private List list = new ArrayList();
> >
> > public void setData(List list) { this.list = list; }
> >
> > public void requestRows(final Request request,
> > TableModel.Callback callback) {
> > callback.onRowsReady(request, new Response() {
> > @Override
> > public Iterator getRowValues() {
> > int col =
> > request.getColumnSortList().getPrimaryColumn();
> > boolean ascending =
> > request.getColumnSortList().isPrimaryAscending();
> >
> > /* col tells you which column the user clicked and
> > ascending indicates whether to sort up/down */
> > /* i wrote my own Sorter class that knows how to sort
> a
> > collection of my own RowValue T here */
> > /* return the iterator of your sorted collection */
> >}};
> >  }
> >
> > }
> >
> > There's a bit more to it, but I found that PagingScrollTable does not
> sort
> > by itself -- never worked for me.  I filed a bug on it.  Thus, I do the
> > sorting myself, and it works well.
> >
> > Hope that helps,
> > Davis
> >
> > On Mon, Nov 2, 2009 at 11:35 PM, shloka  wrote:
> >
> > > Hi All,
> > > I am trying to implement pagination and sorting using the Incubator's
> > > paging scroll table .Could do pagination but Sorting is not happening.
> > > Please pool in some ideas to solve this.Any guidence is highly
> > > appreciated.
> > > Thanks in Advance.
> >
> > --
> > Zeno Consulting, Inc.
> > home:http://www.zenoconsulting.biz
> > blog:http://zenoconsulting.wikidot.com
> > p: 248.894.4922
> > f: 313.884.2977
> --~--~-~--~~~---~--~~
> 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=en
> -~--~~~~--~~--~--~---
>
>


-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

--

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




GWTTestCase + Spring

2009-11-15 Thread dadodev
I'm working on a GWT (1.7) application that uses Spring and Hibernate
on the server side that is secured with SpringSecurity and CAS.
I want to create some client side tests using GWTTestCase to test the
UI and Asynch behavior of the application.

I have two problems/questions regarding GWTTestCase:
1) is it possible to customize the web.xml used by the GWT shell
started by GWTTestCase? If yes, how? I need to customize the web.xml
used by GWTTestCase to disable the application security mechanism in
my tests, otherwise I cannot call the remote services which are
secured.
2) it's my understanding that the code I write for a GWTTestCase is
like GWT client code, ie. I cannot use non-serializable classes: am I
correct? If I'm wrong, is there a way to get to the Spring context in
a GWTTestCase?

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




embedding into another site

2009-11-15 Thread Davidj2k
I am fairly new to GWT and I am trying to create an application that
can be embedded into another site easily such as the other site
identifying a div to place my application in, the problem I have run
into is cross domain issues, I have looked at using an IFrame but ran
into problems with that as well because I am needing to have access to
javascript objects I am creating using GWT and GWTExport, I have seen
that I should be able to turn on xs in the gwt.xml file but that does
not seem to do anything and if it does I am unaware of how it is doing
it I read there should be an XS javascript file but I do not have that
when I compile the application, any example sites anybody could point
me to 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=.




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

2009-11-15 Thread Backslash
Yes.

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

On Nov 13, 8:18 am, 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=.




Re: can't inherit gwt maps module

2009-11-15 Thread Stephen Walsh
Brady,

If you right-click on your project and select "Properties" you can add an
external JAR file.  Or better yet, create a new plain folder and put all of
your jar files in there.  Then you can reference the library.  I'm at work
and can't send you a screen shot of my setup, but let me know if you need
any other help on how to make that happen.  I had the same trouble trying to
include the AJAX search api for GWT.

On Thu, Nov 12, 2009 at 11:01, Brady  wrote:

> I am using the google plugin for eclipse.  The getting started page
> that you referenced, itself references the GWT startup instructions
> for GWT 1.5.  The projectCreator and applicationCreator utilities seem
> to be no longer a part of the newer versions.  What steps should
> replace the ones that reference those scripts?
>
>
> On Nov 12, 7:26 am, Eric Ayers  wrote:
> > Official getting started page:
> >
> > http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis...
> >
> > If you are not using the Google Plugin for eclipse, you may have to
> > carefully setup your run configuration.
> >
> >
> >
> > On Tue, Nov 10, 2009 at 4:05 PM, Brady  wrote:
> > > I've been trying to build a simple GWT app using GWT-maps.jar, like
> > > the one at:
> > >http://gwttutorials.com/2009/07/28/setting-up-google-maps-with-gwt/
> >
> > > Despite following the instructions, I still get error messages like
> > > this one:
> > > No source code is available for type
> > > com.google.gwt.maps.client.geom.LatLng; did you forget to inherit a
> > > required module?
> >
> > > I cannot find anything wrong with my application.gwt.xml file, which
> > > includes the following lines:
> >
> > >
> > >

"__gwt_historyFrame" Why not dynamically put it on the webpage?

2009-11-15 Thread sixcorners
Is it possible to put the hidden iframe for the History class onto the
webpage from inside the toolkit? Maybe just send it for the browsers
that need it too?

--

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-15 Thread rolf
What's the best way to create a web app with multiple entry points but
a lot of common code (eg. common widgets and dialogs) shared between
them, as well as a common server back end? Currently I'm creating
multiple modules and multiple HTML pages within a single web app but
I'm also worried about scalability. The different entry points
correspond to different workflows depending on what the user is trying
to do, or perhaps customised versions of the interface for particular
customers.

I guess I should probably have a single module and top level entry
point and then switch between interfaces from there but that will
involve a lot of code refactoring.

-Rolf

On Nov 14, 11: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: GWT i18n - Dictionary message placeholders

2009-11-15 Thread TimP
Hi Jon,
 I have/had the same problem.  I just wrote a wrapper for the
Dictionary class.  I'm surprised I couldn't find an easy way to do it.
You can try this code if you want, although I don't guarantee its
correctness or quality.  It works like the dictionary class with the
addition of the get(, ) method:

package net.timp.gwtmaps.client;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import com.google.gwt.i18n.client.Dictionary;

public class PlaceholderDictionary {
private static Map cache =
new HashMap();

private Dictionary dictionary;

public static PlaceholderDictionary getDictionary(java.lang.String
name) {
PlaceholderDictionary target = cache.get(name);
if (target == null) {
target = new PlaceholderDictionary(name);
cache.put(name, target);
}
return target;
}

private PlaceholderDictionary(String name) {
dictionary = Dictionary.getDictionary(name);
}

public String get(String key) {
return dictionary.get(key);
}

public String get(String key, String ... values) {
String string = dictionary.get(key);

int i = 0;
for ( String value : values ) {
string = string.replace("{" + i + "}", value);
}
return string;
}

public Set keySet() {
return dictionary.keySet();
}

public Collection values() {
return dictionary.values();
}

@Override
public String toString() {
return dictionary.toString();
}
}



On Nov 13, 7:56 pm, 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=.




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

2009-11-15 Thread Edgenius
It looks no one care about initial loading performance. My project
single HTML is 850k, after gzip is about 200k.  OK, maybe I am too
critical

On Nov 15, 7:50 am, rjcarr  wrote:
> 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=.




misconfigured serializable class on the server

2009-11-15 Thread Aaron
Hi, I tried to use GWT with a third part libraries like gwt-log and
smartgwt .Application works great in the hosted mode but in the web
mode i get this exception..

ERROR: Could not find class 'com.google.gwt.json.client.JSONException'
listed in the serialization policy file
'32956641F1FE87B7499C46DC0A9FDB24.gwt.rpc'; your server's classpath
may be misconfigured
java.lang.ClassNotFoundException:
com.google.gwt.json.client.JSONException
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1204)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at
com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream
(SerializationPolicyLoader.java:129)
at
com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream
(SerializationPolicyLoader.java:71)
at
com.stagirus.framework.rpc.GWTRPCServiceExporter.doGetSerializationPolicy
(GWTRPCServiceExporter.java:181)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy
(RemoteServiceServlet.java:117)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead
(ServerSerializationStreamReader.java:429)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234)
at com.stagirus.framework.rpc.GWTRPCServiceExporter.processCall
(GWTRPCServiceExporter.java:428)

i could think of two solution right now.
 either remove the jar which is causing the issue or have to place the
missing class on the server.

It would be of great help if some one can throw some light .

--

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




GWT generate code does not load in firefox

2009-11-15 Thread siddharth
My code works fine in IE8, but on firefox 3.5, the javascript fails to
load.

I changed the codegen to detailed mode and tried to figure out why
using firebug. THis is the error I get:

com_google_gwt_dom_client_DOMImplMozilla_
$getBodyOffsetLeft__Lcom_google_gwt_dom_client_DOMImplMozilla_2Lcom_google_gwt_dom_client_Document_2_style_0
is null

how do I figure out what the problem is ? SOmething to do with the
CSS?

thanks, your help appreciated
Siddharth

stack trace>>
com_google_gwt_dom_client_Document_
$getBodyOffsetLeft__Lcom_google_gwt_dom_client_Document_2(Document
qbsearch.html)FC971AE8...ache.html (line 599)
com_google_gwt_user_client_ui_PopupPanel_
$setPopupPosition__Lcom_google_gwt_user_client_ui_PopupPanel_2II
(, Object name=left value=0, Object name=top
value=0)FC971AE8...ache.html (line 5178)
com_google_gwt_user_client_ui_DialogBox_
$DialogBox__Lcom_google_gwt_user_client_ui_DialogBox_2()FC971AE8...ache.html (line 5372)
com_intuit_search_client_Qbsearch2_
$Qbsearch2__Lcom_,_client_Qsearch2_2
(com.intuit.search.client.qbsear...@2)FC971AE8...ache.html (line 8298)
init()FC971AE8...ache.html (line 11000)
gwtOnLoad(Object name=errFn, "qbsearch2", "https://sb/";)
FC971AE8...ache.html (line 11014)
maybeStartModule()qsearch...ocache.js (line 39)
anonymous()qsearch...ocache.js (line 215)
FC971AE816AD9EEF5906AB56B24F3639.cache.html()FC971AE8...ache.html
(line 11023)
[Break on this error] return
com_google_gwt_dom_client_DOMIm...nt_Document_2_style_0.borderLeftWidth);
\n

--

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




How to handle the returned response from the server

2009-11-15 Thread Jey
I am trying to post data to the server using FormPanel widget. In my
case the server returns a jsp page,so can anyone tell me how should i
handle the results in my page so that i can display the returned jsp
page.
public void onSubmitComplete(
FormSubmitCompleteEvent event)
{
  what should i do here???
}

and also how can i associate an entry point class to the resulting jsp
page???

--

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




Too much is happening (the events are crowding the bus)?

2009-11-15 Thread slind...@gmail.com
I am attempting to implement the EventBus pattern and I find myself
creating a LOT of Events (extending GwtEvent). I'll try to illustrate
what I mean with my Car object. I have a list of cars and a button
called "Add Car". This button has a ClickHandler attached which will
fire a AddCarEvent.

This AddCarEvent in turn triggers the display of a dialog where the
user can enter details of the car like make, model, etc. This dialog
naturally has a button called "Save" with another ClickHandler
attached. This ClickHandler fires a new event slightly different from
AddCarEvent since we now have some details of the car, so I'm calling
this event AddNewCarEvent. The event bus has a listener that triggers
when this event is fired and makes an asynchronous call to the server
with the details of the new car. The server returns the newly created
Car object (or id of it), and a new CarAddedEvent is created (this
event in turn might trigger a LoadCarsEvent to refresh the list of
cars).

I figured I can save myself from the AddNewCarEvent by adding
properties like "model", "make" etc to the AddCarEvent object. If they
are set I'll make the async call, if not I'll display the dialog. This
saves one Event class but I still think there must be some better way.
This is just one object, and one simple action; but it quickly gets
out of hand when adding more objects and actions (ie. a Car could have
StartCar, StartNewCar, CarStarted, StopCar, StopNewCar, CarStopped
events and so on..).

I hope this doesn't sound too crazy, and I hope someone has some ideas
to improve and perhaps simplify this, unless this actually is a
"natural" side effect of this pattern?


Thanks and regards,
Stian

--

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




How to test suggestBox

2009-11-15 Thread zoe.Liao
Hi,I have got a problem when I use selenium to test suggestBox.I
cann't ensureDebugId to the suggestBox popup's items.And the items
ids  changed everytime I clicked  the box.It seems that the id are set
some default values as "gwt-uid-*".

Thanks a lot.

--

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




just completed the stockwatcher tutorial..

2009-11-15 Thread doright
which was an excellent training tool.

However I'm at the bit where I'm deploying my RPC-based web app to my
local apache-tomcat installation.(see
http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html#DevGuideRPCDeployment)

The normally fantastic instructions seem to be lacking here, unless
I've missed something.  It says :
"If you created your project with webAppCreator, you can simply run
ant war in your project directory"

Problem is I didn't use webAppCreator, I used the New Web Application
Project wizard that comes with Eclipse.

So, how do I retrospectively create my build.xml etc?

many thanks for the help, apologies if I missed the obvious..

--

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




GWT Chat

2009-11-15 Thread Jim
hi,

I'd like  make a chat using GWT  1.7 but gwt doesn't allow the use of
socket ? Have you got any idea for the communications client/server?
i've tested the gwt-socket but the project is not active ... i've
heard the library comet could help me, what do you think about it ?

Thx a lot

--

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 2.0 ms1 RPC issue IncompatibleRemoteServiceException: Parameter 0 of is of an unknown type 'java.lang.String/2004016611'

2009-11-15 Thread Tristan
ditto

On Oct 15, 8:39 pm, tskaife  wrote:
> While running in either hosted mode, or compiled I get this error. I
> have no problems with RPC calls that pass primitive types. But I've
> tried both java.lang.String and java.lang.Long and get the same
> results. I've tried both JDK 1.6.0_10 and 1.5.0_21 to no avail. I'm on
> Linux, if that matters, and haven't had any problems with the
> application while using GWT 1.7.1, 1.7.0, 1.6.4... Any insights on
> what it might be would be much appreciated.
>
> com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
> Parameter 0 of is of an unknown type 'java.lang.String/2004016611'
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance
> (NativeConstructorAccessorImpl.java:39)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> (DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> 105)
>         at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
> 71)
>         at com.google.gwt.dev.shell.OophmSessionHandler.invoke
> (OophmSessionHandler.java:146)
>         at
> com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn
> (BrowserChannel.java:1573)
>         at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
> (BrowserChannelServer.java:124)
>         at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
> (ModuleSpaceOOPHM.java:120)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 502)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
> (ModuleSpace.java:275)
>         at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
> (JavaScriptHost.java:91)
>         at
> com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer.instantiate
> (transient source for
> com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
>         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:146)
>         at
> com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn
> (BrowserChannel.java:1573)
>         at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
> (BrowserChannelServer.java:124)
>         at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
> (ModuleSpaceOOPHM.java:120)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 502)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
> (ModuleSpace.java:275)
>         at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
> (JavaScriptHost.java:91)
>         at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap
> $.instantiate$(SerializerBase.java)
>         at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate
> (SerializerBase.java:140)
>         at
> com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize
> (ClientSerializationStreamReader.java:114)
>         at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
> (AbstractSerializationStreamReader.java:61)
>         at
> com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
> (RequestCallbackAdapter.java:199)
>         at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
> (Request.java:316)
>         at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
> (Request.java:288)
>         at com.google.gwt.http.client.Request.fireOnResponseReceived
> (Request.java:270)
>         at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange
> (RequestBuilder.java:396)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
>         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:146)
>         at com.google.gwt.dev.shell.Browser

Re: GWT 1.7.1 don't show app in hosted mode (Jetty bug: FULL head)

2009-11-15 Thread Stephen Graham
I am getting a similar error:
Nov 15, 2009 7:24:24 PM com.google.apphosting.utils.jetty.JettyLogger
info
INFO: jetty-6.1.x
Nov 15, 2009 7:24:25 PM com.google.apphosting.utils.jetty.JettyLogger
info
INFO: Started selectchannelconnec...@0.0.0.0:8080
The server is running at http://localhost:8080/
2009-11-15 14:24:25.396 java[58372:80f] [Java CocoaComponent
compatibility mode]: Enabled
2009-11-15 14:24:25.400 java[58372:80f] [Java CocoaComponent
compatibility mode]: Setting timeout for SWT to 0.10
Nov 15, 2009 7:24:25 PM
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext
disableTransportGuarantee
INFO: Ignoring  for /* as the SDK does not
support HTTPS.  It will still be used when you upload your
application.
Nov 15, 2009 7:24:25 PM
com.google.apphosting.utils.jetty.AppEngineAuthentication
$AppEngineAuthenticator authenticate
INFO: Got /console.html but no one was logged in, redirecting.
Nov 15, 2009 7:24:27 PM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: handle failed
java.io.IOException: FULL head
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)
Nov 15, 2009 7:24:27 PM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: handle failed
java.io.IOException: FULL head
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)

I am running from Eclipse Galileo, on a Mac, GWT 1.7.1, GXT 2.0.1.

Does anyone know the name of the file that is keeping the cookies for
the hosted mode browser?

On Nov 2, 11:45 pm, Rodrigo  wrote:
> Hi,
>
> Same here.
>
> GXT does use cookies for storing theme related things.
>
> See:http://www.extjs.com/deploy/gxtdocs/com/extjs/gxt/ui/client/state/Sta...
>
> It seems it is writing the cookies many times on the file
> @localhost[1].txt.
>
> After deleting this file my application seems to work. I say "seems"
> because there
> is another error that looks like has nothing to do with the original
> post.
>
> [ERROR] Unable to load module entry point class com.xxx.App (see
> associated exception for details)
> com.google.gwt.core.client.JavaScriptException: (TypeError):
> '$doc.defaultView' is null or not an object
>  number: -2146823281
>  description: '$doc.defaultView' is null or not an object
>         at
> com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl.getComputedStyle
> (Native Method)
>         at
> com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl.getStyleAttribute
> (ComputedStyleImpl.java:27)
>         at com.extjs.gxt.ui.client.core.El.getStyleAttribute(El.java:1236)
>         at com.extjs.gxt.ui.client.util.IconHelper.createStyle
> (IconHelper.java:77)
>         at com.extjs.gxt.ui.client.util.IconHelper.create(IconHelper.java:
> 107)
>         at com.extjs.gxt.ui.client.util.IconHelper.create(IconHelper.java:93)
>         at com.extjs.gxt.ui.client.widget.button.Button.setIconStyle
> (Button.java:357)
>         at com.xxx.App.Editor.(Editor.java:104)
>         at com.xxx.App.onModuleLoad(App.java:27)
>
> R.
>
> On Oct 28, 1:12 pm, Rajeev Dayal  wrote:
>
> > Hm, I would have expected that to work. Can you verify that when this
> > problem happens, you have large cookies in the directories that you tried to
> > clear?
>
> > I believe that the Vista cookies directory is:
>
> > C:\Users\ your user name\AppData\Roaming\Microsoft\Windows\Cookies
>
> > 2009/10/17 lain 
>
> > > > My suspicion is that there is some sort of cookie problem
> > > You are completely right.
>
> > > Now my application works fine without any configurations (because
> > > cookies expiration date has come, I think), so this bug was really a
> > > problem with cookies.
> > > But this problem may occur again in the future. =(
>
> > > If you know where the hosted browser stores cookies, could you tell
> > > me? Probably, they were not stored in those directories, which I
> > > cleaned.
>
> > > On 14 окт, 21:58, Rajeev Dayal  wrote:
> > > > As an FYI, I think the default buffer size on Jetty 6 is 8k, so your
> > > current
> > > > setting will not change anything. However, you should really not need to
> > > > modify Jetty's parameters in this way. Do you have any idea as to why
> > > your
> > > > request header could be more than 8k in size?
> > > > Can you compile your app, and then use FireFox with Firebug, and post
> > > your
> > > > HTTP Request header (maybe attach it as a text fil

what's on server side?

2009-11-15 Thread s1m0n
hi all,
i'm trying to develop a very simple application to learn how to use
gwt.
in this application i'm using hibernate... the general idea is to have
on server side the whole hibernate-db parts and pass simple objects
from client side throught rpc.
now i'm trying the app in hosted mode, and i get this if i try to
commit the transaction in the server side implementation class of the
rpc communication:
com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
the server; see server log for details

i read that probably my problem is the pojo class used by hibernate
which is not so pojo... but i can't understand why this class has
serialization issues for gwt rpc when there is no trace of it (no
import or use) in the interfaces (nor  sync or async) but the class is
instantiated from simple types (String and int) in the implementation
class.
let me know if u can understand me and explain how to proceed (i've
already tried the dto workaround but it doesn't work).
thx 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=.




Re: 'UnsatisfiedLinkError" Issue after updating to Ubuntu 9.10 (Intel x64)

2009-11-15 Thread Juan Felipe Carrasquilla
Very relevant. Merci
Juan

On Nov 6, 3:07 pm, "Bib'"  wrote:
> Hi everyone,
>
> I decided to post here about an issue I encountered and solved lately
> after updating my Ubuntu from 9.04 to 9.10.
> First of all, I have x64 proc based architecture (this was the source
> of my issue).
>
> So after updating i started Eclipse and when I launched my project i
> had this error :
>
> UnsatisfiedLinkError: /./libxpcom.so: libstdc++.so.5: cannot open
> shared object file: No such file or directory
>
> The problem should have been solved by re installing the "libstdc++5"
> package and installing it after downloading at this link 
> :http://packages.ubuntu.com/jaunty/i386/libstdc++5/download.
>
> The problem of this package is that it is an i386 architecture based
> package so my soft manager wouldn't open it as my proc is a x64 (Core
> 2 duo).
>
> What i did :
>
> first of all i haded a package repository from the link below to my
> sources manager (debhttp://cfr.archive.ubuntu.com/ubuntujaunty main
> universe  as i'm French ^^, in System->Administration there should be
> something like "software sources" to add the repository). After
> updating in Synaptic, libstdc++5 was available. I installed it but it
> wasn't enough, because I installed the 64 bits version and it seems
> that GWT needed the 32 bits version.
>
> So i downloaded the package from one of the repositories available on
> the link below (fr.archive.ubuntu.com/ubuntu) and i saved it on the
> harddrive. I opened it with the Ubuntu archive manager and extracted
> the "libstdc++.so.5.0.7" file. Then i copied it at the good location
> and created the required symbolic link :
>
>     sudo -s
>     cp libstdc++.so.5.0.7 /usr/lib32/
>     ln -s libstdc++.so.5.0.7 libstdc++.so.5
>
> And it worked !!! Hope it will be relevant to someone :)

--

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




Add class to SerializationPolicy whitelist...

2009-11-15 Thread Edgenius
It is not new questions in this group. But I face a new problem in
2.0M2 as SerializationPolicy logic is changed.  I know GWT will put
serializition class into SerializationPolicy whitelist. Before 2.0, I
create a dummy method which hold all classes I want to pass to client
side but they are not inside any method's  parameters or exceptions.
It looks:

public interface RemoteServiceAsync {
public void serialPolicy(ClientAuthenticationException
ae,ClientAccessDeniedException ade, CaptchaVerifiedException ce
TextModel textModel,LinkModel linkModel, 
MessageListModel mlm,
AsyncCallback callback);
}

These Exception classes are a kind of "runtime exception" - For
example, ClientAuthenticationException is thrown when login failed.
It won't be checked exception as almost all methods have the
possibilty to throw this exception. It is bad to write on every method
like "int myMethod() throws ClientAuthenticationException.

I guess 2.0 becomes smarter - it can distinguish the unused method and
kick out my runtime exceptions classes from SerializationPolicy
whitelist.  Unfortunately, it brings troubles as well.  So, do we have
an easy to way to expand whitelist?

--

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 Chat

2009-11-15 Thread Roy Smith
There's a video on Google IO where the Wave team discuss how they achieved
this with long running http.
Sorry I can't remember the URL or details.


2009/11/15 Jim 

> hi,
>
> I'd like  make a chat using GWT  1.7 but gwt doesn't allow the use of
> socket ? Have you got any idea for the communications client/server?
> i've tested the gwt-socket but the project is not active ... i've
> heard the library comet could help me, what do you think about it ?
>
> Thx a lot
>
> --
>
> 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=.




ie8 and spacing....

2009-11-15 Thread golfdude

GWT 1.7...

I have an app which works fine in IE7 and Firefox 3. But in IE 8, none
of the spacing ( vertical/horizontal panel ) is being recognized. Any
thing special I need to set/do ?

Thanks

gd

--

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: IE8 and Compatibility View settings and ListBoxes

2009-11-15 Thread golfdude

Interesting...just noticed that I had to enable "display all websites
in comp view" to get my app to recognize all spacings in vertical/
horizontal panels. If not, all widgets were right beside each other.
Using GWT 1.7...

gd

--

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-15 Thread Sripathi Krishnan
>
> I guess I should probably have a single module and top level entry
> point and then switch between interfaces from there but that will
> involve a lot of code refactoring.
>

It doesn't need a lot of refactoring, it can be done on an incremental
basis.

I am assuming have 3 entry point classes corresponding to 3 modules, each of
which is included in a separate HTML host page. Each module is a separate
workflow. [The exact number doesn't matter].

- Get rid of all the modules(workflow A, through C), but keep the java
classes implementing EntryPoint as-is.
- Next, create a new module, say we call it parent-workflow.
- In the onModuleLoad() of parent-workflow, figure out which workflow (A, B
or C) to load, and then just delegate to the onModuleLoad() of the
appropriate child workflow. [Of course, it doesn't have to be onModuleLoad()
- but we are reusing it because of the high refactoring cost].

How do you figure out which child workflow to load? Append a fragment
identifier to the URLs (#workflowA), and use History.getToken() to make the
decision in the onModuleLoad() method of the new

If your original urls were like this -
http://mydomain.com/workflowA.html, http://mydomain.com/workflowB.html,
http://mydomain.com/workflowC.html

they will now become -
http://mydomain.com/parent-workflow.html#workflowA,
http://mydomain.com/parent-workflow.html#workflowB,
http://mydomain.com/parent-workflow.html#workflowC

This way, control will always go to the single, top-level module, and from
there you decide which workflow to load. Plus, it gives you history
management and back button support.

Notice that you have got rid of 3 HTML files, 3 *.gwt.xml files, and in due
course - 3 EntryPoint classes. And since there is only one entry point, your
compilation is a lot faster, it is easier to share common widgets, and you
get more optimized javascript code.

This is the least intrusive way to get to a single module. With time, you
can figure out different strategies to map the history token to the
appropriate workflow. You can also refactor your code to get rid of the
additional EntryPoint classes, and come up with your own interface  to
define a workflow (or screen or page or whatever you want to call it).

Once you get a hang of the basic idea, read the MVP pattern. Go through Ray
Ryans presentation. That will give you more ammunition to better design your
application.

--Sri


2009/11/14 rolf 

> What's the best way to create a web app with multiple entry points but
> a lot of common code (eg. common widgets and dialogs) shared between
> them, as well as a common server back end? Currently I'm creating
> multiple modules and multiple HTML pages within a single web app but
> I'm also worried about scalability. The different entry points
> correspond to different workflows depending on what the user is trying
> to do, or perhaps customised versions of the interface for particular
> customers.
>
> I guess I should probably have a single module and top level entry
> point and then switch between interfaces from there but that will
> involve a lot of code refactoring.
>
> -Rolf
>
> On Nov 14, 11: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
> > discussions<
> http://www.clyral.com/za/pages/web/website_vs_webapplication.html>can
> > 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<
> http://code.google.com/events/io/2009/sessions/GoogleWe

Re: GWT Chat

2009-11-15 Thread Cristiano

> I'd like  make a chat using GWT  1.7 but gwt doesn't allow the use of
> socket ? Have you got any idea for the communications client/server?
> i've tested the gwt-socket but the project is not active ... i've
> heard the library comet could help me, what do you think about it ?

I know comet is a technique, not a library. There is also a library
called "comet"?

However, if I have to make a chat, I would go for comet/long running
http too

Bye,
Cristiano

--

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 Chat

2009-11-15 Thread Jimmy Verheecke
Here the link to the Comet project
http://code.google.com/p/rocket-gwt/wiki/Comet

2009/11/16 Cristiano 

>
> > I'd like  make a chat using GWT  1.7 but gwt doesn't allow the use of
> > socket ? Have you got any idea for the communications client/server?
> > i've tested the gwt-socket but the project is not active ... i've
> > heard the library comet could help me, what do you think about it ?
>
> I know comet is a technique, not a library. There is also a library
> called "comet"?
>
> However, if I have to make a chat, I would go for comet/long running
> http too
>
> Bye,
> Cristiano
>
> --
>
> 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=.