GWT 2.0 RC1

2009-11-16 Thread Allahbaksh
Hi GWT Team,

I noticed that Bruce has created a page GWT 2.0 RC. But I am not able
to find GWT 2.0 RC1. Is is due on 17th early morning?

Bruce one more request if Google guys can open Google Wave UI Source
code then it would great. That is amazingly fast application with all
functionality which I would desire in any great web application.

Regards,
Allahbaksh

--

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-16 Thread shloka
 Davis, thanks for the post ...
In your example Are you using the pagination also?
How do you maintain sorted data between the pages??
I have implemented sorting almost like what you have done
but i am facing problem in maintaining the sorted data with the
pagination.
say i have 10 rows and i make it 5 rows per page.Hence i get 2 pages
now the first page is sorted and fine .when i click the button to go
to next page the control goes to the below  function in the
DataSourceTableModel
public void requestRows(final Request request,
  final Callback callback) {
// here we have method to create the new data.. how do we stop this?
since i have 5 more rows of old sorted data  yet to be rendered
 or
if we have hard coded array list  data it will again fetch the data as
per page size ie first 5 data  but i need data from 6 to 10 .
}

pls share u r thoughts on this.

Thanks
Chythanya
On Nov 16, 7:27 am, Davis Ford  wrote:
> 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- Hide quoted text -
>
> - Show quoted text -

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool..

Re: Redistributing GWT apps in a commercial software

2009-11-16 Thread Parag Thakur
Thomas,

Thanks! That's exactly what I was looking for.

regards,
Parag

On Nov 17, 3:02 am, Thomas Broyer  wrote:
> On Nov 16, 8:06 am, Parag  Thakur  wrote:
>
> > thanks for the reply.
>
> > No, we don't ship gwt-dev.jar. However it's not very clear if any of
> > the code in gwt-dev.jar gets translated into javascript (like they
> > mention happens for the BrowserDetect code)..
>
> Of the libs listed here:http://code.google.com/webtoolkit/terms.html#licenses
> none of them, except as noted Browser Detect is "transliterated into
> javascript":
>  - Tomcat (and Jetty as of GWT 1.6) is used in Hosted Mode (now
> DevMode in GWT 2.0) to host your resources and servlets
>  - Eclipse SWT is used for the GWTShell (up to GWT 1.5) and HostedMode
> (up to GWT 1.7.x) user interface (GWT 2.0 will have no dependency over
> SWT, it'll be Swing-based entirely)
>  - Eclipse JDT is used by the GWT's Compiler to parse your Java
> sources so they can be analyzed and transliterated into JavaScript
>  - Rhino is used by the GWT's Compiler to parse your JSNI (JavaScript)
> sources so they can be integrated into the Java-2-JS process
>  - Mozilla 1.7 and WebKit are only used in GWTShell and HostedMode (up
> to GWT 1.7.1) as the embedded browsers in respectively Linux and OSX
> (Windows version just uses IE); GWT 2.0 won't have those dependencies
>  - and finally JFreeChart is only used by the BenchmarkViewer tool.

--

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 History Interacts Badly With Non-History iFrame

2009-11-16 Thread Carl
Brian, I appreciate your response and apologize for not having noticed
it until now.

I've moved on from this issue for the moment and will probably revisit
it once I get my initial deployment out the door.

Your suggestion is reasonable but, as I mentioned, I have some doubts
as to whether it would work, because it seems to me that changes to
the non-GWT-History iframe can affect the browser's own
history without informing the GWT History mechanism.  However, until I
actually try what you are
suggesting, I can't be sure that it would not work; it may be that
when the change to the contents of the non-GWT-History iframe are made
from a Hyperlink rather than by a direct user click on an anchor that
targets that iframe, the browser will not place its own disruptive
items on the History list in addition to those entered by GWT.  So I
*will* try that more virtuous approach but,
as St. Augustine said, "not now."

Another concern, however, is that as someone fairly new to developing
for the public net, I'm a bit paranoid about the shadowy area of SEO,
and also AdSense spidering, and would like to keep things as vanilla
as possible when it comes to links to other pages.  Using an iframe
alone is already a little "iffy" in that regard, because there is some
question as to whether the links to the framed page will be credited
back to the containing page.  If I add on top of that dual paths for
the bots vs. the humans, the possibility that this will be perceived
as "cloaking" is added to the already cloudy mix.

So, I'll try your suggestion but may still stay with the simpler
(albeit non-ideal from the standpoint of bookmarking) approach, even
if your suggestion works.

Carl


On Nov 2, 4:58 am, Brian  wrote:
> I'm not sure that I follow completely, but perhaps a different
> approach would be to serve up two versions of the help. One would be
> under control of GWT and the other would be more static and would be
> shown only to search engines. You could probably work out a way that
> they would both show the same content so there wouldn't be versioning
> issues. Again, I'm not sure I followed well enough to know if this
> would help with your problem, but it's a different approach to think
> about.
>
> -Brian
>
> On Oct 30, 5:19 am, Carl  wrote:
>
>
>
> > I am developing an application that uses an iFrame to display help
> > page content, while keeping the main page (which contains my GWT
> > widgets) unchanged.  This is being done to preserve the state of the
> > GWT widgets while various help pages are viewed by the user.
>
> > The fundamental problem is this:  A browser, if left to its own
> > devices (i.e., no GWT history hooks) will keep track of iFrame content
> > in its own history list.  In other words, if you have a plain HTML
> > page with an iFrame in it and some links in the containing page that
> > load stuff into that iFrame, the browser will keep track of what got
> > loaded and if you hit the back button the iFrame pages will be
> > reloaded in reverse order.  But unfortunately, setting up an
> > onValueChange() handler using History.onValueChangeHandler() in GWT
> > and managing the History list in the GWT manner will not prevent the
> > browser from adding its own items to its own internal history, and
> > those items will get interleaved with whatever items your write
> > yourself using History.newItem().
>
> > Furthermore, when a browser re-loads this content into the iFrame in
> > response to pushes of the Back button, then even if you have set up an
> > onValueChange() handler using History.onValueChangeHandler(), that
> > handler will not be informed (except for IE and hosted mode) of the
> > back button presses that result in restoring those pages that the
> > browser has stuck into its history list itself.  Nor will that handler
> > be informed when the URL loaded in the iFrame changes and the browser
> > detects this and adds items representing those changes to its own
> > history list.
>
> > The GWT History mechanism is clearly intended to keep track of state
> > changes that are generated within the GWT code that result in distinct
> > displayed states but which are not accompanied by changes to the base
> > URL.  It pretty much does that.  But when changes must occur to an
> > embedded iFrame in the course of using the application, the items
> > added to browser history by the browser get all tangled up with the
> > items that you add yourself via GWT's History (which of course works
> > by manipulating its own embedded, invisible iFrame).
>
> > For SEO and other reasons, I want my links that load help pages into
> > the iFrame to be regular anchors rather than Hyperlinks.  But I don't
> > think that Hyperlinks would resolve this issue, since the main problem
> > is that the browser is still doing its own thing with its history each
> > time the content document of an embedded iFrame is changed.  The
> > HyperLink widget is intended to signal a GWT application that it
> > should change i

Re: Tomcat RPC Failure on Lost Client Connections.

2009-11-16 Thread t.dave
there's a bit of content on the web about this problem.  if memory
serves it was at least partly blamed on the
RPCServletUtils.readContentAsUtf8() method - that sometimes the
request doesn't make it to the server.  this was blamed on the
vagaries of the internet.

i have it all the time in my web app - probably at least once a day,
but have been unable to replicate it or track down the exact cause.
what version of GWT are you running?  i'm still on 1.5.3 - my hope is
that once i finally get around to rewriting ALL my listeners into a
handler bus and upgrade to 1.7 (or even 2.0 by the time i get to it),
this problem will be solved.

--

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




instanceof Element check fails in FF

