Re: Get all events

2010-11-23 Thread MAM
thanks for the reply , i'm not trying to listen to native dom events .
i give you an example to understand:

- i have a button "add" with an "addClickHandler"
- At runtime i'm trying to get all button's properties and events (in
this case the "addClickHandler")

Thanks

On 19 nov, 12:25, Jack  wrote:
> You mean something like:
>
> Event.addNativePreviewHandler(NativePreviewHandler handler)
>
> ?
>
> JavaDoc: Adds a NativePreviewHandler that will receive all events
> before they are fired to their handlers. Note that the handler will
> receive all native events, including those received due to bubbling,
> whereas normal event handlers only receive explicitly sunk events.
>
> On 19 Nov., 10:33, MAM  wrote:
>
>
>
>
>
>
>
> > i want to retrieve all events , "previously"added to a Widget(button,
> > Panel, TextFiled ...) , at runtime

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



Re: Documentation 'Getting started with RequestFactory' is missing the 'inherits' point

2010-11-23 Thread Thomas Broyer

On 23 nov, 07:21, Berzehk  wrote:
> It should mention the gwt.app.xml file should contain :
>   
> to work correctly. There is no mention of it in the document.. It's
> only appearing in the dynatablerf example.

*and* the doc about "How do I know which GWT modules I need to
inherit?" is still listing only a few modules dating from GWT 1.5:
http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideInheritingModules

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



Re: Documentation 'Getting started with RequestFactory' is missing the 'inherits' point

2010-11-23 Thread Eric

What about servlet mappings in web.xml ?
I'm looking at the expenses example and the web.xml contains entries
for few servlets.
Do we have to add the servlet mappings as well ?

On Nov 23, 8F:21 am, Berzehk  wrote:
> It should mention the gwt.app.xml file should contain :
>   
> to work correctly. There is no mention of it in the document.. It's
> only appearing in the dynatablerf example.

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



Re: Web Security General questions

2010-11-23 Thread Jeff Larsen
Thanks for the book suggestion!

That book looks like a good read. I'll get the boss's ok and get a
copy for the office.

Anyone else have any good web security resources?

On Nov 21, 10:26 pm, Didier Durand  wrote:
> Hi,
>
> I would recommend the book "Ajax Security" by Billy Hoffmann
>
> regards
> didier
>
> On Nov 21, 6:17 pm, Brett Thomas  wrote:
>
> > Id love to hear answers too. I try to listen to a great podcast every week,
> > Security Now -www.grc.com/securitynow
> > On Nov 21, 2010 11:20 AM, "Jeff Larsen"  wrote:> I 
> > realize that this isn't necessarily a GWT specific question, but I
> > > am curious as to what are some good resources for managing and
> > > maintaining secure web-apps, and specifically in a GWT environment.
>
> > > I've read
>
> >http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gw...
>
> > > but I was wondering what people have found to be some useful blogs/
> > > resources for managing maintaining secure web applications and was
> > > hoping you'd be willing to share them here.
>
> > > Thanks!
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
>
> > "Google Web Toolkit" group.> To post to this group, send email to 
> > google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
>
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .> For more options, visit this group at
>
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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.



Deploying GWT application on a web server

2010-11-23 Thread Noor
Hi,
I have read the documentation on deployment but I have not yet figured
how to deploy an gwt app on web server. Can someone explain me how to
do so assume the default application created with eclipse:

that is the server implementation in a package
and the field verifier which is used by the server implementation in
another package.

thanks in advance!!

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



Re: How to stop IE8 from caching my Ajax requests ?

2010-11-23 Thread magat
Problem solved. Just added a new param to my request :

params + = "&time=" + (new Date()).getTime();

Thanks again for your help