2009-11-16 Thread bhomass
I have this statement
NodeList childNodes = tdElement.getChildNodes();
for (int i=0; ihttp://groups.google.com/group/google-web-toolkit?hl=.




Re: Disabling inline images (data URIs)

2009-11-16 Thread frostw
I should add that I realise this is more of an F5 issue, but since
their troubleshooting documentation boils down to "techniques to avoid
when writing Firepass compatible applications (http://www.f5.com/pdf/
deployment-guides/firepass-rproxy-dg.pdf)", it's a bit out of my
control as it's all GWT code that is causing me headaches.

On Nov 17, 3:19 pm, frostw  wrote:
> Thanks for the reply Thomas. This fixed my IE tree issue.
>
> However, I now find that attempting to use a GWT application with
> Firefox (3.5.3) through the Firepass server fails completely.
> This is even with the simplest GWT application e.g.
>
> package det.networks.derboard.client;
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.user.client.ui.Label;
> import com.google.gwt.user.client.ui.RootPanel;
>
> public class Derboard implements EntryPoint {
>
>         // Application entry point
>         public void onModuleLoad()
>         {
>                 Label l = new Label("Test");
>                 RootPanel.get().add(l);
>         }
>
> }
>
> Firefox chokes on this with a 'Error: F5_RewriteBufferFragment is not
> defined' in the error window.
>
> This exact same code runs fine through Firepass in IE7, IE8, Opera 10,
> Chrome 4.0.245
>
> Does anyone have any idea how to go about fixing this? I'm rather
> stumped.
>
> Line: 1
> On Nov 7, 12:15 pm, Thomas Broyer  wrote:
>
> > On 6 nov, 02:54, frostw  wrote:
>
> > > Hi,
>
> > > I am developing a GWT application that HAS to work via an F5 Firepass
> > > reverse proxy.
>
> > > Unfortunately, whilst the majority of the application works correctly,
> > > the Tree widget does not. The "+" and "-" images do not appear. The F5
> > > attempts to rewrite the GWT scripts and makes a terrible mess of the
> > > data URI images used in the tree (I am using my own svn trunk build of
> > > GWT).
>
> > > Is there a simple way to disable the use of inline images and use
> > > normal URL references in the Tree?
>
> > You can add the following to your gwt.xml:
> >   
>
> > Seehttp://code.google.com/p/google-web-toolkit/wiki/ClientBundle#Levers_...

--

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: Help! Displaying helpful data on a form.

2009-11-16 Thread David C. Hicks
Hi Davis,

Yes, using GWT-RPC.  My problem was that I "forgot" that I'm dealing
with an asynchronous call.  I was trying to populate the field on my
form with data before the call had successfully returned.  So, I was
getting a Null Pointer Exception from the object I was fetching.  Once I
realized this, I moved my code to populate the field into the
onSuccess() method and it's all happy.

Thanks for the reply!
Dave


Davis Ford wrote:
> Are you using GWT-RPC? �I'm not sure I understand your problem
> completely. �
>
> So if I have a service like:
>
> public interface MyService extends RemoteService {
> �� public Entity fetchEntity(String id);
> }
>
> public interface MyServiceAsync {
> �� �void fetchEntity(String id, AsyncCallback callback);
> }
>
> then, in the GWT code, something triggers the service. �Typically it
> is via a button click or some event. �You seem to indicate that you
> are doing it by passing the id as a URL parameter, like:
>
> http://host/my.gwt.application/Application.html?id=123
>
> You should be able to parse the URL using the
> Window.Location.getPath() to get the url param with a regex.
>
> Once you have that, you do this:
>
> MyServiceAsync service = GWT.create(MyService.class);
>
> service.fetchEntity(id, new AsyncCallback() {
> �� � onFailure(Throwable t) {
> �� � � � �Window.alert("service call failed: "+t.getMessage());
> �� � }
> �� � onSuccess(Entity e) {
> �� � � � // do something with the entity
> �� � }
> });
>
> After onSuccess( ) -- you populate the form with whatever. �
>
> On Mon, Nov 16, 2009 at 5:02 PM, David C. Hicks  > wrote:
>
> I'm sure I must be making this harder than it needs to be, but I'm
> having zero success doing it.
>
> Entering a new form, I'd like to display the name of an entity
> that was
> selected on the the calling page. �The calling page is a Struts2
> JSP, so
> I don't have the entire entity. �I only have the entity's ID,
> passed in
> as a parameter on the request URL. �That's easy enough to get, and I
> even have a service set up to go get the full entity once I have the
> ID. �The problem is that the service is asyncronous. �So, I get a Null
> Pointer Exception at the point where I try to set the data I'm
> retrieving into a label because the call hasn't yet completed.
>
> I'd rather not pass the name on the request URL - trying to avoid the
> messy encoding/decoding problems. �I've tried to create an
> AsyncCallback
> class that included a hook that I could "wait" for, but this only
> seemed
> to create an infinite wait loop.
>
> So, now I'm wondering if I need to somehow "bind" the retrieved
> data to
> a field on my form so that it will populate when the call completes.
> Then again, maybe this is overkill, too.
>
> Is there a better way to solve this problem?
> 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-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=.
>
>
>
>
>
> -- 
> 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=.

--

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 to create a development/debug and production setup

2009-11-16 Thread Sripathi Krishnan
>
> Can someone explains how to run this?
>

Read about deferred binding in the GWT documentation. It will explain the
underlying concepts.

Here is what you have to do -

   1. Your debug class and production class must inherit from a common
   class.
   2. Based on the property (app.config in this case), you choose the
   correct implementation (debug v/s production)
   3. By default, in your Module.gwt.xml - set the property to production.
   4. Create a new DebugModule.gwt.xml that extends your Module.gwt.xml -
   and overrides the app.config property to debug.
   5. In your ant script - gwtc compile either Module.gwt.xml or
   DebugModule.gwt.xml based on a suitable condition.

--Sri


2009/11/17 Supercobra Thatbytes 

> Hello there,
>
> I recently deployed inadvertently a debug version of our game typrX
> (typing races at www.typrx.com - try it it's fun).
>
> It was quickly corrected but I know it may happen again. After digging
> on Google I found some info how to create 2 different profiles, one
> for development mode that has the debug functions and one used for
> deployment. Here is what I found from a Google IO presentation. Does
> anyone have this setup? Can someone explains how to run this?
>
> MyAppCommon.gwt.xml
> 
>  ...
>  
>  
>
>
>  
>  ...
> 
> MyAppDebug.gwt.xml
> 
>  ...
>  
> 
>
> --
>
> 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: Disabling inline images (data URIs)

2009-11-16 Thread frostw
Thanks for the reply Thomas. This fixed my IE tree issue.

However, I now find that attempting to use a GWT application with
Firefox (3.5.3) through the Firepass server fails completely.
This is even with the simplest GWT application e.g.

package det.networks.derboard.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;

public class Derboard implements EntryPoint {

// Application entry point
public void onModuleLoad()
{
Label l = new Label("Test");
RootPanel.get().add(l);
}
}

Firefox chokes on this with a 'Error: F5_RewriteBufferFragment is not
defined' in the error window.

This exact same code runs fine through Firepass in IE7, IE8, Opera 10,
Chrome 4.0.245

Does anyone have any idea how to go about fixing this? I'm rather
stumped.

Line: 1
On Nov 7, 12:15 pm, Thomas Broyer  wrote:
> On 6 nov, 02:54, frostw  wrote:
>
> > Hi,
>
> > I am developing a GWT application that HAS to work via an F5 Firepass
> > reverse proxy.
>
> > Unfortunately, whilst the majority of the application works correctly,
> > the Tree widget does not. The "+" and "-" images do not appear. The F5
> > attempts to rewrite the GWT scripts and makes a terrible mess of the
> > data URI images used in the tree (I am using my own svn trunk build of
> > GWT).
>
> > Is there a simple way to disable the use of inline images and use
> > normal URL references in the Tree?
>
> You can add the following to your gwt.xml:
>   
>
> Seehttp://code.google.com/p/google-web-toolkit/wiki/ClientBundle#Levers_...

--

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: Help! Displaying helpful data on a form.

2009-11-16 Thread Davis Ford
Are you using GWT-RPC?  I'm not sure I understand your problem completely.

So if I have a service like:

public interface MyService extends RemoteService {
   public Entity fetchEntity(String id);
}

public interface MyServiceAsync {
void fetchEntity(String id, AsyncCallback callback);
}

then, in the GWT code, something triggers the service.  Typically it is via
a button click or some event.  You seem to indicate that you are doing it by
passing the id as a URL parameter, like:

http://host/my.gwt.application/Application.html?id=123

You should be able to parse the URL using the Window.Location.getPath() to
get the url param with a regex.

Once you have that, you do this:

MyServiceAsync service = GWT.create(MyService.class);

service.fetchEntity(id, new AsyncCallback() {
 onFailure(Throwable t) {
  Window.alert("service call failed: "+t.getMessage());
 }
 onSuccess(Entity e) {
 // do something with the entity
 }
});

After onSuccess( ) -- you populate the form with whatever.

On Mon, Nov 16, 2009 at 5:02 PM, David C. Hicks  wrote:

> I'm sure I must be making this harder than it needs to be, but I'm
> having zero success doing it.
>
> Entering a new form, I'd like to display the name of an entity that was
> selected on the the calling page.  The calling page is a Struts2 JSP, so
> I don't have the entire entity.  I only have the entity's ID, passed in
> as a parameter on the request URL.  That's easy enough to get, and I
> even have a service set up to go get the full entity once I have the
> ID.  The problem is that the service is asyncronous.  So, I get a Null
> Pointer Exception at the point where I try to set the data I'm
> retrieving into a label because the call hasn't yet completed.
>
> I'd rather not pass the name on the request URL - trying to avoid the
> messy encoding/decoding problems.  I've tried to create an AsyncCallback
> class that included a hook that I could "wait" for, but this only seemed
> to create an infinite wait loop.
>
> So, now I'm wondering if I need to somehow "bind" the retrieved data to
> a field on my form so that it will populate when the call completes.
> Then again, maybe this is overkill, too.
>
> Is there a better way to solve this problem?
> 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=.
>
>
>


-- 
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: ComboBox ??

2009-11-16 Thread salvador.ce
Hi Chris,

When I am accessing the database, do the query ID and description,
the two columns are placed in the Store (SimpleStore), after this the User
can query the data, I'm stating that when the User makes the
consultation brings the description and not ID.

Is there any way to browse the ComboBox and set the correct description?

tks[][]

2009/11/16 Chris Ramsdale :
> Are you returning description text along with the ID?
>
> On Mon, Nov 16, 2009 at 11:20 AM, salvador.ce  wrote:
>>
>> Hi !!
>>
>> I created a Forms with several fields, I'm doing a query
>> a database, the data is being selected without problem,
>> some difficulties I'm having is that this a Forms ComboBox and I
>> the value that returns is an ID database, the question is: How do I
>> bring the description in the combobox? These data already have in a Store.
>>
>> tks[][]
>>
>> --
>>
>> 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=.
>

--

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




Javascript onload called before Java onModuleLoad

2009-11-16 Thread Davidj2k
I am needing the onModuleLoad event to fire before the window onload
event, in Firefox and Chrome it does it correctly but in Internet
Explorer 7 and 8 it happens second, is there anything I can do to make
the onload event of the web page happen after the onModuleLoad?

--

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: Help! Displaying helpful data on a form. SOLVED

2009-11-16 Thread David C. Hicks
Nevermind.  I figured out that I could update my label on kind of an
asyncronous basis, as well.

David C. Hicks wrote:
> I'm sure I must be making this harder than it needs to be, but I'm
> having zero success doing it.
>
> Entering a new form, I'd like to display the name of an entity that was
> selected on the the calling page.  The calling page is a Struts2 JSP, so
> I don't have the entire entity.  I only have the entity's ID, passed in
> as a parameter on the request URL.  That's easy enough to get, and I
> even have a service set up to go get the full entity once I have the
> ID.  The problem is that the service is asyncronous.  So, I get a Null
> Pointer Exception at the point where I try to set the data I'm
> retrieving into a label because the call hasn't yet completed.
>
> I'd rather not pass the name on the request URL - trying to avoid the
> messy encoding/decoding problems.  I've tried to create an AsyncCallback
> class that included a hook that I could "wait" for, but this only seemed
> to create an infinite wait loop.
>
> So, now I'm wondering if I need to somehow "bind" the retrieved data to
> a field on my form so that it will populate when the call completes. 
> Then again, maybe this is overkill, too.
>
> Is there a better way to solve this problem?
> 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=.




How to create a development/debug and production setup

2009-11-16 Thread Supercobra Thatbytes
Hello there,

I recently deployed inadvertently a debug version of our game typrX
(typing races at www.typrx.com - try it it's fun).

It was quickly corrected but I know it may happen again. After digging
on Google I found some info how to create 2 different profiles, one
for development mode that has the debug functions and one used for
deployment. Here is what I found from a Google IO presentation. Does
anyone have this setup? Can someone explains how to run this?

MyAppCommon.gwt.xml

  ...
  
  


  
  ...

MyAppDebug.gwt.xml

  ...
  


--

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




Help! Displaying helpful data on a form.

2009-11-16 Thread David C. Hicks
I'm sure I must be making this harder than it needs to be, but I'm
having zero success doing it.

Entering a new form, I'd like to display the name of an entity that was
selected on the the calling page.  The calling page is a Struts2 JSP, so
I don't have the entire entity.  I only have the entity's ID, passed in
as a parameter on the request URL.  That's easy enough to get, and I
even have a service set up to go get the full entity once I have the
ID.  The problem is that the service is asyncronous.  So, I get a Null
Pointer Exception at the point where I try to set the data I'm
retrieving into a label because the call hasn't yet completed.

I'd rather not pass the name on the request URL - trying to avoid the
messy encoding/decoding problems.  I've tried to create an AsyncCallback
class that included a hook that I could "wait" for, but this only seemed
to create an infinite wait loop.

So, now I'm wondering if I need to somehow "bind" the retrieved data to
a field on my form so that it will populate when the call completes. 
Then again, maybe this is overkill, too.

Is there a better way to solve this problem?
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=.




Re: Redistributing GWT apps in a commercial software

2009-11-16 Thread Thomas Broyer


On Nov 16, 8:06 am, Parag  Thakur  wrote:
> thanks for the reply.
>
> No, we don't ship gwt-dev.jar. However it's not very clear if any of
> the code in gwt-dev.jar gets translated into javascript (like they
> mention happens for the BrowserDetect code)..

Of the libs listed here: http://code.google.com/webtoolkit/terms.html#licenses
none of them, except as noted Browser Detect is "transliterated into
javascript":
 - Tomcat (and Jetty as of GWT 1.6) is used in Hosted Mode (now
DevMode in GWT 2.0) to host your resources and servlets
 - Eclipse SWT is used for the GWTShell (up to GWT 1.5) and HostedMode
(up to GWT 1.7.x) user interface (GWT 2.0 will have no dependency over
SWT, it'll be Swing-based entirely)
 - Eclipse JDT is used by the GWT's Compiler to parse your Java
sources so they can be analyzed and transliterated into JavaScript
 - Rhino is used by the GWT's Compiler to parse your JSNI (JavaScript)
sources so they can be integrated into the Java-2-JS process
 - Mozilla 1.7 and WebKit are only used in GWTShell and HostedMode (up
to GWT 1.7.1) as the embedded browsers in respectively Linux and OSX
(Windows version just uses IE); GWT 2.0 won't have those dependencies
 - and finally JFreeChart is only used by the BenchmarkViewer tool.

--

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 PCI Compliance Toolkit

2009-11-16 Thread Yozons Support on Gmail
This has gone off-topic, so I won't belabor my point, but the PCI principles
clearly show it's more geared towards the server-side, as the browser itself
never had to be "PCI compliant" or any such rubbish.  And no GWT interface
tool can ensure PCI compliance either.  A server that has gone through the
compliance analysis is key, so if that part is taken over with the GWT
interface, then I surely understand that.

The core of the PCI DSS is a group of principles and accompanying
requirements, around which the specific elements of the DSS are organized:

*Build and Maintain a Secure Network*

*Requirement 1:* Install and maintain a firewall configuration to protect
cardholder data
*Requirement 2:* Do not use vendor-supplied defaults for system passwords
and other security parameters

*Protect Cardholder Data*

*Requirement 3:* Protect stored cardholder data
*Requirement 4:* Encrypt transmission of cardholder data across open, public
networks

*Maintain a Vulnerability Management Program*

*Requirement 5:* Use and regularly update anti-virus software
*Requirement 6:* Develop and maintain secure systems and applications

*Implement Strong Access Control Measures*

*Requirement 7:* Restrict access to cardholder data by business need-to-know
*Requirement 8:* Assign a unique ID to each person with computer access
*Requirement 9:* Restrict physical access to cardholder data

*Regularly Monitor and Test Networks*

*Requirement 10:* Track and monitor all access to network resources and
cardholder data
*Requirement 11:* Regularly test security systems and processes

*Maintain an Information Security Policy*

*Requirement 12:* Maintain a policy that addresses information security

--

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-16 Thread Davis Ford
Yes, I have done this in some cases.  You can do this with the methods from
AbstractColumnDefinition


setMinimumColumnWidth()
setMaximumColumnWidth()

It seems to work ok.  If your columns span past the visible area, you end up
getting a horizontal scrollbar which is expected.  Also you can force the
width to whatever the maximum entry width is if you setTruncatable(false)

On Mon, Nov 16, 2009 at 3:02 PM, Dazza  wrote:

> On Nov 16, 3:27 pm, Davis Ford  wrote:
> > 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
> >
>
> Very nice article.  Have you tried adding fixed columns to
> PagingScrollTable?
>
> --
>
> 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=.




Tomcat RPC Failure on Lost Client Connections.

2009-11-16 Thread Danny
I get a " Exception while dispatching incoming RPC call" exception in
Tomcat after, what I believe is caused by an RPC response not finding
the client that made the request.  The stack print out is included
below.  I say that I believe this is the problem, but I have not been
able to reproduce the error.

Can someone with more Tomcat experience than me, see if my belief is
well founded?  Regardless, does someone have a solution?  My system
seems to be running OK.  Is my worry mostly about Tomcat filling my
web host's disk space with exception messages?

Thanks,

Danny

--

Nov 14, 2009 7:39:50 AM org.apache.catalina.core.ApplicationContext
log
SEVERE: Exception while dispatching incoming RPC call
java.io.IOException
at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:205)
at org.apache.jk.common.JkInputStream.refillReadBuffer
(JkInputStream.java:265)
at org.apache.jk.common.JkInputStream.doRead(JkInputStream.java:183)
at org.apache.coyote.Request.doRead(Request.java:428)
at org.apache.catalina.connector.InputBuffer.realReadBytes
(InputBuffer.java:304)
at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:405)
at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:
327)
at org.apache.catalina.connector.CoyoteInputStream.read
(CoyoteInputStream.java:193)
at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8
(RPCServletUtils.java:146)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent
(RemoteServiceServlet.java:343)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:293)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:
190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:
291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
at org.apache.jk.common.ChannelSocket.processConnection
(ChannelSocket.java:698)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt
(ChannelSocket.java:891)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)

--

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-16 Thread Dazza
On Nov 16, 3:27 pm, Davis Ford  wrote:
> 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
>

Very nice article.  Have you tried adding fixed columns to
PagingScrollTable?

--

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 PCI Compliance Toolkit

2009-11-16 Thread Evan Ruff
Yozons,

You're running into one of the most common PCI Compliance
misconceptions: just because you don't store the card data does not
mean you're compliant. If the application touches the card data IN ANY
WAY, even just to immediately transmit to the gateway, you must have
your application served in a PCI-Compliant data center, be subjected
to PCI change control guidelines and have your application undergo PCI-
DSS auditing.

Our solution pulls the handling of the actual card data out of the
scope of the application. Because the style and functional operation
of the module is defined by your application, the secure processing is
completely transparent to the user. The customer experience is
completely maintained on your site. The card data is handled 100% on
the CRE Secure side, giving your application PCI Compliance and still
allowing the application to process card data.

Thanks!

Evan

On Nov 16, 12:55 pm, Yozons Support on Gmail  wrote:
> Isn't most PCI compliance related to the server?  GWT only holds the
> information a short time to make a payment and shouldn't normally hold on to
> the data after submitting it for processing.  How does your GWT help with
> PCI compliance since this would also require your server and server code to
> be compliant.  Furthermore, if using a payment gateway, you shouldn't even
> have to store the payment information locally and thus avoid most PCI
> compliance issues.