On 22 nov, 10:41, magat  wrote:
> Thanks for your answer !
>
> I understand your point, but I'm not in charge of the server, which is
> part of my client's other projects.
>
> The GET is a bad choice, but I have to deal with it, and adding server
> headers isn't possible.
>
> I will try adding a timestamp param, and post the results here.
>
> On 17 nov, 12:12, Thomas Broyer  wrote:
>
>
>
>
>
>
>
> > On 16 nov, 16:34, magat  wrote:
>
> > > Hi all,
>
> > > I'm using a RequestBuilder from com.google.gwt.http.client to update
> > > informations in my app (calling an external home-made API which I must
> > > call with http GET).
>
> > Doing updates using GET requests is a Bad Thing™, to begin with.
>
> > > Everything works just the way I want to, except when using IE8 (and
> > > maybe other IEs, haven't tested them yet). When inIE, the requests
> > > are cached, and the server never receives any past the first one.
>
> > > I found out that this problem is related to the wayIEcaches Ajax
> > > requests (someone had the same problem with JQuery here :
> > >http://stackoverflow.com/questions/1013637/unexpected-caching-of-ajax...).
>
> > The workaround was to use "cache: false", which in jQuery adds a
> > parameter to the query-string (named "_" with the value being the
> > current timestamp: 
> > seehttps://github.com/jquery/jquery/blob/master/src/ajax.js#L268
> > )
>
> > > Unfortunately, asking my users to change the caching params inIEis
> > > not possible, so I'm trying to solve the problem in the request
> > > builder itself.
>
> > > I tried to add http headers topreventIE from caching the requests :
>
> > > requestBuilder.setHeader("Cache-Control", "max-age=0,no-cache,no-
> > > store,post-check=0,pre-check=0");
> > > requestBuilder.setHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT");
>
> > > ButIEignores them :(
>
> > > I'm open to every suggestions, thanks for your help !
>
> > Have you tried sending aggressive no-cacheheaders *from the server*?
>
> > But the obvious fix would be to not use GET for what it's not meant to.

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



Re: Deploying GWT application on a web server

2010-11-23 Thread Carlos Morell
Hi,

I think that you have to deploy a war file with all your web app.

Read this blog, maybe it answer your better than me hehehe

http://blog.elitecoderz.net/gwt-and-tomcat-create-war-using-eclipse-to-deploy-war-on-tomcat/2009/12/

:)

2010/11/23 Noor 

> Hi,
> I have read the documentation on deployment but I have not yet figured
> how to deploy an gwt app on web server. Can someone explain me how to
> do so assume the default application created with eclipse:
>
> that is the server implementation in a package
> and the field verifier which is used by the server implementation in
> another package.
>
> thanks in advance!!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Enviado desde iPad

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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.



inheritance in Services that are used by RequestFactory RequestContext classes

2010-11-23 Thread agi
Hallo,

I am using RequestFactory in my project.
What I would like to do is to have base class for some of my
g...@service  classes which will be holding some common functionality
( e.g. CRUD operations)
First try to achieve that was creating  structure like this:

// request definition on client side
@Service(CourseGwtService.class)
CourseRequest extends RequestContext
{
 Request getConnectedCourse();
 // .. other methods
}

// service definition on server (jboss) side
public class  CourseGwtService extends BaseGwtService
{
  // some specific methods
}

// base implementation for gwt services
public class  BaseGwtService
{
 public static Course  getConnectedCourse( )
   {
  return courseDao.getConnectedCourse();
   }
}

This code compiles without errors. But after running application and
calling getConnectedCourse() method :
 requestFactory.courseRequest().getConnectedCourse( ).fire();

I am getting an exception:
 java.lang.IllegalArgumentException: Unknown operation
shared.request.CourseRequest::getConnectedCourse
at
com.google.gwt.requestfactory.server.JsonRequestProcessor.getOperation(JsonRequestProcessor.java:
702) [:]
at
com.google.gwt.requestfactory.server.JsonRequestProcessor.processJsonRequest(JsonRequestProcessor.java:
844) [:]
at
com.google.gwt.requestfactory.server.JsonRequestProcessor.decodeAndInvokeRequest(JsonRequestProcessor.java:
232) [:]


So my questions are:
- can we use inheritance in @Service classes?
- can we use generics arguments in @Service classes? e.g. I would like
to create something like this:
BaseGwtService 
{
 public static T getConnectedEntity( )
   {
  return dao.getConnectedEntity();
   }

public static T save( T toSave)
   {
  return dao.save(T toSave);
   }
}

regards and thanks in advance:)

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



Integrating GWT Test cases in to Ant build

2010-11-23 Thread Sreekanth Nambiar
Hi,

 Do anybody have sample code to demonstrate how GWT test cases can
be integrated in to Ant build script?

Thanks
Sreekanth

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



Re: can I use java.util.UUID on client-side?

2010-11-23 Thread Slava Lovkiy
Current solution i have is to generate a batch of guids on the server,
send it to the client once, at the initialisation of the app. Client
will use the guids from the batch, gradually exhausting the pool. The
refill of the pool is done when it is about to run out of available
guids using asynch call to the server.

This solution has one flaw: due to the fact of asynchronous nature of
guids pool refill, client may run out of guids completely, throwing an
error something like 'outOfIndex'. So, it would be much easier to have
guid generated available to the client to avoid the issue above.

On Nov 23, 8:40 am, Jim Douglas  wrote:
> For the general question of "Is [x] implemented in GWT", bookmark:
>
> http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html
>
> For possible GWT-friendly UUID implementations, see:
>
> http://www.google.com/search?q=gwt+uuid
>
> FWIW, when I need a UUID in my GWT application, I find it easiest to
> generate it on the server, then send it to the client.
>
> On Nov 22, 1:28 pm, Slava Lovkiy  wrote:
>
> > Hi,
>
> > Is there a way to be able to use the same java.util.UUID.randomUUID()
> > generator on server and client side?
>
> > This might be particular useful, when some ids needs to be generated
> > on the client and then persisted on the server.
>
> > Is there a better solution to solve the more general problem - some
> > entities may originate on the client and a complex graph can be
> > created with relatationships bases on ids. The ids must be globally
> > unique after persisting data on server.

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



GWT 2.1 DateTimeFormat & locale changes?

2010-11-23 Thread Rick Porter
Hello,

I recently made some tool updates to Helios & GWT 2.1, and everything
looks pretty good. However, I am seeing some changed behavior
regarding the date/time formatting and locales.  Previously, my "out-
of-the-box" compile gave me "en-US" formatting (12 hr times, week
starting on Sun, and mm/dd/yy). Now, I am seeing 24 hr clock, weeks
starting on Monday, and -mm-dd formatting. I changed my
DateTimeFormat calls to the deprecated 'getShortDateFormat' to
'getFormat(PredefinedFormat.DATE_SHORT)' without any luck (and similar
changes for other date/time functions).

I did include the "" based
on guidance found at 
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsFormatting.html.
However, this did not seem to help.

Suggestions?

Thanks,
Rick

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



Re: can I use java.util.UUID on client-side?

2010-11-23 Thread Peter Ondruska
Why not firing request for new GUID group right after you receive
asynch reply. Thereby you would always have fresh group of GUIDs
available (given you request big enough group).

On 23 lis, 13:26, Slava Lovkiy  wrote:
> Current solution i have is to generate a batch of guids on the server,
> send it to the client once, at the initialisation of the app. Client
> will use the guids from the batch, gradually exhausting the pool. The
> refill of the pool is done when it is about to run out of available
> guids using asynch call to the server.
>
> This solution has one flaw: due to the fact of asynchronous nature of
> guids pool refill, client may run out of guids completely, throwing an
> error something like 'outOfIndex'. So, it would be much easier to have
> guid generated available to the client to avoid the issue above.
>
> On Nov 23, 8:40 am, Jim Douglas  wrote:
>
>
>
>
>
>
>
> > For the general question of "Is [x] implemented in GWT", bookmark:
>
> >http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html
>
> > For possible GWT-friendly UUID implementations, see:
>
> >http://www.google.com/search?q=gwt+uuid
>
> > FWIW, when I need a UUID in my GWT application, I find it easiest to
> > generate it on the server, then send it to the client.
>
> > On Nov 22, 1:28 pm, Slava Lovkiy  wrote:
>
> > > Hi,
>
> > > Is there a way to be able to use the same java.util.UUID.randomUUID()
> > > generator on server and client side?
>
> > > This might be particular useful, when some ids needs to be generated
> > > on the client and then persisted on the server.
>
> > > Is there a better solution to solve the more general problem - some
> > > entities may originate on the client and a complex graph can be
> > > created with relatationships bases on ids. The ids must be globally
> > > unique after persisting data on server.

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



Re: can I use java.util.UUID on client-side?

2010-11-23 Thread Peter Ondruska
I can change the http://uuid-service.appspot.com to allow requesting
group of UUID for a single request.

On 23 lis, 13:26, Slava Lovkiy  wrote:
> Current solution i have is to generate a batch of guids on the server,
> send it to the client once, at the initialisation of the app. Client
> will use the guids from the batch, gradually exhausting the pool. The
> refill of the pool is done when it is about to run out of available
> guids using asynch call to the server.
>
> This solution has one flaw: due to the fact of asynchronous nature of
> guids pool refill, client may run out of guids completely, throwing an
> error something like 'outOfIndex'. So, it would be much easier to have
> guid generated available to the client to avoid the issue above.
>
> On Nov 23, 8:40 am, Jim Douglas  wrote:
>
>
>
>
>
>
>
> > For the general question of "Is [x] implemented in GWT", bookmark:
>
> >http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html
>
> > For possible GWT-friendly UUID implementations, see:
>
> >http://www.google.com/search?q=gwt+uuid
>
> > FWIW, when I need a UUID in my GWT application, I find it easiest to
> > generate it on the server, then send it to the client.
>
> > On Nov 22, 1:28 pm, Slava Lovkiy  wrote:
>
> > > Hi,
>
> > > Is there a way to be able to use the same java.util.UUID.randomUUID()
> > > generator on server and client side?
>
> > > This might be particular useful, when some ids needs to be generated
> > > on the client and then persisted on the server.
>
> > > Is there a better solution to solve the more general problem - some
> > > entities may originate on the client and a complex graph can be
> > > created with relatationships bases on ids. The ids must be globally
> > > unique after persisting data on server.

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



gwt using jquery effect possible?

2010-11-23 Thread asianCoolz
 @UiHandler("buttonfire")
  void addNewWidget(ClickEvent event) {


 htmlPanelHolder.add(new MyCustomWidget(),"placeholder");

 }

how to use jquery so that when the MyCustomWidget() show on screen it
is using jquery "fadein" effect

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



Web Browser's history not saving last urls

2010-11-23 Thread Pablo G.F
Hello:

I have a GWT application where I call some
"redirects" (Window.Location.replace(url)). That URL is captured by a
servlet and it passes the control to a Controlles (via Spring). That
redirects are made when some widgets of my app are clicked. I´ve added
a listener and it captures the event, then the  handler associated
just invoke the Window.Location.replace.
The problem is that clicking on the "Previous" button of the web
browser doesn´t redirect to the inmediate last url; instead, it
redirects to the last Url visited before starting the application.

Any idea?

Take note the controller used to manage pages is the Spring one; from
GWT we just redirect.

Thanks

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



Re: gwt using jquery effect possible?

2010-11-23 Thread ciosbel
There is a clone of JQuery for gwt http://code.google.com/p/gwtquery/
Check it out, could be really helpful.

On 23 Nov, 13:59, asianCoolz  wrote:
> �...@uihandler("buttonfire")
>   void addNewWidget(ClickEvent event) {
>
>      htmlPanelHolder.add(new MyCustomWidget(),"placeholder");
>
>  }
>
> how to use jquery so that when the MyCustomWidget() show on screen it
> is using jquery "fadein" effect

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



Re: Web Browser's history not saving last urls

2010-11-23 Thread Thomas Broyer


On 23 nov, 14:11, "Pablo G.F"  wrote:
> Hello:
>
> I have a GWT application where I call some
> "redirects" (Window.Location.replace(url)). That URL is captured by a
> servlet and it passes the control to a Controlles (via Spring). That
> redirects are made when some widgets of my app are clicked. I´ve added
> a listener and it captures the event, then the  handler associated
> just invoke the Window.Location.replace.
> The problem is that clicking on the "Previous" button of the web
> browser doesn´t redirect to the inmediate last url; instead, it
> redirects to the last Url visited before starting the application.
>
> Any idea?

Window.Location.replace() replaces the last entry in the browser's
history. If you want to "go to" another URL without replacing the
history entry, then use Window.Location.assign().

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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.



stylesheets from included Eclipse projects not loaded

2010-11-23 Thread John
I've got a multi-project app setup in Eclipse, with the dependent
projects being included on the build path of the main project.  Each
contributing project has its own stylesheet included in the module
*.gwt.xml file ala  (each stylesheet
is in the public path folder).  However, only the stylesheet defined
in the main war folder is getting applied.

Alternately, I've tried exporting a jar file for each of the
contributing projects, and included the libraries on the build path
(and in the war/WEB_INF/lib folder).  Again, none of the projects'
stylesheets get loaded except for the main one.

Inspecting the page with Chrome Dev tools, I see the stylesheets
listed in the Resources tab, but when I attempt to inspect it, I get a
404 error.

So it seems that the page knows the stylesheets should be there, but
they weren't actually placed in the proper spot during compilation ...
is this a bug in the plugin or am I way off base on how I'm
approaching this?

Thanks -
John

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



Re: GWT Designer crashes - GWT Designer 8.1 Beta + STS 2.5.1

2010-11-23 Thread Eric Clayberg
We have confirmed that this is a problem specific to XP, so we are
going to disable that functionality, if we detect that we are running
in XP.

On Nov 22, 10:19 am, Eric Clayberg  wrote:
> The release version does not try to use WebKit at all and just uses IE
> for its rendering (which can have problems when dealing with local
> proxies). The beta should also work for you, if you disable the WebKit
> rendering pref that I mentioned earlier (which makes it use the same
> rendering technique as the release). The crash is likely due to the
> very old Windows version you are using which is probably incompatible
> with WebKit (we added the pref to disable the WebKit based rendering
> for just such a possibility). If you run it under Vista or Windows 7,
> it will probably run just fine using WebKit.
>
> On Nov 22, 9:30 am, Javid Jamae  wrote:
>
>
>
>
>
>
>
> > As a note, I've already moved past this problem by not using the Beta
> > of the GWT Designer and just using the latest stable release.
>
> > But here was my environment when I had the issue while running the
> > Beta:
>
> > OS: Microsoft Windows XP Professional Version 2002 Service Pack 3
>
> > Version of Eclipse: I tried on Eclipse Helios and on Springsource
> > Tools Suite 2.5.1 (which I mentioned originally)
>
> > JDK Running eclipse:  jdk1.6.0_23 (I'm using javaw.exe)
>
> > Yes, its reproducible, with any source file. I was using a
> > pregenerated Application.java file (created by Maven GWT plugin I
> > think).
>
> > Hope that helps.
>
> > -Javid
>
> > On Nov 20, 12:40 pm, Eric Clayberg  wrote:
>
> > > Can you provide us with some additional information?
>
> > > What exact OS version are you using?
>
> > > What version of Eclipse?
>
> > > What exact JVM is running Eclipse?
>
> > > Is this reproducible? With any source file or one specific source
> > > file? Can you provide a test case?
>
> > > Note that on the "WindowBuilder > GWT" pref page, there is an option
> > > to disable WebKit rendering (and revert to IE rendering). Give that a
> > > try.
>
> > > On Nov 19, 3:40 pm,JavidJamae wrote:
>
> > > > I'm running Springsource Tools Suite 2.5.1. I set up GWT and the GWT
> > > > designer (using the beta update site with the 20101118xxx release).
> > > > When I try to bring up the designer view, Java crashes and gives me a
> > > > dump file in the STS root directory. The key stacktrace in that file
> > > > is as follows. Any help you could provide on how I can get past this
> > > > would be very helpful. Thanks!
>
> > > > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
> > > > j
> > > > com.instantiations.designer.gwt.webkit.BrowserShellWebKitImplWin32._makeSho
> > > >  t(Ljava/
> > > > lang/Number;)Ljava/lang/Number;+0
> > > > j
> > > > com.instantiations.designer.gwt.webkit.BrowserShellWebKitImplWin32.makeShot
> > > >  ()Lorg/
> > > > eclipse/swt/graphics/Image;+5
> > > > j
> > > > com.instantiations.designer.gwt.webkit.BrowserShellWebKit.createBrowserScre
> > > >  enshot()Lorg/
> > > > eclipse/swt/graphics/Image;+4
> > > > j
> > > > com.instantiations.designer.gwt.model.widgets.support.GWTState.createBrowse
> > > >  rScreenshot()Lorg/
> > > > eclipse/swt/graphics/Image;+12
> > > > j
> > > > com.instantiations.designer.gwt.model.widgets.UIObject_Info.fetchImage(Ljav
> > > >  a/
> > > > lang/Object;)V+4
> > > > j
> > > > com.instantiations.designer.gwt.model.widgets.UIObject_Info.refresh_fetch()
> > > >  V
> > > > +57
> > > > j  com.instantiations.designer.core.model.ObjectInfo$5$1.run()V+17
> > > > j
> > > > com.instantiations.designer.core.utils.execution.ExecutionUtils.runDesignTi
> > > >  me(Lcom/
> > > > instantiations/designer/core/utils/execution/RunnableEx;)V+9
> > > > j  com.instantiations.designer.core.model.ObjectInfo$5.run()V+8
> > > > j  com.instantiations.designer.core.model.ObjectInfo.doRefresh(Lcom/
> > > > instantiations/designer/core/utils/execution/RunnableEx;)V+1
> > > > j  com.instantiations.designer.core.model.ObjectInfo.refresh()V+25
> > > > j
> > > > com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(Lorg
> > > >  /
> > > > eclipse/core/runtime/IProgressMonitor;)V+121
> > > > j  com.instantiations.designer.core.editor.DesignPage.access$10(Lcom/
> > > > instantiations/designer/core/editor/DesignPage;Lorg/eclipse/core/
> > > > runtime/IProgressMonitor;)V+2
> > > > j  com.instantiations.designer.core.editor.DesignPage$7$1.run()V+11
> > > > j  org.eclipse.swt.widgets.Synchronizer.syncExec(Ljava/lang/Runnable;)V
> > > > +121
> > > > j  org.eclipse.ui.internal.UISynchronizer.syncExec(Ljava/lang/
> > > > Runnable;)V+91
> > > > j  org.eclipse.swt.widgets.Display.syncExec(Ljava/lang/Runnable;)V+64
> > > > j  com.instantiations.designer.core.editor.DesignPage$7.run(Lorg/
> > > > eclipse/core/runtime/IProgressMonitor;)V+27
> > > > j  org.eclipse.jface.operation.ModalContext.runInCurrentThread(Lorg/
> > > > eclipse/jface/operation/IRunnableWithProgress;Lorg/eclipse/core/
> > > > runtime/IProgressMonitor;)V

Re: Deploying GWT application on a web server

2010-11-23 Thread Lukasz
Just compile the project using the eclipse "Google - Compile" option.
Then make a WAR archive  (archive the war folder within your project
folder) and deploy it e.g. on tomcat (copy the archive to tomcat's
webapps directory).

After tomcat discovered the new war and auto-deployed it, you're ready
to go and can access the app via browser.

HTH,
Lukasz

On 23 Nov., 12:28, Carlos Morell  wrote:
> Hi,
>
> I think that you have to deploy a war file with all your web app.
>
> Read this blog, maybe it answer your better than me hehehe
>
> http://blog.elitecoderz.net/gwt-and-tomcat-create-war-using-eclipse-t...
>
> :)
>
> 2010/11/23 Noor 
>
>
>
>
>
>
>
>
>
> > Hi,
> > I have read the documentation on deployment but I have not yet figured
> > how to deploy an gwt app on web server. Can someone explain me how to
> > do so assume the default application created with eclipse:
>
> > that is the server implementation in a package
> > and the field verifier which is used by the server implementation in
> > another package.
>
> > thanks in advance!!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Enviado desde iPad

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



How to animate using ActivityManager

2010-11-23 Thread Raphael André Bauer
Hi,


I am currently checking out possibilites to use animations  together
with ActivityManagers of GWT 2.1.
(using something like -webkit-transition-property:
-webkit-transform;  -webkit-transition-duration: 0.35s; etc).

When the user navigates from one place to another I simply want to
fade in / fade out stuff...


My idea was to extend an ActivityManager and create an AnimatedActivityMapper.

Then I could (theoretically) overwrite
@Override
  private void showWidget(IsWidget view) {
if (display != null) {
  display.setWidget(view);
}
  }


and add stuff to add classes responsible for the animation.

Would this be roughly a good way to do it, or are there side effects I
am not aware of. Is there any best practise for that?


Thanks :)