--

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: ComboBox ??

2009-11-16 Thread Chris Ramsdale
Are you returning description text along with the ID?

On Mon, Nov 16, 2009 at 11:20 AM, salvador.ce  wrote:

> Hi !!
>
> I created a Forms with several fields, I'm doing a query
> a database, the data is being selected without problem,
> some difficulties I'm having is that this a Forms ComboBox and I
> the value that returns is an ID database, the question is: How do I
> bring the description in the combobox? These data already have in a Store.
>
> tks[][]
>
> --
>
> 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: Gwt 2.0 trunk and Eclipse

2009-11-16 Thread Chris Ramsdale
We've confirmed that this issue has been resolved in the RC bits that we are
currently testing. The RC should be available very soon. In the meantime you
can switch back to MS2 or use your own custom Java launch config. Let us
know if you go down the custom launch config path and need some help.

- Chris

On Mon, Nov 16, 2009 at 1:13 PM, Mark Renouf  wrote:

> Has there been any updates on fixing this?
>
> I confirmed I have the latest GAE plugin and still have the problem.
> I'm hoping once the RC comes out there will be an updated. If it was
> open source I would patch the Eclipse plugin instead of GWT, but oh
> well.
>
>
>
>
> On Nov 9, 10:07 am, misterln2  wrote:
> > this is the same problem i reported in thegooglepluginforeclipse
> > thread.
> >
> > thepluginautomatically appends the "-style" parameter which is no
> > longer supported by DevMode.
> >
> > my solution was to revert:
> > trunk\dev\core\src\com\google\gwt\dev\DevMode.java
> > trunk\dev\core\src\com\google\gwt\dev\DevModeBase.java
> > to earlier versions (from nov 5th)
>
> --
>
> 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=.




Module Creation from Eclipse

2009-11-16 Thread Kyle Hayes
I'm starting a fairly large project with GWT and would like to take
advantage of the modularity of GWT. There are some grey areas for me
in creating a new GWT module through Eclipse from scratch to be
included in a GWT application. I was hoping someone could provide a
set of steps to do so. Assume there is no existing code.

I appreciate any help, thanks!

-Kyle

--

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 trunk and Eclipse

2009-11-16 Thread Mark Renouf
Has there been any updates on fixing this?

I confirmed I have the latest GAE plugin and still have the problem.
I'm hoping once the RC comes out there will be an updated. If it was
open source I would patch the Eclipse plugin instead of GWT, but oh
well.




On Nov 9, 10:07 am, misterln2  wrote:
> this is the same problem i reported in thegooglepluginforeclipse
> thread.
>
> thepluginautomatically appends the "-style" parameter which is no
> longer supported by DevMode.
>
> my solution was to revert:
> trunk\dev\core\src\com\google\gwt\dev\DevMode.java
> trunk\dev\core\src\com\google\gwt\dev\DevModeBase.java
> to earlier versions (from nov 5th)

--

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 PCI Compliance Toolkit

2009-11-16 Thread Yozons Support on Gmail
Isn't most PCI compliance related to the server?  GWT only holds the
information a short time to make a payment and shouldn't normally hold on to
the data after submitting it for processing.  How does your GWT help with
PCI compliance since this would also require your server and server code to
be compliant.  Furthermore, if using a payment gateway, you shouldn't even
have to store the payment information locally and thus avoid most PCI
compliance issues.

--

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 update

2009-11-16 Thread Jim Douglas
My MacBook Pro is my main GWT development system, so I'm dead in the
water here too.  Kelly mentions a possible workaround in comment #16,
but I haven't seen the details:

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

Apparently this Apple bug will be fixed in Safari 4.0.5, but there's
no way of knowing when it will be released.

On Nov 16, 9:35 am, Rob Tanner  wrote:
> Hi,
>
> I was running along last week just perfectly with the GWT Eclipse
> plugin v1.7.1 and Eclipse 3.5.1 on an Mac running Snow Leopard. This
> morning I installed an update bring Safari to v4.0.4 and the OS to
> 10.6.2.  Now hosted mode crashes with the error: Invalid memory access
> of location 0010 eip=92a2477b.
>
> Since it all worked fine last week, I'm sure this is related to the
> update.  I'm not exactly sure what the message is telling me other
> than I'm trying to use memory I shouldn't.  Does anyone know of a work-
> around?
>
> -- 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: GWT hosted mode crashing after update

2009-11-16 Thread Kyle Hayes
Hey Rob,

A lot of us have been having issues with Safari 4.0.4 release since
they updated JavaScriptCore. Check out this thread as well as the last
reply in it:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/386df3f9d5cab7d0/cecf81ab8c9b7fde?#cecf81ab8c9b7fde

On Nov 16, 9:35 am, Rob Tanner  wrote:
> Hi,
>
> I was running along last week just perfectly with the GWT Eclipse
> plugin v1.7.1 and Eclipse 3.5.1 on an Mac running Snow Leopard. This
> morning I installed an update bring Safari to v4.0.4 and the OS to
> 10.6.2.  Now hosted mode crashes with the error: Invalid memory access
> of location 0010 eip=92a2477b.
>
> Since it all worked fine last week, I'm sure this is related to the
> update.  I'm not exactly sure what the message is telling me other
> than I'm trying to use memory I shouldn't.  Does anyone know of a work-
> around?
>
> -- 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=.




GWT hosted mode crashing after update

2009-11-16 Thread Rob Tanner
Hi,

I was running along last week just perfectly with the GWT Eclipse
plugin v1.7.1 and Eclipse 3.5.1 on an Mac running Snow Leopard. This
morning I installed an update bring Safari to v4.0.4 and the OS to
10.6.2.  Now hosted mode crashes with the error: Invalid memory access
of location 0010 eip=92a2477b.

Since it all worked fine last week, I'm sure this is related to the
update.  I'm not exactly sure what the message is telling me other
than I'm trying to use memory I shouldn't.  Does anyone know of a work-
around?

-- 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: GWT: JUnit & Google App Engine Tutorial assumes intelligence

2009-11-16 Thread Angel Marquez
Fantastic. In the meantime I'm going through the GWT & AE developer guides
in tandem with the fielding dissertation and a java pub on their REST api,
very interesting.

It would be nice to have the completed tutorial source files readily
available as well. Specifically for the JUnit & AE sections of GWT SW. I
have a lot of errors when attempting to compile and the source files are to
large to attach(I could upload and send a link..). Hopefully I would be able
to run a diff/compare if their was a source to compare to and figure out
what needs to be fixed.

I keep on reading people are using GWT 2.0. Is this available to the public
or is this list a mix of people that are not current and can't be? All I'm
aware that is available to me is 1.7.

One more thing. I know someone that just recently received a wave invite. I
kindly requested a an account hook up and she said they didn't give here any
invites and thought it was odd since she wouldn't be able to wave with
anyone. I want to be her wave partner. Any ideas?


On Mon, Nov 16, 2009 at 8:19 AM, Chris Ramsdale wrote:

> I second Rajeev's comments. We definitely value feedback, and we'll make
> sure the tutorial is updated to reflect that the "test" folder must be added
> manually as a source folder.
>
> With regards to the larger picture, we'll be looking to revamp some of the
> existing documentation once we get 2.0 and the associated 2.0 docs out the
> door.
>
> - Chris
>
>
> On Fri, Nov 13, 2009 at 2:36 PM, Steve C  wrote:
>
>> I'd like to generalize this whole discussion a bit - to my mind the
>> entire JUnit testing scenario is one of the worst documented and
>> described elements in GWT.  Most of the examples out there are
>> repackagings of the same simplistic ones that have been around for a
>> few versions now.
>>
>> In addition to the undocumented item listed in the previous comment,
>> it seems that your test class must be in the same package as your
>> entry-point class, but sourced from the test folder instead of src.
>>
>> --
>>
>> 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=.
>

--

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-16 Thread ben fenster
how can the comet gwt lib keep a live connection


On 16 נובמבר, 16:01, Roy  wrote:
> App Engine supports XMPP
>
> On Nov 16, 1:38 pm, Prempena  wrote:
>
> > I've tried to find a solution with App Engine for weeks without any
> > success. Server push is not only useful for Chat. It can be used to
> > inform users of some events coming from the Server.
>
> > This is issue is referenced at a good place in the issue 
> > list:http://code.google.com/p/googleappengine/issues/detail?id=377
>
> > If someone is able to find a good solution, I'm interested 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: GWT PCI Compliance Toolkit

2009-11-16 Thread Duong BaTien
We are still in development mode and have not fully committed to any
yet. Please keep in touch.

Duong BaTien
DBGROUPS and BudhNet

On Mon, 2009-11-16 at 11:17 -0500, Evan Ruff wrote:
> Hey Duong,
> 
> 
> We're preparing to roll out our PCI compliance solution. I was
> wondering which gateway you are using to process your payments.
> 
> 
> Thanks!
> 
> 
> Evan
> 
> On Fri, Oct 2, 2009 at 9:29 AM, Duong BaTien 
> wrote:
> 
> Please announce your release and put me duong.bat...@gmail.com
> in your
> list. We use GWT to develop a new E-Commerce system.
> 
> Duong BaTien
> DBGROUPS and BudhNet
> 
> On Fri, 2009-10-02 at 05:20 -0700, Evan Ruff wrote:
> > Hey guys,
> >
> > I'm the project lead on CRE Secure's new iFrame Hosted
> Payment Page
> > solution (http://www.cresecure.com). I've been a big GWT guy
> since
> > back around 1.5RC1 so I've had a special eye on the GWT-
> centric issues
> > around PCI Compliance, especially from a application
> control/look-and-
> > feel standpoint. The current solution is packaged as a JAR
> and
> > contains a number of hooks to help with the GWT integration.
> The
> > solution gives the developer maximum control over the form,
> rendering,
> > display and callback of the entire payment process, all
> while
> > maintaining PCI compliance without leaving your application.
> >
> > We're looking to release the platform sometime in early
> October and
> > are looking for early beta testers to help test our
> implementation. We
> > are certified to the Authroize.net Platform and the Chase
> Paymentech
> > (Tampa and Salem) Platform and are looking to get the JAR
> into
> > people's hands a soon as possible. If you accept credit
> cards in your
> > application and are not yet PCI Compliant, we'd like to help
> you get
> > there.
> >
> > Send me an email or reply to this thread and we'll get in
> touch. We've
> > got a demo up and running that I'd love to walk through to
> show
> > exactly what it can do. Also, if anyone has any PCI
> Compliance
> > questions feel free to drop me a line our check out our site
> at
> > http://www.cresecure.com.
> >
> > Thanks!
> >
> > Evan Ruff
> > evan.r...@hendersonsawmill.com
> > Enterprise Development
> > CRE Secure
> > >
> 
> 
> --~--~-~--~~~---~--~~
>  This message is part of the topic "GWT PCI Compliance
> Toolkit" in the Google Group "Google Web Toolkit"
> for which you requested email updates.
> To stop receiving email updates for this topic, please visit
> the topic
> at http://groups.google.com/group/google-web-
> toolkit/t/6f7acb94e3fd1b8e
> -~--~~~~--~~--~--~---
> 
> 
> 
> 
> --
> 
> 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: How to differentiate between singleClick and doubleClick on the Grid cell?

2009-11-16 Thread Lothar Kimmeringer
Taufeeq schrieb:

> I am create an component where in on singleClick of the grid cell I
> have to show an alert message displaying metadata of image. And, on
> doubleClick have to display the image in new window. For that I had
> created a class "MyHandler" which implements clickHandler and
> DoubleClickHandler and added an instance of "MyHandler" to
> addClickHandler of the Grid.
> 
> The problem is that whenever I double click on the Grid cell; onClick
> () caught the event and no DoubleClick event is generated.
> Could anyone provide any pointer for differentiating between
> singleClick and doubleClick on the Grid cell in the application?

In short, create a Timer in onClick, showing the dialog box
after the Timer reached its end. If onClick is called within
the lifetime of the timer, cancel the timer and perform the
operation you intend to be done for a double click.

You can skip the Timer-thing if you show the meta-data some-
where in your main-area. Then you just need to store
System.currentTimeMillis() in a variable and check the
difference the next time if it is within some threshold to
decide if you have to show the preview-window or not.


Regards, Lothar

--

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




ComboBox ??

2009-11-16 Thread salvador.ce
Hi !!

I created a Forms with several fields, I'm doing a query
a database, the data is being selected without problem,
some difficulties I'm having is that this a Forms ComboBox and I
the value that returns is an ID database, the question is: How do I
bring the description in the combobox? These data already have in a Store.

tks[][]

--

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: JUnit & Google App Engine Tutorial assumes intelligence

2009-11-16 Thread Chris Ramsdale
I second Rajeev's comments. We definitely value feedback, and we'll make
sure the tutorial is updated to reflect that the "test" folder must be added
manually as a source folder.

With regards to the larger picture, we'll be looking to revamp some of the
existing documentation once we get 2.0 and the associated 2.0 docs out the
door.

- Chris

On Fri, Nov 13, 2009 at 2:36 PM, Steve C  wrote:

> I'd like to generalize this whole discussion a bit - to my mind the
> entire JUnit testing scenario is one of the worst documented and
> described elements in GWT.  Most of the examples out there are
> repackagings of the same simplistic ones that have been around for a
> few versions now.
>
> In addition to the undocumented item listed in the previous comment,
> it seems that your test class must be in the same package as your
> entry-point class, but sourced from the test folder instead of src.
>
> --
>
> 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: GWT PCI Compliance Toolkit

2009-11-16 Thread Evan Ruff
Hey Duong,

We're preparing to roll out our PCI compliance solution. I was wondering
which gateway you are using to process your payments.

Thanks!

Evan

On Fri, Oct 2, 2009 at 9:29 AM, Duong BaTien  wrote:

>
> Please announce your release and put me duong.bat...@gmail.com in your
> list. We use GWT to develop a new E-Commerce system.
>
> Duong BaTien
> DBGROUPS and BudhNet
>
> On Fri, 2009-10-02 at 05:20 -0700, Evan Ruff wrote:
> > Hey guys,
> >
> > I'm the project lead on CRE Secure's new iFrame Hosted Payment Page
> > solution (http://www.cresecure.com). I've been a big GWT guy since
> > back around 1.5RC1 so I've had a special eye on the GWT-centric issues
> > around PCI Compliance, especially from a application control/look-and-
> > feel standpoint. The current solution is packaged as a JAR and
> > contains a number of hooks to help with the GWT integration. The
> > solution gives the developer maximum control over the form, rendering,
> > display and callback of the entire payment process, all while
> > maintaining PCI compliance without leaving your application.
> >
> > We're looking to release the platform sometime in early October and
> > are looking for early beta testers to help test our implementation. We
> > are certified to the Authroize.net Platform and the Chase Paymentech
> > (Tampa and Salem) Platform and are looking to get the JAR into
> > people's hands a soon as possible. If you accept credit cards in your
> > application and are not yet PCI Compliant, we'd like to help you get
> > there.
> >
> > Send me an email or reply to this thread and we'll get in touch. We've
> > got a demo up and running that I'd love to walk through to show
> > exactly what it can do. Also, if anyone has any PCI Compliance
> > questions feel free to drop me a line our check out our site at
> > http://www.cresecure.com.
> >
> > Thanks!
> >
> > Evan Ruff
> > evan.r...@hendersonsawmill.com
> > Enterprise Development
> > CRE Secure
> > >
>
>
> --~--~-~--~~~---~--~~
>  This message is part of the topic "GWT PCI Compliance Toolkit" in the
> Google Group "Google Web Toolkit"
> for which you requested email updates.
> To stop receiving email updates for this topic, please visit the topic
> at http://groups.google.com/group/google-web-toolkit/t/6f7acb94e3fd1b8e
> -~--~~~~--~~--~--~---
>
>

--

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-16 Thread Roy
App Engine supports XMPP

On Nov 16, 1:38 pm, Prempena  wrote:
> I've tried to find a solution with App Engine for weeks without any
> success. Server push is not only useful for Chat. It can be used to
> inform users of some events coming from the Server.
>
> This is issue is referenced at a good place in the issue 
> list:http://code.google.com/p/googleappengine/issues/detail?id=377
>
> If someone is able to find a good solution, I'm interested 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: Too much is happening (the events are crowding the bus)?

2009-11-16 Thread ArmanGal
I use Operation enum inside the action that tells my presenter how to
handle the action. + I create number of constructors for this event to
support every operation, while the event it self has all needed
properties for all operations.

;)

On Nov 15, 4:19 am, "slind...@gmail.com"  wrote:
> 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=.




Re: GWT Chat

2009-11-16 Thread ArmanGal
Look at this project, i've used it a year ago to build chat (like
skype) in gwt, very nice implementation but requires to install XMPP
server (free).

http://code.google.com/p/emite/


On Nov 15, 3:01 pm, Jim  wrote:
> 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: how to use a server class in client code

2009-11-16 Thread Ray
Hello,

I have my model classes inside an library on the server-side which I
want user for different applications (not only GWT)

Copying my domain classes to the client side of the GWT-Client-App
doesn't seem to be very convienient, as I have to maintain the same
code in two different locations.

Is there no way to include the library and GWT creates the client-side
java-script whith the model automatically?

Thanks
Ray


On 11 Nov., 20:58, Dominik Steiner 
wrote:
> Sanjith,
>
> you can move the model classes to anywhere under the client folder,  
> the client/domain example is just what i use here with me. And then  
> the server will reuse those classes on server side where he will read  
> the jdo annotations.
>
> Let me know if it works for you
>
> Dominik

--

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 to use a server class in client code

2009-11-16 Thread Ray
Hello,

I have my DTO (domain model) classes - which are serializeable POJOs
without annotations - inside jar files on the server, as i want to use
them not only in GWT applications.

Is there no other solution of reusing them on my GWT-client-side
without copying the source
code to the client. Because in the case of changes I don't want to
change the DTO classes at two different places (GWT-Client+Server-
api.jar)

Thanks,
Ray


On 11 Nov., 20:58, Dominik Steiner 
wrote:
> Sanjith,
>
> you can move the model classes to anywhere under the client folder,  
> the client/domain example is just what i use here with me. And then  
> the server will reuse those classes on server side where he will read  
> the jdo annotations.
>
> Let me know if it works for you
>
> Dominik