Raphael

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



Re: Deploying GWT application on a web server

2010-11-23 Thread Noor
what about the server implementation files??

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



Re: How to keep row selected after pagination grid refresh?

2010-11-23 Thread Ahmed Shoeib
Thanks for your help

On Nov 22, 3:50 am, John LaBanca  wrote:
> @ahmedelsayed.shoeib -
>
> Are you using a CellTable?  If so, you can push new data into a row to
> refresh it:
> myCellTable.setRowData(rowIndexToRefresh,
> Collections.singletonList(valueToRefresh));
>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
> On Sun, Nov 21, 2010 at 3:19 PM, Ahmed Shoeib 
> > wrote:
> > i don't use gwt-ext
> > i use gwt
> > how can refresh selected Row ??
>
> > On Nov 21, 1:35 am, Blagoja Chavkoski  wrote:
> > > This question is for ext gwt forum, but i had implemented some code close
> > to
> > > this one, and I had the same problem!!
> > > Its interesting that I notised the problem is on adding the html css
> > style
> > > for the selected row..its just not showing,
> > > the related model row is correct and all related listeners are
> > fired...but
> > > the view row style is never set or set and cleared...
> > > I investigated in the GridView class but till that point all was ok and
> > > fired prop ..it looks like something is going on after that..
> > > the relation between gwt(resp for the css styles adding in widget, and
> > the
> > > component class extension from ext) but no
> > > time to spent more and just continue without it..:)
>
> > > regards and hope u gonna solve it,
> > > if u do..u can notify here also...
>
> > > B
>
> > > On Sun, Nov 21, 2010 at 12:07 AM, John LaBanca 
> > wrote:
> > > > It sounds like you are using gwt-ext.  Have you tried posting your
> > question
> > > > on their forum?
>
> > > > Thanks,
> > > > John LaBanca
> > > > jlaba...@google.com
>
> > > > On Sat, Nov 20, 2010 at 11:48 AM, Ahmed Shoeib <
> > > > ahmedelsayed.sho...@gmail.com> wrote:
>
> > > >> i also need to know how to refresh a row with specific Object
>
> > > >> On Nov 19, 10:35 am, Tomeo  wrote:
> > > >> > Hi folks,
>
> > > >> > I have a below a simple scenario:
>
> > > >> > 1. I have a grid populated with data
> > > >> > 2. I select any 1 row from grid - data with a specific "Object
> > > >> > Id" [internal id]
> > > >> > 3. I press a refresh button from a paginationToolbar
> > > >> > 4. data are refreshed
> > > >> > 5. no row from grid is being selected.
>
> > > >> > Question 1:
> > > >> > How can I change a step 5, so after refresh a row with specific
> > Object
> > > >> > Id (from step 2) would be automaticaly selected?
>
> > > >> > I tried to implement a LoadListener to loader, but it seems like I'm
> > > >> > incorrectly selecting a row from my grid.
> > > >> > Here is a bit of my code:
>
> > > >> > 1. A global variable of type "Zakazka" to store a Zakazka before
> > > >> > refresh occures (the one which should be selected after refresh):
> > > >> > Code:
>
> > > >> > private Zakazka selectedZakazka;
>
> > > >> > 2. Here is my grid definition with loader's load listener
> > > >> > Code:
>
> > > >> >       RpcProxy> proxy = new
> > > >> > RpcProxy>() {
> > > >> >         @Override
> > > >> >         public void load(Object loadConfig,
> > > >> > AsyncCallback> callback) {
> > > >> >             Tracing.Log("ZakazkyAktivne.RpcProxy.load.before");
> > > >> >             service.getZakazky((PagingLoadConfig) loadConfig,
> > > >> > callback);
> > > >> >             Tracing.Log("ZakazkyAktivne.RpcProxy.load.after");
> > > >> >         }
> > > >> >       };
>
> > > >> >       // loader
> > > >> >       final PagingLoader> loader = new
> > > >> > BasePagingLoader>(proxy);
> > > >> >       loader.setRemoteSort(true);
>
> > > >> >       ListStore store = new ListStore(loader);
> > > >> >       pagingToolBar = new PagingToolBar(50);
> > > >> >       pagingToolBar.bind(loader);
>
> > > >> >       List columns = new ArrayList();
> > > >> >       columns.add(new ColumnConfig("object_id", "Object Id", 80));
> > > >> >       columns.add(new ColumnConfig("cislo_dokladu", "Èíslo dokladu",
> > > >> > 100));
> > > >> >       ColumnConfig created = new ColumnConfig("created", "Dátum
> > > >> > vytvorenia", 105);
> > > >> >       created.setDateTimeFormat(DateTimeFormat.getFormat("dd.MM.
> > > >> > HH:mm:ss"));
> > > >> >       columns.add(created);
> > > >> >       columns.add(new ColumnConfig("objednavatel", "Objednavatel",
> > > >> > 120));
> > > >> >       columns.add(new ColumnConfig("stredisko", "Stredisko", 150));
> > > >> >       columns.add(new ColumnConfig("stav_zakazky_id", "Id stavu
> > > >> > zakazky", 60));
> > > >> >       columns.add(new ColumnConfig("stav_zakazky_kod", "Kód stavu
> > > >> > zakazky", 100));
> > > >> >       columns.add(new ColumnConfig("stav_zakazky", "Stav zakazky",
> > > >> > 100));
> > > >> >       columns.add(new ColumnConfig("stav_zakazky_zmenil_uziv_meno",
> > > >> > "Zakazku zmìnil", 100));
> > > >> >       ColumnConfig updated = new ColumnConfig("stav_zakazky_zmena",
> > > >> > "Dátum zmìny", 105);
> > > >> >       updated.setDateTimeFormat(DateTimeFormat.getFormat("dd.MM.
> > > >> > HH:mm:ss"));
> > > >> >       columns.add(updated);
>
> > > >> >       ColumnModel cm = new ColumnM

Re: RequestFactory remove() not working

2010-11-23 Thread poe
I've got the same problem.

I catch an object with the "find" Method through the RequestFactory.
When I try to remove the object with my remove Method the object send
to the server is marked with UPDATE as if you've called
request.edit().using(currentObject) before (which I didn't).
When I remove the object my "find" Method is called once again after
the object is deleted (but not by me, that musst be handled by the
RequestFactory). That's were the "No such Object" error comes from.

Can you confirm that? Does anyone has a solution yet?

On 11 Nov., 02:46, ziggystardust  wrote:
> Did you ever find an answer to your question? I am having the same
> problem and have not yet been able to find an answer.
>
> On Oct 27, 5:28 am, AlexG 
> wrote:
>
>
>
>
>
>
>
> > Hi @ all,
>
> > I know, that theres an issue, and that this bug is already known.
>
> > I always get errors, when I try toremovean Entity. I´m using
> > JDO with theRequestFactory, and I get the following Error:
>
> > Server Error: No such Object
>
> > I checked the id and everything, but the Object definitely
> > exists in my database. I don´t understand, why I get this
> > Error? I mean persist() works as intended. The querys
> > also works fine.
>
> > Does someone know, what I´m doing wrong, or is it a bug?
>
> > Greets
> > Alex

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



Re: Web Browser's history not saving last urls

2010-11-23 Thread Pablo G.F
Thanks, that works!!

On 23 nov, 15:11, Thomas Broyer  wrote:
> On 23 nov, 14:11, "Pablo G.F"  wrote:
>
> > Hello:
>
> > I have a GWT application where I call some
> > "redirects" (Window.Location.replace(url)). That URL is captured by a
> > servlet and it passes the control to a Controlles (via Spring). That
> > redirects are made when some widgets of my app are clicked. I´ve added
> > a listener and it captures the event, then the  handler associated
> > just invoke the Window.Location.replace.
> > The problem is that clicking on the "Previous" button of the web
> > browser doesn´t redirect to the inmediate last url; instead, it
> > redirects to the last Url visited before starting the application.
>
> > Any idea?
>
> Window.Location.replace() replaces the last entry in the browser's
> history. If you want to "go to" another URL without replacing the
> history entry, then use Window.Location.assign().

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



Re: Deploying GWT application on a web server

2010-11-23 Thread Noor
Ok, I have undertand where to place the war folder. Now in case, I am
using an RPC where and how the file be placed because the serve file
are .java

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



Re: Default value for @RemoteServiceRelativePath ?

2010-11-23 Thread David Balažic
What is RpcRefinable ?
Google finds only this thread when searching for it.

On Nov 23, 5:35 am, Didier Durand  wrote:
> Hi David,
>
> You can achieve what you want by using ServiceDefTarget of GWT.
>
> Here below some code snippet of mine dynamically creating a detailed
> url (instead of the basic one done by the annotation) to allow better
> monitoring: I put some info (object id, etc.) in the url to monitor
> more efficiently
>
> So, check the ServiceDefTarget object in GWT dev kit: it will provide
> you what you need.
>
> ServiceDefTarget def =
> (ServiceDefTarget)GWT.create(ServerObjectGetService.class);;
> String url = RELATIVE_URL + "/" +
> Util.getSimpleName(object.getClass());
> if (object instanceof RpcRefinable) {
>         url += "/" + ((RpcRefinable)object).getSubUrl();}
>
> def.setServiceEntryPoint(url);
>
> didier
>
> On Nov 22, 9:02 pm, David Balažic  wrote:
>
> > Hi!
>
> > would it be possible to have a default value for the
> > RemoteServiceRelativePath annotation?
> > Like the interface name?
>
> > For example:
>
> > @RemoteServiceRelativePath("StockPriceService")
> > public interface StockPriceService extends RemoteService { ... }
>
> > could be written just as
>
> > public interface StockPriceService extends RemoteService { ... }
>
> > And "StockPriceService" would be the default name is there is no
> > annotation?
>
> > Would save some typing for the developer.
>
> > Regards,
> > David

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



Re: Deploying GWT application on a web server

2010-11-23 Thread Alex Nederlof
Hi,

What always works for me is just copying the war folder to the Tomcat webapp
folder. Don't forget to press GWT-compile button first.

1. Don't forget to add the required libraries to the WEB-INF/lib folder or
else it won't work.
2. Don't forget to change absolute path names to required resources before
deploying (if you have any).

Cheers,

Alex

On Tue, Nov 23, 2010 at 12:28 PM, Carlos Morell  wrote:

> Hi,
>
> I think that you have to deploy a war file with all your web app.
>
> Read this blog, maybe it answer your better than me hehehe
>
>
> http://blog.elitecoderz.net/gwt-and-tomcat-create-war-using-eclipse-to-deploy-war-on-tomcat/2009/12/
>
> :)
>
> 2010/11/23 Noor 
>
> Hi,
>> I have read the documentation on deployment but I have not yet figured
>> how to deploy an gwt app on web server. Can someone explain me how to
>> do so assume the default application created with eclipse:
>>
>> that is the server implementation in a package
>> and the field verifier which is used by the server implementation in
>> another package.
>>
>> thanks in advance!!
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>
>
> --
> Enviado desde iPad
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



GWT Compile Error with Tomcat (apache.commons) libary - classpath related

2010-11-23 Thread 7of9
I am using eclipse(Galileo)+tomcat plugin+gwt plugin.
The project uses Spring MVC+ lots of JSP, only one part of the system
using GWT. That is for menu items.
At the moment, every single time I check out a project, I have to
compile the GWT module before I start my tomcat.

There is known problem with the order of the libaries. So to make GWT
module compilable, I use the order below on my java build path:

JRE System libary
GWT SDK - GWT2.1.0
Apache Tomcat
Web App Libraries


Here is the problem. After I compiled the GWT module, some source file
got red lined. They used apache.common. digester. It compiled OK
without GWT. Looks like it is confused with the apache.common.
digester and GWT digest


Is this a known issue? I am new to GWT, help please?

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



GWT Compile Error and more

2010-11-23 Thread 7of9

When compile GWT,I receive the following error:

[ERROR] Unexpected
java.lang.NoSuchFieldError:
reportUnusedDeclaredThrownExceptionIncludeDocCommentReference

I googled around and found the solution

- Right-click the project > Properties
- Java Build Path > Order and Export
- Move the GWT SDK above the Server Library (like Apache Tomcat or
SpringSource tc Server)

This did solve the compile error. However the method used
org.apache.commons.digester.Digester module are redlined. It tried to
find the digest RuleSetBase interface in gwt-dev.jar.

Has anyone came cross similar problem before? Help please!!!

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



Re: Sample App using DI/Gin, MVP, UiBinder, etc

2010-11-23 Thread Mauro Bertapelle
On 18 Nov, 16:38, Daghan  wrote:
>
> I am trying to figure out how to pass
> activityManager.setDisplay(composite)
>

Implement AcceptOneWidget in your Composite, and in the setWidget
method take care of inserting/removing the Activity's view in our
Composite's receiving area

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



gwt-user.jar does not contain classes for com.google.gwt.emul package

2010-11-23 Thread Max
Hello,

I am using Maven plugin to pull down gwt-user


com.google.gwt
gwt-user
2.1.0
provided


using gwt-maven-plugin version 2.1.0
and the jar is pulled down. but it only contains .java files for
anything under com.google.gwt.emul  Is this correct?  Am i missing
something in my dependency?  Any help would be appreciated.

Thanks!
Max

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



Re: GWT Compile Error with Tomcat (apache.commons) libary

2010-11-23 Thread Sophia Shek
More details:
 I am using eclipse(Galileo)+tomcat plugin+gwt plugin, The java build
libraries’ order: JRE System libary
GWT SDK - GWT2.1.0
Apache Tomcat
Web App Libraries

The project uses Spring MVC+ lots of JSP, only one part of the system using
GWT. That is for menu items.

At the moment, every single time I check out a project, I have to compile
the GWT menu module which is kind of annoying.

The problem is when I compile the GWT module, some source file got red lined
of using apache.common. digester. It compiled OK without GWT. It is confused
with the apache.common. digester and GWT digest Is this a known issue? I am
new to GWT, help please?

On Mon, Nov 22, 2010 at 5:06 PM, 7of9  wrote:

>
> When compile GWT,I receive the following error:
>
> [ERROR] Unexpected
> java.lang.NoSuchFieldError:
> reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
>
> I googled around and found the solution
>
> - Right-click the project > Properties
> - Java Build Path > Order and Export
> - Move the GWT SDK above the Server Library (like Apache Tomcat or
> SpringSource tc Server)
>
> This did solve the compile error. However the method used
> org.apache.commons.digester.Digester module are redlined. It tried to
> find the digest RuleSetBase interface in gwt-dev.jar.
>
> Has anyone came cross similar problem before? Help please!!!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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.



Migrate GWT 2.0.4 Project to GWT 2.1.0

2010-11-23 Thread ju
Hello

Edit: Also @ StackOverflow 
http://stackoverflow.com/questions/4255247/migrate-gwt-2-0-4-project-to-gwt-2-1-0

I update my Google Plugin (and GWT) version from 2.0.4 to 2.1.0

There are now some warnings for depricated function that I will fix,
but the problem for me is this warning:

The file war\WEB-INF\lib\gwt-servlet.jar has a different size than
GWT SDK library gwt-servlet.jar; perhaps it is a different version?

Is it OK just to override this jar file with new one from

eclipse\plugins\com.google.gwt.eclipse.sdkbundle.
2.1.0_2.1.0.v201010280102\gwt-2.1.0

directory

and what about other files in war directory that are not manualy
created by me? (images, html files, js files, and gwt subdirectory)

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



How to register some functions in client?

2010-11-23 Thread Xinyin
In most modern JavaScript framework, we could declare a set first. And
then when new component comes, it will register to this set. Then how
to do this with GWT? I've got a couple of components belonging to
different modules. But when the project is delivered, it will include
only some modules. To have these hard-coded with the if-else style is
a really awkward and ugly approach. Can we do something to implement
this with the power of the framework?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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.



a quick question about using GWT and jquery

2010-11-23 Thread stewie
hello guys,

i'm a long time c++ programmer having very little experience with web
development. my limited web developing experience can date back to my
college time when i wrote some forum sites with php. i didn't quite
like working with javascript, as i didn't know any javascript debugger
that allows me to set break points and watch values at anytime. but
now, i'm about to work on a web project. i want to learn the new web
kick-ass techs and abandon php and the old way i wrote javascript. so
i'm looking at the scala and the lift framework and also GWT. I like
the idea of compiling java to javascript. the only issue i'm
concerning now is customizing my web application. customizing isn't
always as simple as replacing css style sheet. sometimes i need to use
some javascript effects. i found good jquery libraries that i should
use, but i don't if know it's possible to use them with the GWT
widgets. i know that since GWT compiles everything to javascript,
modifying the code at a html level should be possible. but i'm not
sure if this is the right way to do this and if the javascript
compiled by GWT is readable. i also couldn't find any tutorial and
example on using jquery libraries with GWT.

thanks.

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



Dynamic String Internationalisation : How to pass values

2010-11-23 Thread ravindran sridevi
Using Dynamic String Internationalisation how can i pass values to a
message like this

Input value  within the range {0} to {1}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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.



HexView using GWT

2010-11-23 Thread Lloyd
Hi,

I am new to GWT. We are planning to build browser based complex user
interface application. I have gone through the GWT web page. Is it
possible to write a HexViewer using GWT? If yes, which method should I
follow? A composite control or the java way?

would it be possible to bring "right click" feature to the
application?

Is it possible to have tree control with icon, and "two" check boxes
per entry, something like this

[+][X] [X] {#} Label

or is there any alternative for a control like this in GWT?

Is there any third party library available for GWT?

Thanks in advance,
  Lloyd



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



GWT 2.1 CellTable - set page size to fill up a containing layout

2010-11-23 Thread Valeri
Well, when we creating CellTable, one parameter is pageSize. I guess,
the most common scenario for CellTable is to have enough rows to fill
the entire container - not more, not less, and to change page size on
resizing (in a SplitLayoutPanel, for example). Or, better, to share
layout height with Pager

It seems, that I have to calculate the number of rows by myself (not
very cool). And for me the right moment to get widget height is not
clear (really, I always retrieve 0 from getBodyHeight())

Can anyone say, what is "recommended" way to calculate the right
number of rows? Table with fixed page size is just ugly

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



Re: Deploying GWT application on a web server

2010-11-23 Thread Kenneth Jacker
> Then make a WAR archive  (archive the war folder within your project
> folder) and deploy it e.g. on tomcat (copy the archive to tomcat's
> webapps directory).
>
> After tomcat discovered the new war and auto-deployed it, you're ready
> to go and can access the app via browser.

What if the application doesn't need a "server", any RPC?
But just a dynamically created web page?

How can a pure client be "deployed" without using 'tomcat'?  E.g., how
about a GWT application that only displays "Hello, World!" (with maybe
a "Quit" button)?  I know that would be stupid, but it is a simple
example of what I want to do.

Thanks!

-Kenneth

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



Re: inheritance in Services that are used by RequestFactory RequestContext classes

2010-11-23 Thread David Chandler
See https://groups.google.com/d/topic/google-web-toolkit/rC9dEaX0mok/discussion

2.1.1 will eliminate the required static methods that currently
prevent service inheritance.

/dmc

On Tue, Nov 23, 2010 at 7:13 AM, agi  wrote:
> Hallo,
>
> I am using RequestFactory in my project.
> What I would like to do is to have base class for some of my
> g...@service  classes which will be holding some common functionality
> ( e.g. CRUD operations)
> First try to achieve that was creating  structure like this:
>
> // request definition on client side
> @Service(CourseGwtService.class)
> CourseRequest extends RequestContext
> {
>  Request getConnectedCourse();
>  // .. other methods
> }
>
> // service definition on server (jboss) side
> public class  CourseGwtService extends BaseGwtService
> {
>  // some specific methods
> }
>
> // base implementation for gwt services
> public class  BaseGwtService
> {
>  public static Course  getConnectedCourse( )
>   {
>      return courseDao.getConnectedCourse();
>   }
> }
>
> This code compiles without errors. But after running application and
> calling getConnectedCourse() method :
>  requestFactory.courseRequest().getConnectedCourse( ).fire();
>
> I am getting an exception:
>  java.lang.IllegalArgumentException: Unknown operation
> shared.request.CourseRequest::getConnectedCourse
> at
> com.google.gwt.requestfactory.server.JsonRequestProcessor.getOperation(JsonRequestProcessor.java:
> 702) [:]
> at
> com.google.gwt.requestfactory.server.JsonRequestProcessor.processJsonRequest(JsonRequestProcessor.java:
> 844) [:]
> at
> com.google.gwt.requestfactory.server.JsonRequestProcessor.decodeAndInvokeRequest(JsonRequestProcessor.java:
> 232) [:]
>
>
> So my questions are:
> - can we use inheritance in @Service classes?
> - can we use generics arguments in @Service classes? e.g. I would like
> to create something like this:
> BaseGwtService 
> {
>  public static T getConnectedEntity( )
>   {
>      return dao.getConnectedEntity();
>   }
>
> public static T save( T toSave)
>   {
>      return dao.save(T toSave);
>   }
> }
>
> regards and thanks in advance:)
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



Re: How do you use Custom Widgets (Composites) multiple times?

2010-11-23 Thread jhulford
You can't do what you're asking.  A widget instance can only be added
to a single parent container.

The code you posted looks ok though, so I'm guessing you probably have
a typo in your real code where you're trying to add the same instance
of FirstClass to elementA and elementB, which will cause the error
you're describing.

On Nov 22, 12:00 am, Paul  wrote:
> Sorry if this is somewhere else and I missed it, but I have a Custom
> Widget that I need to be able to add multiple times to another custom
> widget I am creating. I do not seem to understand something about this
> process and so I get the following errors:
>
> "Different parents for double associations"
> "The other component is added to a parent component more than once."
>
> So basically, the first one gets nuked and only the second one shows
> up. What am I missing? Can someone please assist me in understanding
> what is wrong. Thank you so much in advance. Below is the code:
>
> public class FirstClass extends Composite
> {
>      public FirstClass()
>      {
>           Image image = new Image("img/picture.png");
>           AbsolutePanel element = new AbsolutePanel();
>
>           element.add(image, 0, 0);
>
>           initWidget(element);
>      }
>
> }
>
> public class SecondClass extends Composite
> {
>      public SecondClass()
>      {
>           HorizontalPanel element = new HorizontalPanel();
>
>           VerticalPanel elementA = new VerticalPanel();
>           element.add(elementA);
>
>           VerticalPanel elementB = new VerticalPanel();
>           element.add(elementB);
>
>           elementA.add(new FirstClass());
>           elementB.add(new FirstClass());
>
>           initWidget(element);
>      }
>
> }

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



Re: Deploying GWT application on a web server

2010-11-23 Thread Noor
But only the client sides files are compiled to javascript then what
happens to the server files, such as the a server file for handling
rpc services

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



Re: How do you use Custom Widgets (Composites) multiple times?

2010-11-23 Thread ep
what jhulford meant is that you really have to make a "new" on every
widget class you add to any place.

On 22 Nov., 06:00, Paul  wrote:
> Sorry if this is somewhere else and I missed it, but I have a Custom
> Widget that I need to be able to add multiple times to another custom
> widget I am creating. I do not seem to understand something about this
> process and so I get the following errors:
>
> "Different parents for double associations"
> "The other component is added to a parent component more than once."
>
> So basically, the first one gets nuked and only the second one shows
> up. What am I missing? Can someone please assist me in understanding
> what is wrong. Thank you so much in advance. Below is the code:
>
> public class FirstClass extends Composite
> {
>      public FirstClass()
>      {
>           Image image = new Image("img/picture.png");
>           AbsolutePanel element = new AbsolutePanel();
>
>           element.add(image, 0, 0);
>
>           initWidget(element);
>      }
>
> }
>
> public class SecondClass extends Composite
> {
>      public SecondClass()
>      {
>           HorizontalPanel element = new HorizontalPanel();
>
>           VerticalPanel elementA = new VerticalPanel();
>           element.add(elementA);
>
>           VerticalPanel elementB = new VerticalPanel();
>           element.add(elementB);
>
>           elementA.add(new FirstClass());
>           elementB.add(new FirstClass());
>
>           initWidget(element);
>      }
>
> }

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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.



TurnOff CompileReport

2010-11-23 Thread ale
Hi, how I can do to not generate the folder "/ target/extra/
[project_name]/soycReport/compile-report ?. Currently weighs about
393.1 MB.

I'm using GWT 2.1.0 and Maven. Appreciate it you send me an example
with maven.

Thanks

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



RequestFactory - how to fetch object graph

2010-11-23 Thread mp31415
By default RequestFactory(RF) fetches an entity proxy itself(the root)
but does not fetch other entity proxies referenced from the root. In
order to fetch referenced properties their names must be provided
using with() method on the request(context). Is there a syntax to
request proxies nested even deeper (referenced from those referenced
entities of the first level)?

For example, if there are three classes(entities): User, Line, Point:

class User
{
  Set lines;
}
class Line
{
  Point start;
  Point end;
}
class Point
{
  int x;
  int y;
}

How can I fetch User proxy with all its lines and points?

Please don't tell me about denormalizing, workarounds like referencing
everything directly from User or about upcoming in GWT 2.1.1
value(embedded) objects. The question is about entity graph and the
classes above are just an illustration.

Thanks.

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



Repeating Timer and onUnload()

2010-11-23 Thread Max Jonas Werner
Hi,

I have built a widget for my GWT application that shows the latest
actions users of the application have performed. To refresh this
widget automatically I use a Timer and its schedule() method like
this:

private final Timer t = new Timer() {
@Override
public void run() {
// perform RPC call here to refresh the list of activities
schedule(1);
}
};
...
t.schedule(1);

I'm using schedule() here since scheduleRepeating() could lead to
shorter intervalls which I don't want to. However, I could also have
used scheduleRepeating() here, that's not the actual problem.

My problem/question is rather: When this widget is removed from the
DOM I'll have to cancel() the timer, so I override onUnload() and call
t.cancel() in there. Is this the method you would recommend or is
there some other fancy way of cancelling timers automatically when
widgets are unloaded/detached?

Thanks
Max

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



Re: How to animate using ActivityManager

2010-11-23 Thread Thomas Broyer


On 23 nov, 15:45, Raphael André Bauer 
wrote:
> Hi,
>
> I am currently checking out possibilites to use animations  together
> with ActivityManagers of GWT 2.1.
> (using something like -webkit-transition-property:
> -webkit-transform;      -webkit-transition-duration: 0.35s; etc).
>
> When the user navigates from one place to another I simply want to
> fade in / fade out stuff...
>
> My idea was to extend an ActivityManager and create an AnimatedActivityMapper.
>
> Then I could (theoretically) overwrite
>         @Override
>           private void showWidget(IsWidget view) {
>                     if (display != null) {
>                       display.setWidget(view);
>                     }
>                   }
>
> and add stuff to add classes responsible for the animation.
>
> Would this be roughly a good way to do it, or are there side effects I
> am not aware of. Is there any best practise for that?

Why not doing this in the AcceptsOneWidget you give to the
ActivityManager?
Have a look at the Expenses sample, which animates using a
LayoutPanel:
http://code.google.com/p/google-web-toolkit/source/browse/tags/2.1.0/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/SlidingPanel.java

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



Re: Integrating GWT Test cases in to Ant build

2010-11-23 Thread Thomas Broyer


On 23 nov, 13:12, Sreekanth Nambiar  wrote:
> Hi,
>
>          Do anybody have sample code to demonstrate how GWT test cases can
> be integrated in to Ant build script?

The ant script generated by webAppCreator contains "test.dev" and
"test.prod" targets. The script is generated from this template:
http://code.google.com/p/google-web-toolkit/source/browse/tags/2.1.0/user/src/com/google/gwt/user/tools/project.ant.xmlsrc

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



Re: How to animate using ActivityManager

2010-11-23 Thread Raphael André Bauer
On Tue, Nov 23, 2010 at 6:06 PM, Thomas Broyer  wrote:
>
>
> On 23 nov, 15:45, Raphael André Bauer 
> wrote:
>> Hi,
>>
>> I am currently checking out possibilites to use animations  together
>> with ActivityManagers of GWT 2.1.
>> (using something like -webkit-transition-property:
>> -webkit-transform;      -webkit-transition-duration: 0.35s; etc).
>>
>> When the user navigates from one place to another I simply want to
>> fade in / fade out stuff...
>>
>> My idea was to extend an ActivityManager and create an 
>> AnimatedActivityMapper.
>>
>> Then I could (theoretically) overwrite
>>         @Override
>>           private void showWidget(IsWidget view) {
>>                     if (display != null) {
>>                       display.setWidget(view);
>>                     }
>>                   }
>>
>> and add stuff to add classes responsible for the animation.
>>
>> Would this be roughly a good way to do it, or are there side effects I
>> am not aware of. Is there any best practise for that?
>
> Why not doing this in the AcceptsOneWidget you give to the
> ActivityManager?
> Have a look at the Expenses sample, which animates using a
> LayoutPanel:
> http://code.google.com/p/google-web-toolkit/source/browse/tags/2.1.0/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/SlidingPanel.java
>

Great! That was exactly what I was looking for. Thanks :)

Raphael

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



Re: Default value for @RemoteServiceRelativePath ?

2010-11-23 Thread Didier Durand
Hi David,

This is just an interface of mine indicating that the URL can refined:
if the object is an instance, it supplies the sub-url to provide a
more detailled url for the server log.

regards
didier

On Nov 23, 4:34 pm, David Balažic  wrote:
> What is RpcRefinable ?
> Google finds only this thread when searching for it.
>
> On Nov 23, 5:35 am, Didier Durand  wrote:
>
> > Hi David,
>
> > You can achieve what you want by using ServiceDefTarget of GWT.
>
> > Here below some code snippet of mine dynamically creating a detailed
> > url (instead of the basic one done by the annotation) to allow better
> > monitoring: I put some info (object id, etc.) in the url to monitor
> > more efficiently
>
> > So, check the ServiceDefTarget object in GWT dev kit: it will provide
> > you what you need.
>
> > ServiceDefTarget def =
> > (ServiceDefTarget)GWT.create(ServerObjectGetService.class);;
> > String url = RELATIVE_URL + "/" +
> > Util.getSimpleName(object.getClass());
> > if (object instanceof RpcRefinable) {
> >         url += "/" + ((RpcRefinable)object).getSubUrl();}
>
> > def.setServiceEntryPoint(url);
>
> > didier
>
> > On Nov 22, 9:02 pm, David Balažic  wrote:
>
> > > Hi!
>
> > > would it be possible to have a default value for the
> > > RemoteServiceRelativePath annotation?
> > > Like the interface name?
>
> > > For example:
>
> > > @RemoteServiceRelativePath("StockPriceService")
> > > public interface StockPriceService extends RemoteService { ... }
>
> > > could be written just as
>
> > > public interface StockPriceService extends RemoteService { ... }
>
> > > And "StockPriceService" would be the default name is there is no
> > > annotation?
>
> > > Would save some typing for the developer.
>
> > > Regards,
> > > David
>
>

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



Re: inheritance in Services that are used by RequestFactory RequestContext classes

2010-11-23 Thread Arash
@David  I believe the url that you have mentioned is truncated. Can
you please verify that.

Thanks,
Arash

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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.



Styling a TabLayoutPanel

2010-11-23 Thread poe
Hi @ all,

i've got some problems styling a tabLayoutPanel.

Normally the tabLayoutPanel with the tabHeaders is on the top of the
contentPanels, but I want them to be at the bottom of the
contentPanels. With pure CSS I don't see how that should work. Here
ist the HTML that the tabLayoutPanel uses:



  

  http://groups.google.com/group/google-web-toolkit?hl=en.



Re: inheritance in Services that are used by RequestFactory RequestContext classes

2010-11-23 Thread David Chandler
Ah, sorry, try 
https://groups.google.com/group/google-web-toolkit/browse_thread/thread/ac2f5d11a5f49a89?hl=en&noredirect=true

Thanks,
/dmc

On Tue, Nov 23, 2010 at 1:02 PM, Arash  wrote:
> @David  I believe the url that you have mentioned is truncated. Can
> you please verify that.
>
> Thanks,
> Arash
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send 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.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



Re: TurnOff CompileReport

2010-11-23 Thread David Chandler
In your pom.xml under gwt-maven-plugin configuration section, add
false. For further help, please ask on the
gwt-maven-plugin list.

HTH,
/dmc

On Tue, Nov 23, 2010 at 11:00 AM, ale  wrote:
> Hi, how I can do to not generate the folder "/ target/extra/
> [project_name]/soycReport/compile-report ?. Currently weighs about
> 393.1 MB.
>
> I'm using GWT 2.1.0 and Maven. Appreciate it you send me an example
> with maven.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



RequestFactory, Objectify, saving a new object with collections

2010-11-23 Thread Richard Berger
Goal: Save an object an associated collection
How to do this with Request Factory and Objectify?

I have an object that looks like:
Commitment.java (in com.br.commit2.server.domain)
public class Commitment {
  @Id private Long id;
private String title;
  // other simple fields
  private Integer version;

  // Methods exposed through Request factory

  // Getters, setters
}

Since I am trying to use RequestFactory, I also have:
CommitmentProxy.java (in com.rb.commit2.shared)
@ProxyFor (Commitment.class)
public interface CommitmentProxy extends EntityProxy {
public String getTitle();
public void setTitle(String title);
  // rest of interface
}

Also have
public interface CommitmentSystemRequestFactory extends RequestFactory
{
  CommitmentRequest commitmentRequest();
  ...
}

And...
@Service (Commitment.class)
public interface CommitmentRequest extends RequestContext {
Request countCommitments();
// Other methods, implemented in Commitment.java above)
}

Finally, in my Commit2Binder.java, I have code that works to create a
commitment when a button is clicked (this is just a test app)
CommitmentRequest request = requestFactory.commitmentRequest();
CommitmentProxy newCommitment =
request.create(CommitmentProxy.class);
newCommitment.setTitle("Test Objectify title");
newCommitment.setDescription("Test Objectify Description");
Request createReq =
request.persistCommitment().using(newCommitment);

createReq.fire(new Receiver() {
@Override
public void onSuccess(Void response) {
Window.alert("Created Commitment!");

}
});

Surprisingly enough it all works fine.  Now, I want to model a new
object, a user with two collections of the Commitment object above.
These are unowned collections.  Following the objectify-appengine/
wiki//IntroductionToObjectify#Relationships, I create CommitUser

public class CommitUser implements Serializable {
private static final long serialVersionUID = 1L;
@Id private Long id;
private String googleEmail;
  ...
private Key[] dueByMeCommitments;
private Key[] dueToMeCommitments;
}

And the related CommitUserProxy
@ProxyFor (CommitUser.class)
public interface CommitUserProxy extends EntityProxy {
public int getUserLevel();

}

And a new Request Interface
@Service (CommitUser.class)
public interface CommitUserRequest extends RequestContext {
InstanceRequest persistCommitUser();
}

And add a line to my CommitmentSystemRequestFactory.java for
CommitUserRequest.

Now, in my Commit2Binder, I want to create a new CommitUser - empty
collections are fine to start with.  But the code I have, essentially
the code that works for creating a Commitment, fails.  The code is:
CommitUserRequest request = requestFactory.commitUserRequest();
CommitUserProxy newCommitUser =
request.create(CommitUserProxy.class);
newCommitUser.setGoogleNickname("Richard");
newCommitUser.setGoogleEmail("richardlan...@gmail.com");
newCommitUser.setUserLevel(1);
newCommitUser.setDueByMeCommitments(null);
newCommitUser.setDueToMeCommitments(null);
Request createReq =
request.persistCommitUser().using(newCommitUser);

createReq.fire(new Receiver() {
@Override
public void onSuccess(Void response) {
Window.alert("Created User!");

}
@Override
public void onFailure(ServerFailure error) {
Window.alert(error.getMessage());
}
});
;

The failure occurs when the rquest is fired and the error is:
Caused by: java.lang.ClassCastException:
sun.reflect.generics.reflectiveObjects.GenericArrayTypeImpl cannot be
cast to java.lang.Class
If I remove the calls to setDueByMeCommitments, setDueToMeCommitments
I get the same error.

I start to look at other ideas, but it starts to seem that I am going
down the wrong path, since this should be something relative.  Any
pointers and thoughts would be greatly appreciated.

Thanks!
RB

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



Re: RequestFactory, Objectify, saving a new object with collections

2010-11-23 Thread David Chandler
Hi Richard,

RequestFactory doesn't yet support arrays. Use List instead. Also
ensure that your Proxy doesn't expose the Objectify Key type, as only
entity types and a few value types are supported until 2.1.1.

/dmc

On Tue, Nov 23, 2010 at 2:23 PM, Richard Berger  wrote:
> Goal: Save an object an associated collection
> How to do this with Request Factory and Objectify?
>
> I have an object that looks like:
> Commitment.java (in com.br.commit2.server.domain)
> public class Commitment {
> �...@id private Long id;
>        private String title;
>  // other simple fields
>  private Integer version;
>
>  // Methods exposed through Request factory
>
>  // Getters, setters
> }
>
> Since I am trying to use RequestFactory, I also have:
> CommitmentProxy.java (in com.rb.commit2.shared)
> @ProxyFor (Commitment.class)
> public interface CommitmentProxy extends EntityProxy {
>        public String getTitle();
>        public void setTitle(String title);
>  // rest of interface
> }
>
> Also have
> public interface CommitmentSystemRequestFactory extends RequestFactory
> {
>  CommitmentRequest commitmentRequest();
>  ...
> }
>
> And...
> @Service (Commitment.class)
> public interface CommitmentRequest extends RequestContext {
>        Request countCommitments();
>        // Other methods, implemented in Commitment.java above)
> }
>
> Finally, in my Commit2Binder.java, I have code that works to create a
> commitment when a button is clicked (this is just a test app)
>        CommitmentRequest request = requestFactory.commitmentRequest();
>        CommitmentProxy newCommitment =
> request.create(CommitmentProxy.class);
>        newCommitment.setTitle("Test Objectify title");
>        newCommitment.setDescription("Test Objectify Description");
>        Request createReq =
> request.persistCommitment().using(newCommitment);
>
>        createReq.fire(new Receiver()     {
>               �...@override
>                public void onSuccess(Void response) {
>                        Window.alert("Created Commitment!");
>
>                }
>        });
>
> Surprisingly enough it all works fine.  Now, I want to model a new
> object, a user with two collections of the Commitment object above.
> These are unowned collections.  Following the objectify-appengine/
> wiki//IntroductionToObjectify#Relationships, I create CommitUser
>
> public class CommitUser implements Serializable {
>        private static final long serialVersionUID = 1L;
>       �...@id private Long id;
>        private String googleEmail;
>  ...
>        private Key[] dueByMeCommitments;
>        private Key[] dueToMeCommitments;
> }
>
> And the related CommitUserProxy
> @ProxyFor (CommitUser.class)
> public interface CommitUserProxy extends EntityProxy {
>        public int getUserLevel();
>        
> }
>
> And a new Request Interface
> @Service (CommitUser.class)
> public interface CommitUserRequest extends RequestContext {
>        InstanceRequest persistCommitUser();
> }
>
> And add a line to my CommitmentSystemRequestFactory.java for
> CommitUserRequest.
>
> Now, in my Commit2Binder, I want to create a new CommitUser - empty
> collections are fine to start with.  But the code I have, essentially
> the code that works for creating a Commitment, fails.  The code is:
>        CommitUserRequest request = requestFactory.commitUserRequest();
>        CommitUserProxy newCommitUser =
> request.create(CommitUserProxy.class);
>        newCommitUser.setGoogleNickname("Richard");
>        newCommitUser.setGoogleEmail("richardlan...@gmail.com");
>        newCommitUser.setUserLevel(1);
>        newCommitUser.setDueByMeCommitments(null);
>        newCommitUser.setDueToMeCommitments(null);
>        Request createReq =
> request.persistCommitUser().using(newCommitUser);
>
>        createReq.fire(new Receiver()     {
>               �...@override
>                public void onSuccess(Void response) {
>                        Window.alert("Created User!");
>
>                }
>               �...@override
>                public void onFailure(ServerFailure error) {
>                        Window.alert(error.getMessage());
>                }
>        });
> ;
>
> The failure occurs when the rquest is fired and the error is:
> Caused by: java.lang.ClassCastException:
> sun.reflect.generics.reflectiveObjects.GenericArrayTypeImpl cannot be
> cast to java.lang.Class
> If I remove the calls to setDueByMeCommitments, setDueToMeCommitments
> I get the same error.
>
> I start to look at other ideas, but it starts to seem that I am going
> down the wrong path, since this should be something relative.  Any
> pointers and thoughts would be greatly appreciated.
>
> Thanks!
> RB
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, 

Re: gwt using jquery effect possible?

2010-11-23 Thread bufferings
hi asianCoolz

You can use jsni like following:

  /**
   * Starts the showing animation.
   *
   * @param id
   *  The element id.
   */
  private native void showAnimation(String id)/*-{
  var options = {}
  var callback =
th...@bufferings.ktr.wjr.client.ui.wjrpopuppanel::showCallback()();
  $wnd.$("#" + id).show('slide', options, 500, callback);
  }-*/;

  /**
   * Start showing the panel.
   */
  public void show() {
if (isVisible() || isShowing) {
  return;
}
isShowing = true;
adjustPosition();
showAnimation(getElement().getId());
  }

  /**
   * The callback method of the showing jsni.
   */
  protected void showCallback() {
isShowing = false;
  }

Here is the whole code of the class.
http://code.google.com/p/ktrwjr/source/browse/trunk/ktrwjr/src/bufferings/ktr/wjr/client/ui/WjrPopupPanel.java

hope this helps :).

--
bufferings

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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.



Getting started problems

2010-11-23 Thread Lee Sailer
I am following the Quickstart and User guide to make the very first
little demo GWT app, but am having a problem that I guess is related
to my wireless router/firewall, but so far research has not led me
toward any solution.

Eclipse 3.6, GWT Eclipse Plugin (latest, as of Nov 22?), APP Engine
SDK, latest.  Downloads all seemed to go fine.

Followed instructions to make an app  
http://code.google.com/eclipse/docs/creating_new_webapp.html
seemed OK up to the step to copy and paste url into browser...

http://127.0.0.1:/GWTtest1.html?gwt.codesvr=127.0.0.1:9997

The browser twirls for a moment, and then this url appears

http://75.105.17.130/

This is the *external* IP address of my wireless router.

Any clues welcome.

other factoids...OS X, tried Safari, Firefox, and Chrome.  Pretty sure
relevant plugins are installed.  Network admin says I should be
ignoring proxy for 127.0.0.0



-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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.



Server Push with GWT

2010-11-23 Thread Noor
can someone guide me or points me to some tutorial which shows the
implementation of server push technology with gwt

Thanks!!

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



Re: Server Push with GWT

2010-11-23 Thread ciosbel
I think it's a bit outdated, but have a read:
http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=ServerPushFAQ

On 23 Nov, 22:07, Noor  wrote:
> can someone guide me or points me to some tutorial which shows the
> implementation of server push technology with gwt
>
> Thanks!!

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



Re: Server Push with GWT

2010-11-23 Thread David Chandler
I know have some folks have had success with the open source project
http://code.google.com/p/gwt-comet/

HTH,
/dmc

On Tue, Nov 23, 2010 at 4:30 PM, ciosbel  wrote:
> I think it's a bit outdated, but have a read:
> http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=ServerPushFAQ
>
> On 23 Nov, 22:07, Noor  wrote:
>> can someone guide me or points me to some tutorial which shows the
>> implementation of server push technology with gwt
>>
>> Thanks!!
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



Re: RequestFactory, Objectify, saving a new object with collections

2010-11-23 Thread Richard Berger
Thank you for the quick and clear reply which completely fixed my
problem.  On a higher level, when support for Keys is added, should I
use the Key or the Entity?  I can see that there may be some value in
just having the Key and getting the Entity when I need it - although
it seems like I will nearly always be needing the Entity.  But perhaps
I am missing some key distinction.

Thanks so much for taking the time to share your advice!
RB

On Nov 23, 12:26 pm, David Chandler  wrote:
> Hi Richard,
>
> RequestFactory doesn't yet support arrays. Use List instead. Also
> ensure that your Proxy doesn't expose the Objectify Key type, as only
> entity types and a few value types are supported until 2.1.1.
>
> /dmc
>
>
>
>
>
>
>
>
>
> On Tue, Nov 23, 2010 at 2:23 PM, Richard Berger  
> wrote:
> > Goal: Save an object an associated collection
> > How to do this with Request Factory and Objectify?
>
> > I have an object that looks like:
> > Commitment.java (in com.br.commit2.server.domain)
> > public class Commitment {
> > �...@id private Long id;
> >        private String title;
> >  // other simple fields
> >  private Integer version;
>
> >  // Methods exposed through Request factory
>
> >  // Getters, setters
> > }
>
> > Since I am trying to use RequestFactory, I also have:
> > CommitmentProxy.java (in com.rb.commit2.shared)
> > @ProxyFor (Commitment.class)
> > public interface CommitmentProxy extends EntityProxy {
> >        public String getTitle();
> >        public void setTitle(String title);
> >  // rest of interface
> > }
>
> > Also have
> > public interface CommitmentSystemRequestFactory extends RequestFactory
> > {
> >  CommitmentRequest commitmentRequest();
> >  ...
> > }
>
> > And...
> > @Service (Commitment.class)
> > public interface CommitmentRequest extends RequestContext {
> >        Request countCommitments();
> >        // Other methods, implemented in Commitment.java above)
> > }
>
> > Finally, in my Commit2Binder.java, I have code that works to create a
> > commitment when a button is clicked (this is just a test app)
> >        CommitmentRequest request = requestFactory.commitmentRequest();
> >        CommitmentProxy newCommitment =
> > request.create(CommitmentProxy.class);
> >        newCommitment.setTitle("Test Objectify title");
> >        newCommitment.setDescription("Test Objectify Description");
> >        Request createReq =
> > request.persistCommitment().using(newCommitment);
>
> >        createReq.fire(new Receiver()     {
> >               �...@override
> >                public void onSuccess(Void response) {
> >                        Window.alert("Created Commitment!");
>
> >                }
> >        });
>
> > Surprisingly enough it all works fine.  Now, I want to model a new
> > object, a user with two collections of the Commitment object above.
> > These are unowned collections.  Following the objectify-appengine/
> > wiki//IntroductionToObjectify#Relationships, I create CommitUser
>
> > public class CommitUser implements Serializable {
> >        private static final long serialVersionUID = 1L;
> >       �...@id private Long id;
> >        private String googleEmail;
> >  ...
> >        private Key[] dueByMeCommitments;
> >        private Key[] dueToMeCommitments;
> > }
>
> > And the related CommitUserProxy
> > @ProxyFor (CommitUser.class)
> > public interface CommitUserProxy extends EntityProxy {
> >        public int getUserLevel();
> >        
> > }
>
> > And a new Request Interface
> > @Service (CommitUser.class)
> > public interface CommitUserRequest extends RequestContext {
> >        InstanceRequest persistCommitUser();
> > }
>
> > And add a line to my CommitmentSystemRequestFactory.java for
> > CommitUserRequest.
>
> > Now, in my Commit2Binder, I want to create a new CommitUser - empty
> > collections are fine to start with.  But the code I have, essentially
> > the code that works for creating a Commitment, fails.  The code is:
> >        CommitUserRequest request = requestFactory.commitUserRequest();
> >        CommitUserProxy newCommitUser =
> > request.create(CommitUserProxy.class);
> >        newCommitUser.setGoogleNickname("Richard");
> >        newCommitUser.setGoogleEmail("richardlan...@gmail.com");
> >        newCommitUser.setUserLevel(1);
> >        newCommitUser.setDueByMeCommitments(null);
> >        newCommitUser.setDueToMeCommitments(null);
> >        Request createReq =
> > request.persistCommitUser().using(newCommitUser);
>
> >        createReq.fire(new Receiver()     {
> >               �...@override
> >                public void onSuccess(Void response) {
> >                        Window.alert("Created User!");
>
> >                }
> >               �...@override
> >                public void onFailure(ServerFailure error) {
> >                        Window.alert(error.getMessage());
> >                }
> >        });
> > ;
>
> > The failure occurs when the rquest is fired and the error is:
> > Caused by: java.lang.ClassCastException:
>

Re: RequestFactory, Objectify, saving a new object with collections

2010-11-23 Thread David Chandler
You're welcome, Richard, glad to help.

My understanding is that Objectify always uses Keys to express
relationships. If you want to retrieve the entity directly, you can
add a getter/setter that calls Objectify to get / put an entity by its
Key. These helper methods are likely what you would expose in the
EntityProxy so client-side code won't have any references to Key. This
works today.

/dmc

On Tue, Nov 23, 2010 at 5:23 PM, Richard Berger  wrote:
> Thank you for the quick and clear reply which completely fixed my
> problem.  On a higher level, when support for Keys is added, should I
> use the Key or the Entity?  I can see that there may be some value in
> just having the Key and getting the Entity when I need it - although
> it seems like I will nearly always be needing the Entity.  But perhaps
> I am missing some key distinction.
>
> Thanks so much for taking the time to share your advice!
> RB
>
> On Nov 23, 12:26 pm, David Chandler  wrote:
>> Hi Richard,
>>
>> RequestFactory doesn't yet support arrays. Use List instead. Also
>> ensure that your Proxy doesn't expose the Objectify Key type, as only
>> entity types and a few value types are supported until 2.1.1.
>>
>> /dmc
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Tue, Nov 23, 2010 at 2:23 PM, Richard Berger  
>> wrote:
>> > Goal: Save an object an associated collection
>> > How to do this with Request Factory and Objectify?
>>
>> > I have an object that looks like:
>> > Commitment.java (in com.br.commit2.server.domain)
>> > public class Commitment {
>> > �...@id private Long id;
>> >        private String title;
>> >  // other simple fields
>> >  private Integer version;
>>
>> >  // Methods exposed through Request factory
>>
>> >  // Getters, setters
>> > }
>>
>> > Since I am trying to use RequestFactory, I also have:
>> > CommitmentProxy.java (in com.rb.commit2.shared)
>> > @ProxyFor (Commitment.class)
>> > public interface CommitmentProxy extends EntityProxy {
>> >        public String getTitle();
>> >        public void setTitle(String title);
>> >  // rest of interface
>> > }
>>
>> > Also have
>> > public interface CommitmentSystemRequestFactory extends RequestFactory
>> > {
>> >  CommitmentRequest commitmentRequest();
>> >  ...
>> > }
>>
>> > And...
>> > @Service (Commitment.class)
>> > public interface CommitmentRequest extends RequestContext {
>> >        Request countCommitments();
>> >        // Other methods, implemented in Commitment.java above)
>> > }
>>
>> > Finally, in my Commit2Binder.java, I have code that works to create a
>> > commitment when a button is clicked (this is just a test app)
>> >        CommitmentRequest request = requestFactory.commitmentRequest();
>> >        CommitmentProxy newCommitment =
>> > request.create(CommitmentProxy.class);
>> >        newCommitment.setTitle("Test Objectify title");
>> >        newCommitment.setDescription("Test Objectify Description");
>> >        Request createReq =
>> > request.persistCommitment().using(newCommitment);
>>
>> >        createReq.fire(new Receiver()     {
>> >               �...@override
>> >                public void onSuccess(Void response) {
>> >                        Window.alert("Created Commitment!");
>>
>> >                }
>> >        });
>>
>> > Surprisingly enough it all works fine.  Now, I want to model a new
>> > object, a user with two collections of the Commitment object above.
>> > These are unowned collections.  Following the objectify-appengine/
>> > wiki//IntroductionToObjectify#Relationships, I create CommitUser
>>
>> > public class CommitUser implements Serializable {
>> >        private static final long serialVersionUID = 1L;
>> >       �...@id private Long id;
>> >        private String googleEmail;
>> >  ...
>> >        private Key[] dueByMeCommitments;
>> >        private Key[] dueToMeCommitments;
>> > }
>>
>> > And the related CommitUserProxy
>> > @ProxyFor (CommitUser.class)
>> > public interface CommitUserProxy extends EntityProxy {
>> >        public int getUserLevel();
>> >        
>> > }
>>
>> > And a new Request Interface
>> > @Service (CommitUser.class)
>> > public interface CommitUserRequest extends RequestContext {
>> >        InstanceRequest persistCommitUser();
>> > }
>>
>> > And add a line to my CommitmentSystemRequestFactory.java for
>> > CommitUserRequest.
>>
>> > Now, in my Commit2Binder, I want to create a new CommitUser - empty
>> > collections are fine to start with.  But the code I have, essentially
>> > the code that works for creating a Commitment, fails.  The code is:
>> >        CommitUserRequest request = requestFactory.commitUserRequest();
>> >        CommitUserProxy newCommitUser =
>> > request.create(CommitUserProxy.class);
>> >        newCommitUser.setGoogleNickname("Richard");
>> >        newCommitUser.setGoogleEmail("richardlan...@gmail.com");
>> >        newCommitUser.setUserLevel(1);
>> >        newCommitUser.setDueByMeCommitments(null);
>> >        newCommitUser.setDueToMeCommitments(null);
>> >        Request createR

Re: RequestFactory - how to fetch object graph

2010-11-23 Thread mp31415
It seems dot notation works (found in RequestFactory unit tests).
Something along the lines .with("lines.start").with("lines.end").

On Nov 23, 10:59 am, mp31415  wrote:
> By default RequestFactory(RF) fetches an entity proxy itself(the root)
> but does not fetch other entity proxies referenced from the root. In
> order to fetch referenced properties their names must be provided
> using with() method on the request(context). Is there a syntax to
> request proxies nested even deeper (referenced from those referenced
> entities of the first level)?
>
> For example, if there are three classes(entities): User, Line, Point:
>
> class User
> {
>   Set lines;}
>
> class Line
> {
>   Point start;
>   Point end;}
>
> class Point
> {
>   int x;
>   int y;
>
> }
>
> How can I fetch User proxy with all its lines and points?
>
> Please don't tell me about denormalizing, workarounds like referencing
> everything directly from User or about upcoming in GWT 2.1.1
> value(embedded) objects. The question is about entity graph and the
> classes above are just an illustration.
>
> Thanks.

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



Re: Server Push with GWT

2010-11-23 Thread Ray Tayek

At 01:07 PM 11/23/2010, you wrote:

can someone guide me or points me to some tutorial which shows the
implementation of server push technology with gwt


i did this part: 
http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ#Server_Push_in_GWT 
and it seems to work ok.


thanks

---
co-chair http://ocjug.org/

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



Re: Server Push with GWT

2010-11-23 Thread Noor
Thanks for your answers,
I wanted to know one more thing. When deploying a GWT application on
the server, lets say an application in which there are client  files
Greeting.java(entrypoint), service.java,serviceAsync.java and server
file serviceImpl.java(), only the client files will converted to
javascript. After deploying, I take the war file and place it on the
server, but where to place the server file that is serviceImpl.java???

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



Re: a quick question about using GWT and jquery

2010-11-23 Thread Xinyin
You'd better have a look at GQuery.
http://code.google.com/p/gwtquery/

On Nov 23, 9:25 am, stewie  wrote:
> hello guys,
>
> i'm a long time c++ programmer having very little experience with web
> development. my limited web developing experience can date back to my
> college time when i wrote some forum sites with php. i didn't quite
> like working with javascript, as i didn't know any javascript debugger
> that allows me to set break points and watch values at anytime. but
> now, i'm about to work on a web project. i want to learn the new web
> kick-ass techs and abandon php and the old way i wrote javascript. so
> i'm looking at the scala and the lift framework and also GWT. I like
> the idea of compiling java to javascript. the only issue i'm
> concerning now is customizing my web application. customizing isn't
> always as simple as replacing css style sheet. sometimes i need to use
> some javascript effects. i found good jquery libraries that i should
> use, but i don't if know it's possible to use them with the GWT
> widgets. i know that since GWT compiles everything to javascript,
> modifying the code at a html level should be possible. but i'm not
> sure if this is the right way to do this and if the javascript
> compiled by GWT is readable. i also couldn't find any tutorial and
> example on using jquery libraries with GWT.
>
> thanks.

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



System MAC Address

2010-11-23 Thread Anoop John
Is there any way to get the client system MAC address in gwt?

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



Re: System MAC Address

2010-11-23 Thread Xinyin
 nope. MAC is physical, JavaScript would not be able to access this.

On Nov 24, 11:08 am, Anoop John  wrote:
> Is there any way to get the client system MAC address in gwt?

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



Re: System MAC Address

2010-11-23 Thread Gaurav Vaish
No. You can only get the remote-IP address.


--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.com


On Nov 24, 8:08 am, Anoop John  wrote:
> Is there any way to get the client system MAC address in gwt?

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



Re: System MAC Address

2010-11-23 Thread Subhrajyoti Moitra
>From GWT its not possible. But proxying it through the server it can be
possible

- send the remote ip to your server from GWT client.
- execute  "ping " command on the server.
- execute "arp -a " on the server to see the address-mac table. Parse the
contents of the output for the remote ip/mac u are looking for.

ARP=> Address resolution protocol. This keeps a track of IP and its mac
address on its address table.

My 2 cents!!

Thanks,
Subhro.

On Wed, Nov 24, 2010 at 8:50 AM, Xinyin  wrote:

>  nope. MAC is physical, JavaScript would not be able to access this.
>
> On Nov 24, 11:08 am, Anoop John  wrote:
> > Is there any way to get the client system MAC address in gwt?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: System MAC Address

2010-11-23 Thread Subhrajyoti Moitra
NOTE: only works on single subnet network.

For other subnets look into the DHCP server table. if possible. But this is
a long shot, without admin access, this would be impossible to do AFAIK.

Thanks,
Subhro.

On Wed, Nov 24, 2010 at 8:59 AM, Subhrajyoti Moitra
wrote:

> From GWT its not possible. But proxying it through the server it can be
> possible
>
> - send the remote ip to your server from GWT client.
> - execute  "ping " command on the server.
> - execute "arp -a " on the server to see the address-mac table. Parse the
> contents of the output for the remote ip/mac u are looking for.
>
> ARP=> Address resolution protocol. This keeps a track of IP and its mac
> address on its address table.
>
> My 2 cents!!
>
> Thanks,
> Subhro.
>
> On Wed, Nov 24, 2010 at 8:50 AM, Xinyin  wrote:
>
>>  nope. MAC is physical, JavaScript would not be able to access this.
>>
>> On Nov 24, 11:08 am, Anoop John  wrote:
>> > Is there any way to get the client system MAC address in gwt?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>

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



Re: Getting started problems

2010-11-23 Thread Lee Sailer
Well, I started fresh on another Mac.  It is working fine there.  This
is not feeling so urgent any more.  Still be interesting to figure out
what I did wrong before.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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.



Giving focus to a node in a CellTree

2010-11-23 Thread David Pinn
The CellTree widget has a setFocus() method..cool; but I can't see how
I can give keyboard focus to a specific node within the tree. Can
someone help me with that?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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.



Tutorial on ProxyPlace

2010-11-23 Thread -sowdri-
Dear All,

I'm new to GWT and I've since learned the GWT 2.1 MVP framework, which
is quite straight forward.

Source: 
http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html

>> In a future article, we'll look more in depth at the new model features 
>> (RequestFactory, EntityProxy, and data binding). You can use RequestFactory 
>> independently of Activities and Places, or you can pull them together using 
>> ProxyPlace and related classes.

However, I would like to learn more about ProxyPlace, specified in the
above line. I could not find tutorial on that!

Any help is appreciated.

Thanks,
sowdri

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



How does UIBinder attributes map to methods / properties of the Java object ?

2010-11-23 Thread John Gentilin
I am trying to determine what attributes are available for different
GWT widgets and it is unclear to me how the attribute mapping exists
from UIBinder to the actual Java implementation. Also how are
constructors mapped.
i.e. How would you specify a  to be sized to 5 x 5 from the
UIBinder specification.. Right now I resize my table after calling
initWidget() in my view constructor...

-John Gentilin

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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.