--

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 differentiate between singleClick and doubleClick on the Grid cell?

2009-11-16 Thread Taufeeq
Hi,

I am create an component where in on singleClick of the grid cell I
have to show an alert message displaying metadata of image. And, on
doubleClick have to display the image in new window. For that I had
created a class "MyHandler" which implements clickHandler and
DoubleClickHandler and added an instance of "MyHandler" to
addClickHandler of the Grid.

The problem is that whenever I double click on the Grid cell; onClick
() caught the event and no DoubleClick event is generated.
Could anyone provide any pointer for differentiating between
singleClick and doubleClick on the Grid cell in the application?

Any pointer on this issue will be helpfull.

Thank you.

--

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




Re: GWT Hosted Mode crashing after Snow Leopard 10.6.2 Update

2009-11-16 Thread Danny
Hi,

Is there also a fix available for GWT 1.6+ ?
My Eclipse project gives an error saying that the when using the WAR
layout you must use the GWT 1.6 or later.

Thkx,
D.

On Nov 14, 4:10 pm, hugues  wrote:
> 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=.




Re: Redistributing GWT apps in a commercial software

2009-11-16 Thread Parag Thakur

thanks for the reply.

No, we don't ship gwt-dev.jar. However it's not very clear if any of
the code in gwt-dev.jar gets translated into javascript (like they
mention happens for the BrowserDetect code)..

--parag

On Nov 12, 11:27 pm, Yozons Support on Gmail  wrote:
> I'm not an expert (or even a lawyer ;), but most of the third-party stuff
> appears to be related to gwt-dev.jar.  Heck, I don't even know what that JAR
> is since it's not in my WEB-INF/lib.  I only have gwt-servlet.jar and that
> has no third-party stuff so it's just under the Apache 2 license you expect
> of GWT.
>
> My guess is you don't redistribute any of the other third party stuff, so it
> shouldn't matter.  And even if you do, it seems that they all have
> compatible licenses that will allow you to use it in commercial software.  I
> didn't see any GPL code mentioned, for example.  But if you do ship that
> gwt-dev.jar, you should also include references to those parts and give them
> credit just like Google did with respect to those components as you can use
> them, you just need to give them credit.
>
> That's my guesstimate anyway

--

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




Ant test

2009-11-16 Thread Andrey
Hello!

Is it normal that SVN build doesn't pass tests?
Every time I build GWT from SVN I get errors while executing "ant
test".

--

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: Announcing the Google Plugin for Eclipse 1.1.0

2009-11-16 Thread Rajeev Dayal
Hi,

As an FYI, we're going to release a version of the plugin that fixes this
issue shortly.

However, with the issue that you're experiencing, I wonder if you did not
revert your version of DevMode* back far enough. What version did you revert
to?


Rajeev

On Mon, Nov 16, 2009 at 6:08 AM, shahid  wrote:

> Thanks misterln2
> @Ranjeev yes I am using the current build
>
> On Nov 13, 10:19 am, misterln2  wrote:
> > the changes happened from rev 6641 to 6642
> >
> > a bunch of registerHandler(..) statements got removed
> >
> > i just tried it: copying those statements back to the current
> > DevModeBase.java was sufficient to compile the trunk
>
> --
>
> 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: GWT 1.7.1 don't show app in hosted mode (Jetty bug: FULL head)

2009-11-16 Thread Rajeev Dayal
@Stephen: What platform are you on?

@Rodrigo: That sounds like a GXT-specific bug. Have you tried posting on
their forum?

2009/11/15 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
> yo

GWT 2.0 Javascript IE Crash

2009-11-16 Thread Charlie M
Hi All,

I have been recently testing out GWT 2.0 currently from the 2.0 branch
of the SVN although I have also tried Milestone 2. My app works fine
in Chrome and Firefox in both development and hosted modes.

When I try and run it in IE 6, 7 or 8 it complains of Javascript
errors. It complains of an "Invalid Argument" on the finally
statement.

The generated code is below:

function
com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2
(jsFunction, thisObj, arguments){
  var initialEntry;
  initialEntry = com_google_gwt_core_client_impl_Impl_entryDepth++ ==
0;
  try {
return jsFunction.apply(thisObj, arguments);
  }
   finally {
initialEntry && (com_google_gwt_core_client_impl_SchedulerImpl_
$clinit__V() ,
com_google_gwt_core_client_impl_SchedulerImpl_runScheduledTasks__Lcom_google_gwt_core_client_JsArray_2Lcom_google_gwt_core_client_JsArray_2V
(com_google_gwt_core_client_impl_SchedulerImpl_FINALLY_1COMMANDS,
com_google_gwt_core_client_impl_SchedulerImpl_FINALLY_1COMMANDS));
--com_google_gwt_core_client_impl_Impl_entryDepth;
  }
}

Does anyone have any ideas.

Thanks,

Charlie M

--

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

2009-11-16 Thread Davis Ford
Try to set up as little of this as possible in GWT/Java and do as much as
possible in CSS.  Browsers have CSS quirks...GWT won't help with that.  This
tool is very helpful for working out IE css issues:
http://www.my-debugbar.com/wiki/

On Sun, Nov 15, 2009 at 11:03 PM, golfdude  wrote:

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


-- 
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: Problems with 1.7.1 -noserver hosted mode on Linux

2009-11-16 Thread Jeff Chimene
The general trend seems to be that GWT no longer works reliably with the
xulrunner (which provides hosted mode support on Linux) in recent versions
ot Ubuntu.

If possible, please try GWT 2.0 MS2. It's quite stable, and has lots of
Shiny. Dropping xulrunner in place of OOPHM is really the way you want to go
for testing.


On Mon, Nov 16, 2009 at 1:08 AM, bysse  wrote:

> I've managed to replicate the problem in a small project. As soon as i
> add the richfaces filter to web.xml it stops working from the hosted
> mode browser. It still works in FF though...
>
> On Nov 5, 1:22 pm, bysse  wrote:
> > Thanks for the suggestions, i didn't receive any notification mail
> > about the answers have to check my settings.
> >
> > @Jeff: I tried to run a test project and everything works fine. But on
> > the real, the big multi-module project hosted mode doesn't work. I
> > don't know what the difference between the projects are, i guess i
> > have to investigate it further
> >
> > @mike_mac: I use the war dir. I tried to run it from command line. The
> > results were the same.
> >
> > On Oct 29, 4:35 pm, mike_mac  wrote:
> >
> > > Its not the war vs maven webapp issue is it ? the eclipse plugin
> > > expects a war dir and doesn't work with the maven default dir
> > > (webapp) ... Try running it from the commandline manually setting the
> > > classpath to see if it works. If it does you can simply add it to your
> > > run/debug configurations as a Java Application.
> >
> > > On Oct 28, 2:36 pm, Jeff Chimene  wrote:
> >
> > > > The problem may be that .16 point release doesn't play well w/ GWT.
> The
> > > > symptoms are usually that the debugger doesn't stop at a breakpoint,
> not
> > > > that the entry point is never called. I think you have to downgrade
> to at
> > > > least .14 Search this list for the JDK version. It's been discussed
> several
> > > > times.
> >
> > > > On Wed, Oct 28, 2009 at 2:33 AM, bysse 
> wrote:
> >
> > > > > I'm having huge problems getting hosted mode to work underLinuxwith
> > > > > the -noserverflag. The module entry point is never called and no
> > > > > error message is show / logged. I've tried to start it through both
> > > > > the maven plugin and the eclipse plugin with the same results.
> >
> > > > > The project works fine in a windows environment with the same
> setup.
> > > > > So there must be something wrong with theLinuxSDK. Does anyone have
> > > > > similar problems?
> >
> > > > > My setup is:
> > > > >  Linuxx64 (Ubuntu 9.04)
> > > > >  Java 1.6.0.16 32bit
> > > > >  GWT SDK 1.7.1
> > > > >  Eclipse 3.5
> > > > >   Google Plugin 1.1.2
> > > > >  JBoss 4.2.2 and 4.2.3
> > > > >  Firefox 3.0.14
> >
> >
>
> --
>
> 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: how large of your GWT compiled code? My one is 850K

2009-11-16 Thread Bakul
Hi,

Our app,  50 -55 % done so far, for one browser is nearly 1.6 MB
without gzip. And it has nearly 70 -80 RPC calls.

Luis, Question for you:
As you said your app is 2.1 MB of obfuscated, how is the preformance
and does it has any issue?

Question to all:
What is the max size that of GWT one module that a browser can handle
without any issue, specially IE 6, in our case :-( ?

Thanks,
Bakul.


On Nov 16, 6:08 am, luisfpg  wrote:
> Our app is still 60-70% complete and already has 2.1MiB of obfuscated
> code. Pretty code is 14+MiB.
> However we've developed several components and widgets, and we have a
> lot of RemoteServices wich several (and sometimes complex) model
> classes, which are transmitted over the wire.
> We will still further investigate the GWT 2.0's runAsync(), which
> should make things better.
> Gzipping is also a must.
> Just to point out, someone said that changing collection interfaces to
> implementations (i.e.: List to ArrayList) in remote services /
> serializable classes would reduce the code size. We tried it, and
> reduced 100k. Not to ignore, but would make the code largely
> unmaintainable, so we won't do it.
> Any further tips on reducing code size would be nice.
> --
> Luis Fernando Planella Gonzalez

--

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-16 Thread Blaze(tu)
Actually you can use socket via Flash or Java Applet.

try http://code.google.com/p/gwt-socket/

or the component in GWT Summer of Code
http://code.google.com/p/gwt-soc/wiki/SocketsForGWT_Report

On Nov 15, 9:01 pm, Jim  wrote:
> 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: embedding into another site

2009-11-16 Thread Davidj2k
Well, embedding using an IFRAME does work for getting the site
embedded into another but having access to objects to update that page
is where my problem is, lets say I have a simple function that sends
an alert like this

import org.timepedia.exporter.client.Export;
import org.timepedia.exporter.client.ExportPackage;
import org.timepedia.exporter.client.Exportable;

import com.google.gwt.user.client.Window;

@Export
@ExportPackage("mypackage")
public class Widget implements Exportable {

 @Export
 public void AlertWidget(String alerts)
 {
 Window.alert(alerts);
 }
}

Now I can use this code in javascript like this

var hello = new mypackage.Widget();
hello.AlertWidget('testing');


but the problem is that I cannot reference that from the page that has
my app embedded in it using an IFRAME



On Nov 16, 8:46 am, Davis Ford  wrote:
> What exactly is the problem you encountered?  I just embedded an app I made
> with GWT into another site on another domain in an IFRAME.  It worked fine
> for me.  If your app calls remote services, they have to hit the same server
> that served the HTML/Js/CSS.
>
>
>
>
>
> On Fri, Nov 13, 2009 at 2:45 PM, Davidj2k  wrote:
> > 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 > cr...@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: Too much is happening (the events are crowding the bus)?

2009-11-16 Thread Ian Bambury
As Thomas says, only introduce an event when needed.

Also, remember that there is no point to an event if nothing else is
interested.

If you only have one list of cars, then a CarAdded event is not needed since
the list can deal with the server response directly. The same is true of the
other events (and maybe also StartCar, StartNewCar, CarStarted, StopCar,
StopNewCar, CarStopped if I had any idea what they were for).

So in the scenario you explained, if the dialog is a popup, then since you
haven't mentioned any other page, there is, as yet, no need for any events
at all.

Now if you had a page for adding cars and another page listing cars (on,
say, another tab) then there's a need for an event.

In an optimistic UI, when the Add page submits the 'add' you fire a CarAdded
event and the list (and anything else subscribed to this event) will respond
accordingly. If, subsequently, the server reports that the add failed,
you'll need an undo event to. More work, but it gives a more responsive feel
for the user.

In a pessimistic (traditional) UI, when the Add page, when the server
reports that the add was successful, you fire a CarAdded event so that the
list can respond. Easier, but the user sees a lag between pressing the
button and seeing the update, and if they switch quickly to the list, their
new entry might take a few moments to turn up.

If, somewhere in my app, I do something, I don't just tell the world in the
desperate and pathetic hope that maybe somewhere, sometime, something or
someone might take an interest in the boring, mundane minutiae of what I'm
doing. An event bus is not the programming equivalent of Twitter :-) My
pages are more of the busy executive, working efficiently on their own
initiative as far as possible, and sending out memos on a strictly 'need to
know' basis as well as responding to incoming ones. Or something like that.

Ian

http://examples.roughian.com


2009/11/16 Thomas Broyer 

>
>
> On Nov 15, 3:19 am, "slind...@gmail.com"  wrote:
> > 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?
>
> In our app, the dialog would do the RPC call (and handle errors –
> though not failures, which go to a global handler–) and fire an event
> on success. Now, you also have to decide if you really need the
> granularity of a CarAddedEvent compared to a
> CarAddedUpdatedOrDeletedEvent of some sort.
>
> My rule of thumb: do not over-engineer; only introduce an event when
> you *need* it, not when you "think you might need it in the future,
> perhaps, depending on how you code the rest of your app".
> For instance, if you know your "user preferences dialog" will only be
> trigger by a single button, don't do an event for it, just call your
> dialog from the button's click handler. Later on, if you happen to
> have to call points for the user preferences, then refactor your code
> to add an event.
>
> --
>
> 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 

Re: How to create user web pages

2009-11-16 Thread Davis Ford
You can do this with the fantastic UrlRewrite filter.  I set my site up this
way to make RESTful style URLs.  There's an example how to do this here:
http://zenoconsulting.wikidot.com/blog:16



On Mon, Nov 16, 2009 at 7:52 AM, Sanjeev Kulkarni wrote:

> Thanks for the answer. This solution I already did and is working
> fine, but know I want to get the user web page by explicit URL like
> http://example.com/sanjeev.html
> Any idea???
>
>
>
> On Nov 16, 5:09 pm, gwtfanb0y  wrote:
> > A solution - without modifying the server redirects - is to use one
> > url with a parameter like this:
> >
> > http://example.com/login?user=sanjeev
> >
> > The servlet extracts the username, load the modeldata from the
> > database for it and sent it back
> > to the client.
> >
> > On 16 Nov., 11:40, Sanjeev Kulkarni  wrote:
> >
> > > Hi all,
> > > Don't know whether my post will be appropriate to this forum! but I
> > > have become helpless so I am posting here.Please excuse me if not
> > > appropriate.
> >
> > > I want to make a user web pages for all the users who registers into
> > > my application. The user can view his web page with a link like below:
> >
> > >http://example.com/username
> >
> > > I have stored all user information into a table.But not getting how to
> > > create a individual files (either .html or .jsp) to retrieve his
> > > information. I wrote a .jsp file in which I am displaying the user
> > > information based on the search criteria, but now I want display user
> > > web page explicitly without searching like linkedin public profile
> > > pages.
> >
> > > Any idea will be greatly appreciated.Thanks.
> > > Sanjeev
>
> --
>
> 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=.




Comet and GWT

2009-11-16 Thread iaio81
Hi all,
I need implementing comet with my GWT application and I was reading
about Rocket-GWT. Can I decide when send updates to client ? And if
so, how?
How can Rocket GWT avoid too many connections opened at the same time?

Thanks all

--

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: embedding into another site

2009-11-16 Thread Davis Ford
What exactly is the problem you encountered?  I just embedded an app I made
with GWT into another site on another domain in an IFRAME.  It worked fine
for me.  If your app calls remote services, they have to hit the same server
that served the HTML/Js/CSS.

On Fri, Nov 13, 2009 at 2:45 PM, Davidj2k  wrote:

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


-- 
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: GWTTestCase + Spring

2009-11-16 Thread Davis Ford
Hi, I personally wouldn't write too many test cases like this unless you are
just trying to ensure that everything is wired together.  Even then, I'd
probably use something like Selenium to record the test from the UI and play
it back.

Alternatively, you might consider employing the MVP pattern.  This would
allow you to test all of your UI logic in standard JUnit, leaving just the
dumb GUI display code untested.  You could choose to test the latter with a
GWTTestCase if you desired.  Once I started doing this, I stopped using
GWTTestCase altogether.  I unit test all my UI logic with just JUnit and
EasyMock.  My tests (500+) finish in about 20 s.

On Fri, Nov 13, 2009 at 2:28 PM, dadodev  wrote:

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


-- 
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: GWT Chat

2009-11-16 Thread Prempena
I've tried to find a solution with App Engine for weeks without any
success. Server push is not only useful for Chat. It can be used to
inform users of some events coming from the Server.

This is issue is referenced at a good place in the issue list:
http://code.google.com/p/googleappengine/issues/detail?id=377

If someone is able to find a good solution, I'm interested 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-16 Thread Davis Ford
I'm doing this now.  I set the project up this way several months ago and it
works great for me.  The only real con is double compile-time, but I don't
care about that.  I even have a feature where I can show a view of one
application inside another, which is very cool.

Here's how I set it up -- http://zenoconsulting.wikidot.com/blog:16

Regards,
Davis

On Sat, Nov 14, 2009 at 8:24 AM, rolf  wrote:

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


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

exception while running rpc procedure

2009-11-16 Thread HDayi
hi there, iam getting the following exception while trying to run the
rpc procedure.
running code is following the stack trace:

The server is running at http://localhost:8080/
16.Kas.2009 13:29:51
com.google.appengine.tools.development.ApiProxyLocalImpl log
SEVERE: [1258378191128000] javax.servlet.ServletContext log: Exception
while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String
tr.bel.kocasinan.client.KocasinanSrv.benString(java.lang.String)'
threw an unexpected exception: java.lang.ExceptionInInitializerError
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
(RPC.java:360)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:546)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:166)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter
(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:54)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:313)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
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)
Caused by: java.lang.ExceptionInInitializerError
at com.mysql.jdbc.NonRegisteringDriver.connect
(NonRegisteringDriver.java:282)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at tr.bel.kocasinan.server.KocasinanSrvImpl.benString
(KocasinanSrvImpl.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:527)
... 27 more
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission modifyThreadGroup)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at com.google.appengine.tools.development.DevAppServerFactory
$CustomSecurityManager.checkPermission(DevAppServerFactory.java:139)
at com.google.appengine.tools.development.DevAppServerFactory
$CustomSecurityManager.checkAccess(DevAppServerFactory.java:166)
at java.lang.ThreadGroup.checkAccess(Unknown Source)
at java.lang.Thread.init(Unknown Source)
at java.lang.Thread.(Unknown Source)
at java.util.TimerThread.(Unknown Source)
at java.util.Timer.(Unknown Source)
at java.util.Timer.(Unknown Source)
at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:208)
... 36 more


the code i am trying to run

public String benString(String s) {
  

Re: How to create user web pages

2009-11-16 Thread Sanjeev Kulkarni
Thanks for the answer. This solution I already did and is working
fine, but know I want to get the user web page by explicit URL like
http://example.com/sanjeev.html
Any idea???



On Nov 16, 5:09 pm, gwtfanb0y  wrote:
> A solution - without modifying the server redirects - is to use one
> url with a parameter like this:
>
> http://example.com/login?user=sanjeev
>
> The servlet extracts the username, load the modeldata from the
> database for it and sent it back
> to the client.
>
> On 16 Nov., 11:40, Sanjeev Kulkarni  wrote:
>
> > Hi all,
> > Don't know whether my post will be appropriate to this forum! but I
> > have become helpless so I am posting here.Please excuse me if not
> > appropriate.
>
> > I want to make a user web pages for all the users who registers into
> > my application. The user can view his web page with a link like below:
>
> >http://example.com/username
>
> > I have stored all user information into a table.But not getting how to
> > create a individual files (either .html or .jsp) to retrieve his
> > information. I wrote a .jsp file in which I am displaying the user
> > information based on the search criteria, but now I want display user
> > web page explicitly without searching like linkedin public profile
> > pages.
>
> > Any idea will be greatly appreciated.Thanks.
> > Sanjeev

--

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 to create user web pages

2009-11-16 Thread gwtfanb0y
A solution - without modifying the server redirects - is to use one
url with a parameter like this:

http://example.com/login?user=sanjeev

The servlet extracts the username, load the modeldata from the
database for it and sent it back
to the client.


On 16 Nov., 11:40, Sanjeev Kulkarni  wrote:
> Hi all,
> Don't know whether my post will be appropriate to this forum! but I
> have become helpless so I am posting here.Please excuse me if not
> appropriate.
>
> I want to make a user web pages for all the users who registers into
> my application. The user can view his web page with a link like below:
>
> http://example.com/username
>
> I have stored all user information into a table.But not getting how to
> create a individual files (either .html or .jsp) to retrieve his
> information. I wrote a .jsp file in which I am displaying the user
> information based on the search criteria, but now I want display user
> web page explicitly without searching like linkedin public profile
> pages.
>
> Any idea will be greatly appreciated.Thanks.
> Sanjeev

--

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 in AsyncCallback call, returned with success

2009-11-16 Thread Ricardo Cardoso / Gmr
Hello Sri,

It was a great example.
I changed my code to a "real" asynchronous call and it worked. I just
moved certain code lines to the success method of the asynchronous
call. Before, I was trying to run that lines before the call was
finished, as you must know! :)

Thanks for your good help.


On Nov 15, 6:42 am, Sripathi Krishnan 
wrote:
> I think you should go through the discussion in this thread 
> -http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> --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=.




Re: GWT Chat

2009-11-16 Thread Lúcio Camilo
If u are using App Engine, so you can´t open sockets. Pay attention to this.

2009/11/16 Jimmy Verheecke 

> Thx ! Have a good day
>
> 2009/11/16 gwtfanb0y 
>
> I would recommend Comet, with this technology you can push serialized
>> messages from the Server to
>> each registered Client. Here is an other fine project:
>> http://code.google.com/p/gwt-comet-streamhub/
>>
>>
>>
>> On 15 Nov., 14:01, Jim  wrote:
>> > 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=.
>

--

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: Announcing the Google Plugin for Eclipse 1.1.0

2009-11-16 Thread shahid
Thanks misterln2
@Ranjeev yes I am using the current build

On Nov 13, 10:19 am, misterln2  wrote:
> the changes happened from rev 6641 to 6642
>
> a bunch of registerHandler(..) statements got removed
>
> i just tried it: copying those statements back to the current
> DevModeBase.java was sufficient to compile the trunk

--

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-16 Thread luisfpg
Our app is still 60-70% complete and already has 2.1MiB of obfuscated
code. Pretty code is 14+MiB.
However we've developed several components and widgets, and we have a
lot of RemoteServices wich several (and sometimes complex) model
classes, which are transmitted over the wire.
We will still further investigate the GWT 2.0's runAsync(), which
should make things better.
Gzipping is also a must.
Just to point out, someone said that changing collection interfaces to
implementations (i.e.: List to ArrayList) in remote services /
serializable classes would reduce the code size. We tried it, and
reduced 100k. Not to ignore, but would make the code largely
unmaintainable, so we won't do it.
Any further tips on reducing code size would be nice.
--
Luis Fernando Planella Gonzalez

--

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-16 Thread Jimmy Verheecke
Thx ! Have a good day

2009/11/16 gwtfanb0y 

> I would recommend Comet, with this technology you can push serialized
> messages from the Server to
> each registered Client. Here is an other fine project:
> http://code.google.com/p/gwt-comet-streamhub/
>
>
>
> On 15 Nov., 14:01, Jim  wrote:
> > 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=.




How to create user web pages

2009-11-16 Thread Sanjeev Kulkarni
Hi all,
Don't know whether my post will be appropriate to this forum! but I
have become helpless so I am posting here.Please excuse me if not
appropriate.

I want to make a user web pages for all the users who registers into
my application. The user can view his web page with a link like below:

http://example.com/username

I have stored all user information into a table.But not getting how to
create a individual files (either .html or .jsp) to retrieve his
information. I wrote a .jsp file in which I am displaying the user
information based on the search criteria, but now I want display user
web page explicitly without searching like linkedin public profile
pages.

Any idea will be greatly appreciated.Thanks.
Sanjeev

--

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: Does still work in GWT 1.6/7 ?

2009-11-16 Thread Thomas Broyer

On Nov 14, 6:36 pm, Steve C  wrote:
> 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

What's your problem? To answer the question from the message subject,
yes  still works. that's how GWT themes work.

--

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 to handle the returned response from the server

2009-11-16 Thread gwtfanb0y
You can use a HTMLPanel to show your (HTML)result:

HTMLPanel(event.getResults())

http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/FormSubmitCompleteEvent.html
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/HTMLPanel.html




On 15 Nov., 00:19, Jey  wrote:
> 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=.




Re: GWT Chat

2009-11-16 Thread gwtfanb0y
I would recommend Comet, with this technology you can push serialized
messages from the Server to
each registered Client. Here is an other fine project:
http://code.google.com/p/gwt-comet-streamhub/



On 15 Nov., 14:01, Jim  wrote:
> 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: Too much is happening (the events are crowding the bus)?

2009-11-16 Thread Thomas Broyer


On Nov 15, 3:19 am, "slind...@gmail.com"  wrote:
> 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?

In our app, the dialog would do the RPC call (and handle errors –
though not failures, which go to a global handler–) and fire an event
on success. Now, you also have to decide if you really need the
granularity of a CarAddedEvent compared to a
CarAddedUpdatedOrDeletedEvent of some sort.

My rule of thumb: do not over-engineer; only introduce an event when
you *need* it, not when you "think you might need it in the future,
perhaps, depending on how you code the rest of your app".
For instance, if you know your "user preferences dialog" will only be
trigger by a single button, don't do an event for it, just call your
dialog from the button's click handler. Later on, if you happen to
have to call points for the user preferences, then refactor your code
to add an event.

--

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: Problems with 1.7.1 -noserver hosted mode on Linux

2009-11-16 Thread bysse
I've managed to replicate the problem in a small project. As soon as i
add the richfaces filter to web.xml it stops working from the hosted
mode browser. It still works in FF though...

On Nov 5, 1:22 pm, bysse  wrote:
> Thanks for the suggestions, i didn't receive any notification mail
> about the answers have to check my settings.
>
> @Jeff: I tried to run a test project and everything works fine. But on
> the real, the big multi-module project hosted mode doesn't work. I
> don't know what the difference between the projects are, i guess i
> have to investigate it further
>
> @mike_mac: I use the war dir. I tried to run it from command line. The
> results were the same.
>
> On Oct 29, 4:35 pm, mike_mac  wrote:
>
> > Its not the war vs maven webapp issue is it ? the eclipse plugin
> > expects a war dir and doesn't work with the maven default dir
> > (webapp) ... Try running it from the commandline manually setting the
> > classpath to see if it works. If it does you can simply add it to your
> > run/debug configurations as a Java Application.
>
> > On Oct 28, 2:36 pm, Jeff Chimene  wrote:
>
> > > The problem may be that .16 point release doesn't play well w/ GWT. The
> > > symptoms are usually that the debugger doesn't stop at a breakpoint, not
> > > that the entry point is never called. I think you have to downgrade to at
> > > least .14 Search this list for the JDK version. It's been discussed 
> > > several
> > > times.
>
> > > On Wed, Oct 28, 2009 at 2:33 AM, bysse  wrote:
>
> > > > I'm having huge problems getting hosted mode to work underLinuxwith
> > > > the -noserverflag. The module entry point is never called and no
> > > > error message is show / logged. I've tried to start it through both
> > > > the maven plugin and the eclipse plugin with the same results.
>
> > > > The project works fine in a windows environment with the same setup.
> > > > So there must be something wrong with theLinuxSDK. Does anyone have
> > > > similar problems?
>
> > > > My setup is:
> > > >  Linuxx64 (Ubuntu 9.04)
> > > >  Java 1.6.0.16 32bit
> > > >  GWT SDK 1.7.1
> > > >  Eclipse 3.5
> > > >   Google Plugin 1.1.2
> > > >  JBoss 4.2.2 and 4.2.3
> > > >  Firefox 3.0.14
>
>

--

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