Server-side anontation imports causing compile errors

2013-11-15 Thread Brian Henry
I'm using Cloud Endpoints on App Engine with GWT and want to use a server 
side annotation on a class in my Shared package. I think the GWT compiler 
wants me to inherit a module, but obviously there's no source etc. It's for:

import com.google.api.server.spi.config.AnnotationBoolean;
import com.google.api.server.spi.config.ApiResourceProperty;

To use the annotation:
@ApiResourceProperty(ignored = AnnotationBoolean.TRUE)

The compiler is throwing up:
[ERROR] Line 6: The import com.google.api cannot be resolved
[ERROR] Line 7: The import com.google.api cannot be resolved
[ERROR] Line 27: ApiResourceProperty cannot be resolved to a type
[ERROR] Line 27: The attribute ignored is undefined for the annotation type 
ApiResourceProperty
[ERROR] Line 27: AnnotationBoolean cannot be resolved

I tried exclude name=com.google.api.* / in my .gwt.xml but it didn't 
help. I'm hoping there'll be a way to just tell the compiler to ignore 
this. I'm using Objectify annotations in the same class without any problem 
which I think is down to the source being included.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


In GWT, ListHandlerListString columnSortHandler does not sort properly

2013-04-22 Thread Henry
I got these code:

ListHandlerListString columnSortHandler = new ListHandlerListString(
list);
columnSortHandler.setComparator(nameColumn,
new ComparatorListString() {
  public int compare(ListString o1, ListString o2) {
if (o1 == o2) {
  return 0;
}

// Compare the name columns.
if (o1 != null) {
  return (o2 != null) ? o1.get(0).compareTo(o2.get(0)) 
: 1;
}
return -1;
  }
});

table.addColumnSortHandler(columnSortHandler);

When sorting column contains iPhone 1, iPhone 2, iPhone 3... then it sorts 
correctly ie, iPhone 1, iPhone 2, iPhone 3 for ascending  iPhone 3, iPhone 2, 
iPhone 1 for decending

But when sorting column contains:


1.92 MP 
3.15 MP AF 0.31 MP 
3.2 MP 
5 MP AF and flash 
1.3 MP 
1.3 MP 
2 MP (rear); 0.3 MP (front) 
1.92 MP AF with flash (rear)

it follows no correct order, it didn't even put the 2 1.3 MP cell next to 
each other. The correct order for the above list should be: 
1.3 MP 
1.3 MP 
1.92 MP 
1.92 MP AF with flash (rear) 
2 MP (rear); 0.3 MP (front) 
3.15 MP AF 0.31 MP 
3.2 MP 
5 MP AF and flash

Is there anything wrong with the code above?

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




In GWT, ListHandlerListString columnSortHandler does not sort properly

2013-04-22 Thread Henry
I got these code:
////
 ListHandlerListString columnSortHandler = new 
ListHandlerListString(
list);
columnSortHandler.setComparator(nameColumn,
new ComparatorListString() {
  public int compare(ListString o1, ListString o2) {
if (o1 == o2) {
  return 0;
}

// Compare the name columns.
if (o1 != null) {
  return (o2 != null) ? 
o1.get(0).compareTo(o2.get(0)) : 1;
}
return -1;
  }
});

table.addColumnSortHandler(columnSortHandler);

////

When sorting column contains iPhone 1, iPhone 2, iPhone 3... then it sorts 
correctly ie, iPhone 1, iPhone 2, iPhone 3 for ascending  iPhone 3, iPhone 
2, iPhone 1 for decending

But when sorting column contains:

1.92 MP 
3.15 MP AF 0.31 MP 
3.2 MP 
5 MP AF and flash 
1.3 MP 
1.3 MP 
2 MP (rear); 0.3 MP (front) 
1.92 MP AF with flash (rear)

it follows no correct order, it didn't even put the 2 1.3 MP cell next to 
each other. The correct order for the above list should be: 
1.3 MP 
1.3 MP 
1.92 MP 
1.92 MP AF with flash (rear) 
2 MP (rear); 0.3 MP (front) 
3.15 MP AF 0.31 MP 
3.2 MP 
5 MP AF and flash

Is there anything wrong with the code above?

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




Facebook + hosted.html

2013-01-07 Thread Brian Henry
A Facebook app I've been working on has stopped working in hosted mode. 
Some editing of hosted.html was always necessary to get it running inside 
the Facebook canvas, as 
per: http://code.google.com/p/google-web-toolkit/issues/detail?id=4468

I've updated Eclipse (4.2.1), GWT (201212122042), the Eclipse plugin, 
Firefox (17.0.1) and the Firefox plugin (1.0.11394).

The page is served, nocache is loaded, hosted.html is loaded, two .css 
files are loaded and then there's a GET 
to http://gwt.google.com/missing-plugin

The application works fine if loaded directly. From suggestions in earlier 
threads, I've tried using 127.0.0.1, localhost and a fake domain set in my 
hosts. It looks like Firefox isn't letting the Facebook canvas iframe 
access the plugin. I disabled all my other plugins but that didn't help.

Any ideas for the sudden change/how to fix it?

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



Deploy GWT App to Tomcat - Validation Errors

2012-02-20 Thread Henry Crocker
I have a very small sample GWT application that I created as a proof
of concept for my company.  The goal was to use existing DAOs and
Beans along with the RequestFactory to access and display data.  It
appears I am very close to getting this to work.  I see the following
in my tomcat log:

SEVERE: Unexptected error java.lan.RuntimeException: The
RequestFactory ValidationTool must be run for the
com.ca.queueanagertoo.shared.QueueManagerToolRequestFactory
RequestFactory type at
com.google.web.bindery.requestfactory.vm.impl.Deobfuscator#Builder.load(Deobfuscator.java:
59)..

I receive the following during compile from eclipse:

   Validating newly compiled units
  Errors in 'file:/C:/home/workspaces/harvest-indigo/
queueManagerTool/.apt_generated/com/ca/queuemanagertool/shared/
QueueManagerToolRequestFactoryDeobfuscatorBuilder.java'
 Line 7: No source code is available for type
com.google.web.bindery.requestfactory.vm.impl.Deobfuscator.Builder;
did you forget to inherit a required module?
 Line 9: No source code is available for type
com.google.web.bindery.requestfactory.vm.impl.OperationKey; did you
forget to inherit a required module?
 Line 10: No source code is available for type
com.google.web.bindery.requestfactory.vm.impl.OperationData.Builder;
did you forget to inherit a required module?
   Removing invalidated units
   Finding entry point classes

I have seen comments that the eclipse error does not matter; however,
the tomcat log seems to disagree.

I have included the hibernate-validator-4.1.0.Final.jar in the WEB-INF/
lib directory.

I have been working on this for two days.  I need some assitance to
move forward.

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



Re: Serialization error

2011-06-12 Thread Henry
The solution was to comment in Empleado, this

//@OneToMany(mappedBy = empleado)
//private ListPedido pedidoList;


And in the rest

//public ListPedido getPedidoList() {
//return pedidoList;
//}

//public void setPedidoList(ListPedido pedidoList) {
//this.pedidoList = pedidoList;
//}

But why do I had to do this? Whats wrong with List? Why List
(org.eclipse.persistence.indirection.IndirectList) was not included in
the set of types which can be serialized by this SerializationPolicy

Greetings

On 12 jun, 14:25, Henry ubuntu henryubu...@gmail.com wrote:
 I have a project working with GWT 2.1.1, EclipseLink JPA 2.0 and DB Derby,

 Restaurante2.rarhttps://docs.google.com/leaf?id=0B3NEfBIdzv4XNzJjNWIxMjYtMmE4Yy00YThh...

 the problem is that when I push the button Buscar empleado and the error
 is the following

 12/06/2011 02:20:32 PM org.apache.catalina.core.ApplicationContext log
 GRAVE: Exception while dispatching incoming RPC call
 com.google.gwt.user.client.rpc.SerializationException: Type
 'org.eclipse.persistence.indirection.IndirectList' was not included in the
 set of types which can be serialized by this SerializationPolicy or its
 Class object could not be loaded. For security purposes, this type will not
 be serialized.: instance = {IndirectList: not instantiated}
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:614)
         at
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:534)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:704)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:734)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:616)
         at
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:534)
         at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:609)
         at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:467)
         at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:564)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
         at
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at
 org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
         at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
         at
 org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
         at
 org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
         at
 org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
         at java.lang.Thread.run(Thread.java:662)

 Vista.java is the main EntryPoint.

 The Entities are Alimento, AlimentoMenu, AlimentoMenuPK, Cliente, Empleado

the problem of hosting gwt files in different servers

2011-06-10 Thread Henry
Hi

I got all gwt files for Hello application.

The index.html hosted in host1.com.
All other gwt files hosted in host2.com/Hello

The index.html has this script type=text/javascript
language=javascript src=http://host2.com/Hello/
com.google.gwt.sample.hello.Hello.nocache.js/script

But Nothing happened when I opened http://host1.com/index.html, it
just showed a blank page.

Could you tell me how to solve that problem?

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



Re: Add Google Maps API on GWT-ext

2011-05-15 Thread Henry
I have just create the example of the web page with a new Web
Application Project using GWT 2.3, the gwt-maps-1.1.1 release
candidate of Eric Z. Ayers and the GWT designer 2.3.1 more updated
from Eclipse and the example works fine.

I discover a way to put the web applications in android just putting
some files of the project, I'll write the results, later in my web
page www.upiicsalibre.org

Henry

On 13 mayo, 07:52, Bill bjr...@gmail.com wrote:
 Henry,

 I'm not exactly sure how far along you are based on your question.
 Have you already been through the example 
 athttp://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted?  I
 found that I had to use GWT SDK 2.1.1 in order to work with the GWTmapsAPI.  
 The latestmapsAPI didn't seem to work for me with GWT
 2.2.0 and I haven't tried GWT 2.3 yet.  I also found that I had to use
 gxt-2.1.1 (instead of gxt-2.2.3) to work with GWT 2.1.1.

 Long story short, I had to revert to some older versions of the GWT
 SDK and gxt in order to work with the latest GWTmapsAPI.  Perhaps
 someone else reading this can confirm or deny that this was necessary.

 Hope this helps.

 Bill

 On May 13, 2:17 am, Henry henryubu...@gmail.com wrote:

  Hi:

  I want to create a project using theGoogleMapsAPI with GWT-ext on
  Eclipse. I'm a newbie using GWT-ext, does anyone knows about a
  tutotial o have a tutorial to add degooglemapsAPI?

  I put a pic of the component I want to activate in 
  GWT-exthttp://www.flickr.com/photos/57139144@N02/5715458100/

  Any help will be appreciated.

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



Add Google Maps API on GWT-ext

2011-05-13 Thread Henry
Hi:

I want to create a project using the Google Maps API with GWT-ext on
Eclipse. I'm a newbie using GWT-ext, does anyone knows about a
tutotial o have a tutorial to add de google maps API?

I put a pic of the component I want to activate in GWT-ext
http://www.flickr.com/photos/57139144@N02/5715458100/

Any help will be appreciated.

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



GWT + Android

2011-05-08 Thread Henry
Hi:

Hello from Mexico. I want to create a project using GWT + Android.
¿It's possible to mix them? ¿Any suggestion to start it?

Greetings.

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



Re: Celltable w/ selectionModel and ActionCells

2011-03-03 Thread Henry H.
this sounds great, John!
i'll give it a try.
Thanks!

On Mar 2, 8:00 am, John LaBanca jlaba...@google.com wrote:
 r9788 adds a new BlacklistEventTranslator and WhitelistEventTranslator for
 use in DefaultSelectionEventManager.  Using these, you can disable/enable
 selection for specific 
 columns.http://code.google.com/p/google-web-toolkit/source/detail?r=9788

 DefaultSelectionEventManager manager =
 DefaultSelectionEventManager.createBlacklistManager(0,
 3); // Ignore clicks on columns 0 and 3
 SelectionModel model = new SingleSelectionModel();
 cellTable.setSelectionModel(model, manager);

 Hope this helps with this issue.  You can wait for GWT 2.3, or just copy the
 BlacklistEventTranslator code into your app and call
 DefaultSelectionEventManager.createCustomManager(myBlacklistEventTranslator).

 Thanks,
 John LaBanca
 jlaba...@google.com

 On Tue, Feb 22, 2011 at 12:09 PM, John LaBanca jlaba...@google.com wrote:
  You can try overriding ActionCell#handlesSelection() to return true to
  disable the default selection.  We might need to do so for all interactive
  cells and change the JavaDoc of Cell#handlesSelection() to clarify that it
  can be used to simply disable default selection.  But in general, this is
  what handlesSelection() was designed to do.

  Thanks,
  John LaBanca
  jlaba...@google.com

  On Tue, Feb 22, 2011 at 8:44 AM, Thomas Visser 
  thomas.vis...@gmail.comwrote:

  ActionCell already returns false for handlesSelection(). If a cell
  declares to handle the selection, the default way of (de)selecting, by
  clicking in the row, does not work anymore. Then it is the value-
  updater's task to do so. I recently wrote something about it in a blog
  post. See for more information:
 http://thoughtsofthree.com/2011/02/creating-a-gwt-radiobuttoncell/
  (paragraph Depending on and handling the selection)

  On Feb 22, 5:30 am, Patrick Tucker tucker...@gmail.com wrote:
   I haven't played with this a whole bunch but have you looked at
   handlesSelection?  I was under the impression that by setting this to
   false you indicate that a particular cell type  is not allowed to
   determine selection state?

   Like if you have a checkboxcell it can be the only cell that
   determines whether or not the row is selected.

   On Feb 11, 2:09 pm, Henry H. djhenr...@gmail.com wrote:

yeah, i had the feeling i have to ditch the selectionModel.
thanks for your help...

On Feb 11, 6:28 am, Thomas Visser thomas.vis...@gmail.com wrote:

 This is not possible. In your case, the click event is always also
 given to the SelectionModel.

 See line 971 in CellTable (http://www.google.com/codesearch/p?
 hl=en#A1edwVHBClQ/user/src/com/google/gwt/user/cellview/client/
 CellTable.javaq=CellTable%20package:http://google-web-toolkit
 %5C.googlecode%5C.comsa=Ncd=1ct=rc):

 if (selectionModel != null  click.equals(eventType)  !
 handlesSelection) {
         selectionModel.setSelected(value, true);

 }

 As you can see, if you could make the handlesSelection boolean true,
 the selectionModel will not be updated. This boolean is true if one
 (or more) cell(s) declare(s) to handle the selection. ActionCell
  does
 not do that. What you can do is create your own cell, make it handle
 the selection, and use it for all the columns that you want to be
 clickable.

 On Feb 11, 1:42 am, Henry H. djhenr...@gmail.com wrote:

  hi,
  i have a celltable with a selectionModel but also a column of
  actioncells.
  the selectionModel and actioncells both handle click events, but
  when
  i click the action cell, it also triggers the selectionmodel click
  handler.
  is it possible to prevent this? Or do i have to nix the
  selectionModel
  and go with clickable cells on the row?

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

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



gwt-maven-plugin: missing module HTML CSS with version 2.1.0+ of the plugin

2011-02-14 Thread Henry
Dear all,

I sucessfully used the gwt-maven-plugin version 1.2 with GWT version
2.0.4.

I now wanted to upgrade to the newest GWT version 2.1. Therefore I
also needed to upgrade the gwt-maven-plugin version to at least 2.1.0.

Unfortunately, after I upgrading to the new version of the plugin, the
internal Jetty can't find the module HTML (with the reference to the
GWT js file) as well as the coresponding CSS and web.xml file anymore.
It seems that a new folder was created in target/${artifactId}-$
{version}, which contains the compiled GWT Javascript and all static
resources besides the entry point HTML, CSS and web.xml. There is also
a war folder that is always created, which contains all necessary
resources, including the HTML  CSS file. It seems that the 1.2
version of the plugin used this war folder, whereas the newer versions
use the folder under target, which doesn't contain vital parts of the
compiler output. Also before there wasn't any compiler output under
the target folder.

This happens with version 2.1.0-1  2.1.1-SNAPSHOT version of the
plugin as well as with GWT version 2.1.0 and 2.1.1

I've already searched the web and found 2 threads with a similar
problem, but no real solution:
http://maven.40175.n5.nabble.com/gwt-maven-plugin-how-to-create-amp-c...
http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg52...

Any help is much appreciated!

Best regards,
Henry

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



Re: Celltable w/ selectionModel and ActionCells

2011-02-11 Thread Henry H.
yeah, i had the feeling i have to ditch the selectionModel.
thanks for your help...

On Feb 11, 6:28 am, Thomas Visser thomas.vis...@gmail.com wrote:
 This is not possible. In your case, the click event is always also
 given to the SelectionModel.

 See line 971 in CellTable (http://www.google.com/codesearch/p?
 hl=en#A1edwVHBClQ/user/src/com/google/gwt/user/cellview/client/
 CellTable.javaq=CellTable%20package:http://google-web-toolkit
 %5C.googlecode%5C.comsa=Ncd=1ct=rc):

 if (selectionModel != null  click.equals(eventType)  !
 handlesSelection) {
         selectionModel.setSelected(value, true);

 }

 As you can see, if you could make the handlesSelection boolean true,
 the selectionModel will not be updated. This boolean is true if one
 (or more) cell(s) declare(s) to handle the selection. ActionCell does
 not do that. What you can do is create your own cell, make it handle
 the selection, and use it for all the columns that you want to be
 clickable.

 On Feb 11, 1:42 am, Henry H. djhenr...@gmail.com wrote:

  hi,
  i have a celltable with a selectionModel but also a column of
  actioncells.
  the selectionModel and actioncells both handle click events, but when
  i click the action cell, it also triggers the selectionmodel click
  handler.
  is it possible to prevent this? Or do i have to nix the selectionModel
  and go with clickable cells on the row?

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



Celltable w/ selectionModel and ActionCells

2011-02-10 Thread Henry H.
hi,
i have a celltable with a selectionModel but also a column of
actioncells.
the selectionModel and actioncells both handle click events, but when
i click the action cell, it also triggers the selectionmodel click
handler.
is it possible to prevent this? Or do i have to nix the selectionModel
and go with clickable cells on the row?

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



Re: GWT Compilation Failed

2011-02-07 Thread Henry
I know this post is a bit old, but I recently came across the same 
compilation problem
and the problem/soln is 

I had an annotated class like:

@SuppressWarnings({})
public class LeftPanel 

my fix was to take out the @SuppressWarnings({})

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



Re: Upgrade to GWT 2.1.1

2011-01-02 Thread Henry
Me too ... seems like gwt2.1.1 eclipse pluging didn't release some
java code in the gwt-user.jar file

On Dec 31 2010, 8:28 am, Aldo Neto tumo...@gmail.com wrote:
 Hi All,

 I'm using STS 2.5.1 (i.e. Eclipse 3.6) and tried to upgrade to GWT 2.1.1,
 but I'm not able to do so. I updated the plugin and the SDK, updated the
 project reference to use them and compile the project. It all worked fine,
 but when I tried to run the project I got the errors below.

 Does anybody has any idea of what I'm doing wrong here?

 Thanks

 [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/client/impl/AbstractClientRequestFactory.java'
 [ERROR] [applicationScaffold] - Line 29: The constructor
 DefaultRequestTransport() is undefined
 [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/shared/DefaultProxyStore.java'
 [ERROR] [applicationScaffold] - Line 37: No source code is available for
 type com.google.gwt.autobean.shared.AutoBeanT; did you forget to inherit a
 required module?
 [ERROR] [applicationScaffold] - Line 38: No source code is available for
 type com.google.gwt.autobean.shared.Splittable; did you forget to inherit a
 required module?
 [ERROR] [applicationScaffold] - Line 60: No source code is available for
 type com.google.gwt.autobean.shared.AutoBeanCodex; did you forget to inherit
 a required module?
 [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/shared/ProxyStore.java'
 [ERROR] [applicationScaffold] - Line 36: No source code is available for
 type com.google.gwt.autobean.shared.Splittable; did you forget to inherit a
 required module?
 [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/shared/impl/AbstractRequest.java'
 [ERROR] [applicationScaffold] - Line 39: Bound mismatch: The type BaseProxy
 is not a valid substitute for the bounded parameter P extends EntityProxy
 of the type InstanceRequestP,T
 [ERROR] [applicationScaffold] - Line 113: No source code is available for
 type com.google.gwt.autobean.shared.Splittable; did you forget to inherit a
 required module?
 [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/shared/impl/AbstractRequestContext.java'
 [ERROR] [applicationScaffold] - Line 19: The import
 com.google.gwt.requestfactory.shared.impl.Constants.REQUEST_CONTEXT cannot
 be resolved
 [ERROR] [applicationScaffold] - Line 63: The type AbstractRequestContext
 must implement the inherited abstract method RequestContext.create(ClassT)
 [ERROR] [applicationScaffold] - Line 63: The type AbstractRequestContext
 must implement the inherited abstract method RequestContext.edit(T)
 [ERROR] [applicationScaffold] - Line 374: Constants.VERSION_PROPERTY_B64
 cannot be resolved
 [ERROR] [applicationScaffold] - Line 411: Constants.VERSION_PROPERTY_B64
 cannot be resolved
 [ERROR] [applicationScaffold] - Line 511: REQUEST_CONTEXT cannot be resolved
 [ERROR] [applicationScaffold] - Line 606: The type new
 RequestTransport.TransportReceiver(){} must implement the inherited abstract
 method RequestTransport.TransportReceiver.onTransportFailure(String)
 [ERROR] [applicationScaffold] - Line 616: The constructor
 ServerFailure(String, String, String, boolean) is undefined
 [ERROR] [applicationScaffold] - Line 654: The constructor
 ServerFailure(String, String, String, boolean) is undefined
 [ERROR] [applicationScaffold] - Line 698: REQUEST_CONTEXT cannot be resolved
 [ERROR] [applicationScaffold] - Line 845: REQUEST_CONTEXT cannot be resolved
 [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/shared/impl/AbstractRequestFactory.java'
 [ERROR] [applicationScaffold] - Line 18: The import
 com.google.gwt.requestfactory.shared.impl.Constants.STABLE_ID cannot be
 resolved
 [ERROR] [applicationScaffold] - Line 65: STABLE_ID cannot be resolved
 [ERROR] [applicationScaffold] - Line 95: The method getTypeToken(Class?
 extends BaseProxy) in the type IdFactory is not applicable for the
 arguments (Classcapture#1-of ? extends EntityProxy)
 [ERROR] [applicationScaffold] - Line 105: Bound mismatch: The generic method
 getTypeFromToken(String) of type IdFactory is not applicable for the
 arguments 

Re: EditTextCell and RPC worked in 2.1m1 but not in 2.1

2010-11-08 Thread Henry H.
thanks Thomas!
FieldUpdater did the trick.

On Nov 8, 2:27 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 8 nov, 07:14, Henry H. djhenr...@gmail.com wrote:

  hi,
  when i was using 2.1.m1 i was able to extend an EditTextCell to make
  an rpc call to update the database after the cell is updated. i just
  inserted the rpc call right before commit() method in the cell.
  when i made the switch to 2.1, this no longer works. the cell just
  remains in edit mode and the onFailure() of the rpc doesn't show. the
  viewdata is updated though.
  i haven't messed with the new mvp framework yet , but is there another
  way to make rpc calls after a cell has been edited?

 I'm not sure but I think you should (as in it's intended that you)
 use a FieldUpdater (in CellTable) or ValueUpdated (in CellList) to
 handle the commit of the value and do your RPC.

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



EditTextCell and RPC worked in 2.1m1 but not in 2.1

2010-11-07 Thread Henry H.
hi,
when i was using 2.1.m1 i was able to extend an EditTextCell to make
an rpc call to update the database after the cell is updated. i just
inserted the rpc call right before commit() method in the cell.
when i made the switch to 2.1, this no longer works. the cell just
remains in edit mode and the onFailure() of the rpc doesn't show. the
viewdata is updated though.
i haven't messed with the new mvp framework yet , but is there another
way to make rpc calls after a cell has been edited?

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.



CellTree question

2010-08-05 Thread Henry HO
how do your set the child cells of the celltree to not have the little
triangle next to the cell?
i noticed the celltree in the bikeshed Expense Report the parent cells
have the little triangles but the children do not.
i tried turning off selection in the child nodes but they still have
the little triangle in each cell...

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



can't seem to get spring-security and gwt going...

2010-07-16 Thread Henry HO
hi,
i've spent the past couple of days trying to add spring security to my
unsecured gwt app without success.
after researching spring docs and forums; i added the spring-
security.jar to the project.
and the following to my web.xml :
context-param
 param-nameAppsecurityContext/param-name
 param-value/WEB-INF/AppContext-security.xml/param-value
/context-param

filter
  filter-namespringSecurityFilterChain/filter-name
  filter-classorg.springframework.web.filter.DelegatingFilterProxy/
filter-class
/filter

filter-mapping
  filter-namespringSecurityFilterChain/filter-name
  url-pattern/*/url-pattern
/filter-mapping

i added this to AppContext-security.xml:

beans:beans xmlns=http://www.springframework.org/schema/security;
xmlns:beans=http://www.springframework.org/schema/beans;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans$

http auto-config=true
intercept-url pattern=/login.html
access=IS_AUTHENTICATED_ANONYMOUSLY/
intercept-url pattern=/** access=ROLE_USER /
form-login login-page=/login.html/
  /http


i read that one way to add spring-security was to filter everything to
a login.html but i could be way off.
does anyone have any advice?

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.



clipped image mode--gif only?

2010-04-15 Thread Henry HO
i was testing the image widget with the sample code in the javadoc,
but used a .png instead of gif.
i wasn't able to show the clipped image (it wouldn't load as clipped,
loaded as unclipped).
but when i tested with .gif , it clipped fine.
i'm not an expert on the different image types, but is this a issue
with the way image file types work?

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.



form submits twice when using mvp presenter

2010-04-07 Thread Henry HO
hi,
when i place the forms submit event handlers in the view, the form
submits fine.
but when i register the form submit event handler with the presenter
(removed from view)
the form submits twice when clicked.

has anyone experienced this?

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.



How to read text file that was zipped in GWT?

2010-04-02 Thread Henry
I know how to read text file in GWT, that's easy.

However if that file got zipped (.zip or .rar), then how can i read
that text file?

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



Re: An alternative to gwt-dispatch ... gwtserviceresolver

2010-02-26 Thread Henry
Fair enough ... another alternative.

The more the better - tis the way of the open source world.
I'm still rooting for my gwtserviceresolver tho ;)

Cheers,
Henry

On Feb 26, 2:33 am, Jamies super...@gmail.com wrote:
 The alternative to gwt-dispatch is gwt-remote-action ...

 On Feb 19, 1:53 am, Mathias Bogaert mathias.boga...@gmail.com wrote:

  GWT Dispatch implements the command pattern. The combination with GWT
  Presenter kicks ass (same author). Yours is a totally different
  beast :-).

  On Feb 17, 1:36 am, Henry q8e...@gmail.com wrote:

   Hello All,

   I wrote an alternative to
   gwt-dispatchhttp://code.google.com/p/gwt-dispatch/

   It uses vanilla reflection and requires less configuration than gwt-
   dispatch,
   but does depend heavily on naming convention of your RPC service and
   service impl

   And here's the link to gwt service 
   resolver:http://code.google.com/p/gwtserviceresolver/

   Let me know what you think

   Cheers,
   Henry



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



extract HTML from view

2010-02-23 Thread Henry HO
hi,
i have a view that is made from a composite-flow panel - 2 grids.
it's basically a shopping cart receipt view.
is it possible to extract all the HTML from the view?
i would like to take the HTML and reproduce it in an email...

thanks,
-henry

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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: passing all gwt modules' rpc requests through a single servlet.

2010-02-20 Thread Henry
See:

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

Cheers,
Henry

On Feb 20, 9:44 pm, Prashant Gupta nextprash...@gmail.com wrote:
 Hi,

 My app is using multiple gwt modules and I want to do some set up so that no
 change to web.xml is required whenever I add or remove a gwt module.

 I replaced

 @RemoteServiceRelativePath(greet)

 by

 @RemoteServiceRelativePath(../greet/fully qualified servlet name)

 so that all rpc requests from all the gwt modules pass through a single
 servlet mapped to ../greet/* , say RPCService. Now I want to forward the
 request from RPCService to corresponding ServiceImpl servlet based on fully
 qualified servlet name. How do I do that ? I tried creating new instance to
 ServiceImpl class and calling doPost() method, it threw
 NullPointerException.

 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+EJB+JPA Integration without DTO's

2010-02-18 Thread Henry
Hmmm ...
A decent soln 3.5 stars out of 5
I noticed that FetchType.EAGER
this can be a problem.  Is it not possible to create go into an
infinite loop (circular references)?
Also, how do you take care of BigDecimal?

I'm still not convinced of the soln above and think I'll stay with
DTO's for now.

Cheers,
Henry

On Feb 16, 6:13 pm, Morswin mors...@gmail.com wrote:
 Maybe someone will find that useful:http://code.google.com/p/gwt-ejb-sample/
 Cheers,
 Morswin

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



An alternative to gwt-dispatch ... gwtserviceresolver

2010-02-16 Thread Henry
Hello All,

I wrote an alternative to
gwt-dispatch
http://code.google.com/p/gwt-dispatch/

It uses vanilla reflection and requires less configuration than gwt-
dispatch,
but does depend heavily on naming convention of your RPC service and
service impl

And here's the link to gwt service resolver:
http://code.google.com/p/gwtserviceresolver/


Let me know what you think

Cheers,
Henry

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

2010-02-01 Thread Henry
You're probably getting a classpath problem.
Can you confirm its a classpath exception?

What's the error on the Development Mode window printing?

In the
Run-Debug Configurations...-g(oogle) Web Application
window there is a Classpath Tab
Make **SURE** that under the
User Entries Tree you have
src
This can be added via Advanced...-Add Folders
Yes, you add src to your classpath - this is strictly for GWT

Cheers,
Henry


On Jan 31, 6:29 pm, finneycanhelp lovefin...@gmail.com wrote:
 Thank you. I am farther along now.  I learned much from -help as you
 suggested.

 I also think I understand that one runs two servers; 1 is run for GWT
 (such as using a debug configuration) and the other server for the
 struts 2 web server (via eclipse project right click - Run As - Run on
 Server).

 I was pretty excited to see eclipse 
 offer:http://localhost:/s2?gwt.codesvr=10.0.0.2:9997
 as a url to use when running in Debug mode for GWT. That's progress.

 The web browser redirects 
 fromhttp://localhost:/s2?gwt.codesvr=10.0.0.2:9997
 tohttp://localhost:/s2/That's different than the hello-world GWT
 app URL which has .html in it; See Sgwt.html 
 --http://localhost:53650/Sgwt.html?gwt.codesvr=10.0.0.2:9997

 I wanted the host page to come up with the typical hello world GWT app
 of Please enter your name:  that a new GWT project via eclipse
 plugin gives you. However I get a blank web browser page.  I am not
 sure why the browser redirects to the module root like that.

 Help?  :)

 On Jan 31, 12:30 am, Henry q8e...@gmail.com wrote:

  Hi Finney,

  You can specify args to DevMode

  Run-Debug Configurations...-g(oogle) Web Application-New
  in the Arguments tab, you can add the name of your module(s)
  If in doubt, add the
  -help
  arguments in the Arguments tab

  Cheers,
  Henry
  p.s. checkouthttp://code.google.com/p/struts2gwtplugin
  and let me know what you think of that plugin

  On Jan 30, 7:34 pm, finneycanhelp lovefin...@gmail.com wrote: Quick 
  follow up / add on:

    I see the post about Maven and GWT 
   athttp://groups.google.com/group/google-web-toolkit/browse_thread/threa...

   However, my real concern is with a struts2 project (s2project) that
   has:
     - /s2project/WebContent folder which contains index.jsp, WEB-
   INF, ...

     - /s2project/WebContent/WEB-INF/classes is the output folder

     - /s2project/src folder which contains java source and struts.xml

     - /s2project/ivy.xml file

   Thanks again for any help.

   On Jan 30, 9:16 pm, finneycanhelp lovefin...@gmail.com wrote:

Hi,

My goal is to GWT-ize a struts2 (S2) project.  I read the archives of
this list. Although email threads were quite informative, I do not see
the answer to this situation regarding the Java classpath and GWT.

Tools:
  I am using eclipse Java EE IDE for Web Developers (3.5.1) and the
GWT eclipse plugin (1.2.0) with GWT 2.0.

  I created a GWT hello world application to compare to the small
struts 2 application I am trying to enhance.

Project layout:
  - In the struts2 project, the S2 web application has its WEB-INF in /
s2/src/main/webapp/WEB-INF and its output (.class files) go into s2/
target/classes  It's a standard maven project.

  - I see GWT has its WEB-INF located in /sgwt/war/WEB-INF and the
output of the project is sgwt/war/WEB-INF/classes

What I did:

  - I changed the S2 project properties in the Google Web Toolkit
dialog box to Use Google Web Toolkit.

  - I also did the following:

  + read the document at:
   
http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjec...

  + copied/modified over components from the brand new GWT web
application

My current obstacle / challenge is knowing how to add s2.gwt.xml,
s2.html, s2.css so they are visible to the Jetty development mode of
GWT.

By hand, I copied over the s2.gwt.xml file into /s2/src/main/
resources   However things did not work quite right. Trying a url
like:http://localhost:/Sgwt.html?gwt.codesvr=10.0.0.2:9997 but
for the s2 project did not work.

How do I change the development mode of GWT in eclipse to use the s2
resources ( \s2\target\classes ) ?

I will have a similar issue with another struts2 project but it is not
in a standard maven project setup. It has a WebContent folder which
contains a WEB-INF folder and so on.

Thank you for your help.

Sincerely,
Mike



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

2010-01-30 Thread Henry
Hi Finney,

You can specify args to DevMode

Run-Debug Configurations...-g(oogle) Web Application-New
in the Arguments tab, you can add the name of your module(s)
If in doubt, add the
-help
arguments in the Arguments tab

Cheers,
Henry
p.s. checkout http://code.google.com/p/struts2gwtplugin
and let me know what you think of that plugin

On Jan 30, 7:34 pm, finneycanhelp lovefin...@gmail.com wrote:
 Quick follow up / add on:

  I see the post about Maven and GWT 
 athttp://groups.google.com/group/google-web-toolkit/browse_thread/threa...

 However, my real concern is with a struts2 project (s2project) that
 has:
   - /s2project/WebContent folder which contains index.jsp, WEB-
 INF, ...

   - /s2project/WebContent/WEB-INF/classes is the output folder

   - /s2project/src folder which contains java source and struts.xml

   - /s2project/ivy.xml file

 Thanks again for any help.

 On Jan 30, 9:16 pm, finneycanhelp lovefin...@gmail.com wrote:

  Hi,

  My goal is to GWT-ize a struts2 (S2) project.  I read the archives of
  this list. Although email threads were quite informative, I do not see
  the answer to this situation regarding the Java classpath and GWT.

  Tools:
    I am using eclipse Java EE IDE for Web Developers (3.5.1) and the
  GWT eclipse plugin (1.2.0) with GWT 2.0.

    I created a GWT hello world application to compare to the small
  struts 2 application I am trying to enhance.

  Project layout:
    - In the struts2 project, the S2 web application has its WEB-INF in /
  s2/src/main/webapp/WEB-INF and its output (.class files) go into s2/
  target/classes  It's a standard maven project.

    - I see GWT has its WEB-INF located in /sgwt/war/WEB-INF and the
  output of the project is sgwt/war/WEB-INF/classes

  What I did:

    - I changed the S2 project properties in the Google Web Toolkit
  dialog box to Use Google Web Toolkit.

    - I also did the following:

    + read the document at:
     http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjec...

    + copied/modified over components from the brand new GWT web
  application

  My current obstacle / challenge is knowing how to add s2.gwt.xml,
  s2.html, s2.css so they are visible to the Jetty development mode of
  GWT.

  By hand, I copied over the s2.gwt.xml file into /s2/src/main/
  resources   However things did not work quite right. Trying a url
  like:http://localhost:/Sgwt.html?gwt.codesvr=10.0.0.2:9997 but
  for the s2 project did not work.

  How do I change the development mode of GWT in eclipse to use the s2
  resources ( \s2\target\classes ) ?

  I will have a similar issue with another struts2 project but it is not
  in a standard maven project setup. It has a WebContent folder which
  contains a WEB-INF folder and so on.

  Thank you for your help.

  Sincerely,
  Mike

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

2010-01-28 Thread Henry
Hi Trung,

So you do agree that writing a dispatcher can be done.
Whether you use Guice, Spring or reflection to accomplish this
hasn't been done yet.
My real question, is ... is this useful?
As for performance ... well, my gut feel is that it can be
written just as efficiently as all the other dispatchers right now.
Am I wrong on this assumption?

Cheers,
Henry

On Jan 28, 4:11 am, Trung gwtdevelo...@gmail.com wrote:
 Hi Henry,

 You can implement it using child injector:

 Below code is fromhttp://stuffthathappens.com/blog/2009/09/14/guice-with-gwt/
 with modifications
 @Singleton
 public class GuiceRemoteServiceServlet extends RemoteServiceServlet {
   ...
   @SuppressWarnings({unchecked})
   private RemoteService getServiceInstance(final Class serviceClass) {
     // OLD return (RemoteService) injector.getInstance(serviceClass);

     // determine the Impl class from serviceClass using naming
 convention
     final Class implClass = ...  ;
     Injector dynamicInjector = injector.createChildInjector(new
 AbstractModule(){
       protected void configure() {
         bind(serviceClass).to(implClass);
       }
     });
     return dynamicInjector.getInstance(serviceClass);
   }

 }

 For every RPC request, it bind the serviceClass to the implClass
 dynamically.
 But you will pay for the performance (I did not measure it yet :( )

 Hope this help,
 Trunghttp://www.gdevelop.com/

 On Jan 28, 10:42 am, Henry q8e...@gmail.com wrote:

  I use the Eclipse-plugin to help me write the async,
  but that's got nothing to with my proposed dispatcher ... unless
  there's something you forgot to mention

  Cheers,
  Henry

  On Jan 27, 6:31 am, Alexander the.malk...@gmail.com wrote:

   You write async version of interface manualy?

   2010/1/25 jarrod jarrod.carl...@gmail.com

Have you looked at the GWT-SL library? This is the project I use to
export my RPC services with Spring. It is blisteringly easy.
   http://gwt-widget.sourceforge.net/gwt-sl/reference-1.0/index.html#RPC

The great thing about this library is that (except for one line in
your servlet context) configuration is completely annotation-driven!

I just place this line in my-servlet.xml:
bean class=org.gwtwidgets.server.spring.GWTHandler /

The GWTHandler works as a HandlerMapping, so it can be ordered among
other HandlerMappings as you see fit.

Next, I can wire-up RPC services like so:

First, the RPC Interface

@RemoteServiceRelativePath(UserService.rpc) // service path for
client side, relative to module path
@GWTRequestMapping(/foo.bar.users.Users/UserService.rpc) // service
path for server side, relative to context
public interface RpcUserService extends RemoteService {

   void deleteUser(String uid);

   User getUser(String uid);

   ListUser listUsers();

   void updateUser(User user);

}

And the accompanying Async version:

public interface RpcUserServiceAsync {

   void deleteUser(String uid, AsyncCallbackVoid callback);

   void getUser(String uid, AsyncCallbackUser callback);

   void listUsers(AsyncCallbackListUser callback);

   void updateUser(User user, AsyncCallbackVoid callback);

}

I won't go into the client side usage, but on the server side, it
works just like this:

@Component // Spring auto-detects and wires up this POJO
// because this is an RpcUserService, the GWTHandler will export it
automatically!
public class UserServiceImpl implements RpcUserService {

   private UserService service; // some backing bean

  �...@autowired
   UserServiceImpl(UserService service) {
       this.service = service;
   }

  �...@override
   public void deleteUser(String uid) {
       this.service.deleteUser(uid);
   }

  �...@override
   public User getUser(String uid) {
       return this.service.loadUser(uid);
   }

  �...@override
   public ListUser listUsers() {
       return this.service.listUsers(0, 1000);
   }

  �...@override
   public void updateUser(User user) {
       this.service.updateUser(user);
   }

}

In this case, my application already had a server side component
(UserService) to handle my requests. My POJO here is just a stupid-
simple wrapper around that backend service object. Your mileage may
vary, though.

That's it! There are no additional configurations to do, regardless
of how many RPC services you want to make available. If all of your
service's dependencies are made known to the container through the
@Component annotation, then you won't even have to configure those in
a Spring config file...

I hope that helps solve the concern you're addressing.

On Jan 24, 2:06 pm, Henry q8e...@gmail.com wrote:
 The issue is that I have to maintain a DI configuration file.
 If I have say 50 rpc services, then that means I'll have a DI file
 with 50 lines

Re: Anything better than the current gwt-dispatch...

2010-01-27 Thread Henry
I use the Eclipse-plugin to help me write the async,
but that's got nothing to with my proposed dispatcher ... unless
there's something you forgot to mention

Cheers,
Henry

On Jan 27, 6:31 am, Alexander the.malk...@gmail.com wrote:
 You write async version of interface manualy?

 2010/1/25 jarrod jarrod.carl...@gmail.com



  Have you looked at the GWT-SL library? This is the project I use to
  export my RPC services with Spring. It is blisteringly easy.
 http://gwt-widget.sourceforge.net/gwt-sl/reference-1.0/index.html#RPC

  The great thing about this library is that (except for one line in
  your servlet context) configuration is completely annotation-driven!

  I just place this line in my-servlet.xml:
  bean class=org.gwtwidgets.server.spring.GWTHandler /

  The GWTHandler works as a HandlerMapping, so it can be ordered among
  other HandlerMappings as you see fit.

  Next, I can wire-up RPC services like so:

  First, the RPC Interface

  @RemoteServiceRelativePath(UserService.rpc) // service path for
  client side, relative to module path
  @GWTRequestMapping(/foo.bar.users.Users/UserService.rpc) // service
  path for server side, relative to context
  public interface RpcUserService extends RemoteService {

     void deleteUser(String uid);

     User getUser(String uid);

     ListUser listUsers();

     void updateUser(User user);

  }

  And the accompanying Async version:

  public interface RpcUserServiceAsync {

     void deleteUser(String uid, AsyncCallbackVoid callback);

     void getUser(String uid, AsyncCallbackUser callback);

     void listUsers(AsyncCallbackListUser callback);

     void updateUser(User user, AsyncCallbackVoid callback);

  }

  I won't go into the client side usage, but on the server side, it
  works just like this:

  @Component // Spring auto-detects and wires up this POJO
  // because this is an RpcUserService, the GWTHandler will export it
  automatically!
  public class UserServiceImpl implements RpcUserService {

     private UserService service; // some backing bean

    �...@autowired
     UserServiceImpl(UserService service) {
         this.service = service;
     }

    �...@override
     public void deleteUser(String uid) {
         this.service.deleteUser(uid);
     }

    �...@override
     public User getUser(String uid) {
         return this.service.loadUser(uid);
     }

    �...@override
     public ListUser listUsers() {
         return this.service.listUsers(0, 1000);
     }

    �...@override
     public void updateUser(User user) {
         this.service.updateUser(user);
     }

  }

  In this case, my application already had a server side component
  (UserService) to handle my requests. My POJO here is just a stupid-
  simple wrapper around that backend service object. Your mileage may
  vary, though.

  That's it! There are no additional configurations to do, regardless
  of how many RPC services you want to make available. If all of your
  service's dependencies are made known to the container through the
  @Component annotation, then you won't even have to configure those in
  a Spring config file...

  I hope that helps solve the concern you're addressing.

  On Jan 24, 2:06 pm, Henry q8e...@gmail.com wrote:
   The issue is that I have to maintain a DI configuration file.
   If I have say 50 rpc services, then that means I'll have a DI file
   with 50 lines of DI injection.

   Cheers,
   Henry

   On Jan 24, 2:38 am, olivier nouguier olivier.nougu...@gmail.com
   wrote:

hi,
  I can't figure out what you consider an issue in using a DI dispatch.
Just to understand :)

On Sun, Jan 24, 2010 at 8:15 AM, Henry q8e...@gmail.com wrote:
 I took a quick look at

 http://code.google.com/p/orcades-gwt-spring/wiki/orcadesGWTSpringHandler
 Not bad, but it still needs managed beans which is managed via a .xml
 file or annotations.
 I'm suggesting something that doesn't even need that ...
 the caveat is that my soln uses a name-design pattern (which might
  not
 be a caveat)

 Cheers,
 Henry

 On Jan 23, 2:16 am, olivier nouguier olivier.nougu...@gmail.com
 wrote:
  Hi
   It's quite easy to implement a GWT dispatcher. At least with
  spring,
 then
  use autoscan feature:

 http://code.google.com/p/orcades-gwt-spring/wiki/orcadesGWTSpringHandler
  HIH

  On Fri, Jan 22, 2010 at 7:13 PM, Henry q8e...@gmail.com wrote:
   So far,

   I found there are a few ways to redirect your serviceimpl, namley
   1) logic in web.xml
   2) gwt-dispatch
   3) various framework plugins (for struts, jsf)

   But each of these solns above require you to edit a config file
  (or
   modify a java file with guice)
   everytime you add a new serviceimpl.
   Would it be possible to have an auto-config, so that if you
  follow the
   standard naming
   convention of
   XXXService.java
   XXXServiceAsync.java
   XXXServiceImpl.java

Re: Anything better than the current gwt-dispatch...

2010-01-24 Thread Henry
The issue is that I have to maintain a DI configuration file.
If I have say 50 rpc services, then that means I'll have a DI file
with 50 lines of DI injection.

Cheers,
Henry

On Jan 24, 2:38 am, olivier nouguier olivier.nougu...@gmail.com
wrote:
 hi,
   I can't figure out what you consider an issue in using a DI dispatch.
 Just to understand :)



 On Sun, Jan 24, 2010 at 8:15 AM, Henry q8e...@gmail.com wrote:
  I took a quick look at
 http://code.google.com/p/orcades-gwt-spring/wiki/orcadesGWTSpringHandler
  Not bad, but it still needs managed beans which is managed via a .xml
  file or annotations.
  I'm suggesting something that doesn't even need that ...
  the caveat is that my soln uses a name-design pattern (which might not
  be a caveat)

  Cheers,
  Henry

  On Jan 23, 2:16 am, olivier nouguier olivier.nougu...@gmail.com
  wrote:
   Hi
    It's quite easy to implement a GWT dispatcher. At least with spring,
  then
   use autoscan feature:

 http://code.google.com/p/orcades-gwt-spring/wiki/orcadesGWTSpringHandler
   HIH

   On Fri, Jan 22, 2010 at 7:13 PM, Henry q8e...@gmail.com wrote:
So far,

I found there are a few ways to redirect your serviceimpl, namley
1) logic in web.xml
2) gwt-dispatch
3) various framework plugins (for struts, jsf)

But each of these solns above require you to edit a config file (or
modify a java file with guice)
everytime you add a new serviceimpl.
Would it be possible to have an auto-config, so that if you follow the
standard naming
convention of
XXXService.java
XXXServiceAsync.java
XXXServiceImpl.java

that you won't have to add any more configurations.
i.e.
the service endpoint is something like
/gwt/GwtNameDispatcher

and GwtNameDispatcher is written so that it invokes the respective
ServiceImpl
w/o reading any configs files.  GwtNameDispatcher knows which
ServiceImpl to invoke
based upon what Service object was passed in the GWT-RPC post param.
The caveat is that you must follow the
XXXService.java
XXXServiceAsync.java
XXXServiceImpl.java
pattern, but if I write such a GwtNameDispatcher beast, would this be
useful
to the GWT community?
Is there a better soln?

Cheers,
Henry

--
You received this message because you are subscribed to the Google
  Groups
Google Web Toolkit group.
To post to this group, send email to
  google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com

.
For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=en.

   --
   A coward is incapable of exhibiting love; it is the prerogative of the
   brave.
   --
   Mohandas Gandhi

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

 --
 A coward is incapable of exhibiting love; it is the prerogative of the
 brave.
 --
 Mohandas Gandhi

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

2010-01-24 Thread Henry
A decent soln,

but IMHO still a bit of work and it requires @GWTRequestMapping
One should be about to get away without even using that annotation
Yes, your soln is better than gwt-dispatch, but I still think we can
write an even better soln.

Cheers,
Henry

On Jan 24, 2:50 pm, jarrod jarrod.carl...@gmail.com wrote:
 Have you looked at the GWT-SL library? This is the project I use to
 export my RPC services with Spring. It is blisteringly 
 easy.http://gwt-widget.sourceforge.net/gwt-sl/reference-1.0/index.html#RPC

 The great thing about this library is that (except for one line in
 your servlet context) configuration is completely annotation-driven!

 I just place this line in my-servlet.xml:
 bean class=org.gwtwidgets.server.spring.GWTHandler /

 The GWTHandler works as a HandlerMapping, so it can be ordered among
 other HandlerMappings as you see fit.

 Next, I can wire-up RPC services like so:

 First, the RPC Interface

 @RemoteServiceRelativePath(UserService.rpc) // service path for
 client side, relative to module path
 @GWTRequestMapping(/foo.bar.users.Users/UserService.rpc) // service
 path for server side, relative to context
 public interface RpcUserService extends RemoteService {

     void deleteUser(String uid);

     User getUser(String uid);

     ListUser listUsers();

     void updateUser(User user);

 }

 And the accompanying Async version:

 public interface RpcUserServiceAsync {

     void deleteUser(String uid, AsyncCallbackVoid callback);

     void getUser(String uid, AsyncCallbackUser callback);

     void listUsers(AsyncCallbackListUser callback);

     void updateUser(User user, AsyncCallbackVoid callback);

 }

 I won't go into the client side usage, but on the server side, it
 works just like this:

 @Component // Spring auto-detects and wires up this POJO
 // because this is an RpcUserService, the GWTHandler will export it
 automatically!
 public class UserServiceImpl implements RpcUserService {

     private UserService service; // some backing bean

     @Autowired
     UserServiceImpl(UserService service) {
         this.service = service;
     }

     @Override
     public void deleteUser(String uid) {
         this.service.deleteUser(uid);
     }

     @Override
     public User getUser(String uid) {
         return this.service.loadUser(uid);
     }

     @Override
     public ListUser listUsers() {
         return this.service.listUsers(0, 1000);
     }

     @Override
     public void updateUser(User user) {
         this.service.updateUser(user);
     }

 }

 In this case, my application already had a server side component
 (UserService) to handle my requests. My POJO here is just a stupid-
 simple wrapper around that backend service object. Your mileage may
 vary, though.

 That's it! There are no additional configurations to do, regardless
 of how many RPC services you want to make available. If all of your
 service's dependencies are made known to the container through the
 @Component annotation, then you won't even have to configure those in
 a Spring config file...

 I hope that helps solve the concern you're addressing.

 On Jan 24, 2:06 pm, Henry q8e...@gmail.com wrote:

  The issue is that I have to maintain a DI configuration file.
  If I have say 50 rpc services, then that means I'll have a DI file
  with 50 lines of DI injection.

  Cheers,
  Henry

  On Jan 24, 2:38 am, olivier nouguier olivier.nougu...@gmail.com
  wrote:

   hi,
     I can't figure out what you consider an issue in using a DI dispatch.
   Just to understand :)

   On Sun, Jan 24, 2010 at 8:15 AM, Henry q8e...@gmail.com wrote:
I took a quick look at
   http://code.google.com/p/orcades-gwt-spring/wiki/orcadesGWTSpringHandler
Not bad, but it still needs managed beans which is managed via a .xml
file or annotations.
I'm suggesting something that doesn't even need that ...
the caveat is that my soln uses a name-design pattern (which might not
be a caveat)

Cheers,
Henry

On Jan 23, 2:16 am, olivier nouguier olivier.nougu...@gmail.com
wrote:
 Hi
  It's quite easy to implement a GWT dispatcher. At least with spring,
then
 use autoscan feature:

   http://code.google.com/p/orcades-gwt-spring/wiki/orcadesGWTSpringHandler
 HIH

 On Fri, Jan 22, 2010 at 7:13 PM, Henry q8e...@gmail.com wrote:
  So far,

  I found there are a few ways to redirect your serviceimpl, namley
  1) logic in web.xml
  2) gwt-dispatch
  3) various framework plugins (for struts, jsf)

  But each of these solns above require you to edit a config file (or
  modify a java file with guice)
  everytime you add a new serviceimpl.
  Would it be possible to have an auto-config, so that if you follow 
  the
  standard naming
  convention of
  XXXService.java
  XXXServiceAsync.java
  XXXServiceImpl.java

  that you won't have to add any more configurations.
  i.e.
  the service endpoint is something

Re: Anything better than the current gwt-dispatch...

2010-01-23 Thread Henry
I took a quick look at
http://code.google.com/p/orcades-gwt-spring/wiki/orcadesGWTSpringHandler
Not bad, but it still needs managed beans which is managed via a .xml
file or annotations.
I'm suggesting something that doesn't even need that ...
the caveat is that my soln uses a name-design pattern (which might not
be a caveat)

Cheers,
Henry

On Jan 23, 2:16 am, olivier nouguier olivier.nougu...@gmail.com
wrote:
 Hi
  It's quite easy to implement a GWT dispatcher. At least with spring, then
 use autoscan feature:
  http://code.google.com/p/orcades-gwt-spring/wiki/orcadesGWTSpringHandler
 HIH



 On Fri, Jan 22, 2010 at 7:13 PM, Henry q8e...@gmail.com wrote:
  So far,

  I found there are a few ways to redirect your serviceimpl, namley
  1) logic in web.xml
  2) gwt-dispatch
  3) various framework plugins (for struts, jsf)

  But each of these solns above require you to edit a config file (or
  modify a java file with guice)
  everytime you add a new serviceimpl.
  Would it be possible to have an auto-config, so that if you follow the
  standard naming
  convention of
  XXXService.java
  XXXServiceAsync.java
  XXXServiceImpl.java

  that you won't have to add any more configurations.
  i.e.
  the service endpoint is something like
  /gwt/GwtNameDispatcher

  and GwtNameDispatcher is written so that it invokes the respective
  ServiceImpl
  w/o reading any configs files.  GwtNameDispatcher knows which
  ServiceImpl to invoke
  based upon what Service object was passed in the GWT-RPC post param.
  The caveat is that you must follow the
  XXXService.java
  XXXServiceAsync.java
  XXXServiceImpl.java
  pattern, but if I write such a GwtNameDispatcher beast, would this be
  useful
  to the GWT community?
  Is there a better soln?

  Cheers,
  Henry

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

 --
 A coward is incapable of exhibiting love; it is the prerogative of the
 brave.
 --
 Mohandas Gandhi

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



Anything better than the current gwt-dispatch...

2010-01-22 Thread Henry
So far,

I found there are a few ways to redirect your serviceimpl, namley
1) logic in web.xml
2) gwt-dispatch
3) various framework plugins (for struts, jsf)

But each of these solns above require you to edit a config file (or
modify a java file with guice)
everytime you add a new serviceimpl.
Would it be possible to have an auto-config, so that if you follow the
standard naming
convention of
XXXService.java
XXXServiceAsync.java
XXXServiceImpl.java

that you won't have to add any more configurations.
i.e.
the service endpoint is something like
/gwt/GwtNameDispatcher

and GwtNameDispatcher is written so that it invokes the respective
ServiceImpl
w/o reading any configs files.  GwtNameDispatcher knows which
ServiceImpl to invoke
based upon what Service object was passed in the GWT-RPC post param.
The caveat is that you must follow the
XXXService.java
XXXServiceAsync.java
XXXServiceImpl.java
pattern, but if I write such a GwtNameDispatcher beast, would this be
useful
to the GWT community?
Is there a better soln?

Cheers,
Henry

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

2010-01-02 Thread Henry
See:
http://www.owasp.org/index.php/JAAS_Tomcat_Login_Module

Cheers,
Henry

On Dec 31 2009, 6:27 am, Dave ladjo...@gmail.com wrote:
 I have a web page that I want to authenticate a user before they are
 allowed to access the page. I set the authentication parameters in the
 web.xml but it's not working. I use a hyperlink to get this page. The
 address of this page ishttp://somewebsite.appspot.com/#pageand my
 web.xml is below. What am i doing wrong?

 web-app
   !-- Servlets --
   servlet
     servlet-nameloginService/servlet-name
     servlet-classedu.somewebsite.server.LoginServiceImpl/servlet-
 class
   /servlet

   servlet-mapping
     servlet-nameloginService/servlet-name
     url-pattern/somewebsite/login/url-pattern
   /servlet-mapping

   !-- Default page to serve --
   welcome-file-list
     welcome-fileSomewebsite.html/welcome-file
   /welcome-file-list

   security-constraint
         web-resource-collection
             url-pattern/somewebsite/page/url-pattern
         /web-resource-collection
         auth-constraint
             role-nameadmin/role-name
         /auth-constraint
         user-data-constraint
             transport-guaranteeCONFIDENTIAL/transport-guarantee
         /user-data-constraint
     /security-constraint
 /web-app

--

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




About to start a course on GWT...

2010-01-02 Thread Henry
Hi,

I'm about to teach a course on GWT here in my home city in Canada.
Any hints/tips/advice before I start?

thx,
Henry
hc...@apache.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: GWTShell dev mode problem

2009-12-21 Thread Henry
Hi Miguel,

What I did was to prepend a src directory in my project
and create my own implementation of GWTShell

public class GWTShell extends DevMode {
}

Then enter the arguments from the Debug Configurations as you
would for a Java application
At the very least this won't give you a popup and put all your
log messages in the plugin window.

Cheers,
Henry

On Dec 21, 2:38 pm, Shawn Brown big.coffee.lo...@gmail.com wrote:
 Hi Miguel,

  Is the war directory at the root of your project?

 yes

 If you look at your .project file does it have the web app nature?

 Can you post what a .project file should look like?  Originally mine
 was of web app nature but (please understand I never set it to be like
 this -- others have the same problem) the Android plugin decided it
 owns the world and tried to make my GWT-appengine project into an
 Android one.

 You can see how messed up this is...

 If you don't have time, that's fine.  I can launch devmode as an
 external program.  It'd be nice though to have it cleaned up so I
 don't end up somehow getting confusing errors that nobody can track
 down.

 projectDescription
         nameFluencyBuilderGAE/name
         comment/comment
         projects
         /projects
         buildSpec
                 buildCommand
                         
 nameorg.eclipse.ui.externaltools.ExternalToolBuilder/name
                         triggersfull,incremental,/triggers
                         arguments
                                 dictionary
                                         keyLaunchConfigHandle/key
                                         
 valuelt;projectgt;/.externalToolBuilders/com.android.ide.eclipse.adt.ResourceManagerBuilder.launch/value
                                 /dictionary
                         /arguments
                 /buildCommand
                 buildCommand
                         
 nameorg.eclipse.ui.externaltools.ExternalToolBuilder/name
                         triggersfull,incremental,/triggers
                         arguments
                                 dictionary
                                         keyLaunchConfigHandle/key
                                         
 valuelt;projectgt;/.externalToolBuilders/com.android.ide.eclipse.adt.PreCompilerBuilder.launch/value
                                 /dictionary
                         /arguments
                 /buildCommand
                 buildCommand
                         
 namecom.google.appengine.eclipse.core.enhancerbuilder/name
                         arguments
                         /arguments
                 /buildCommand
                 buildCommand
                         
 namecom.google.gdt.eclipse.core.webAppProjectValidator/name
                         arguments
                         /arguments
                 /buildCommand
                 buildCommand
                         
 namecom.google.appengine.eclipse.core.projectValidator/name
                         arguments
                         /arguments
                 /buildCommand
                 buildCommand
                         
 namecom.google.gwt.eclipse.core.gwtProjectValidator/name
                         arguments
                         /arguments
                 /buildCommand
                 buildCommand
                         nameorg.eclipse.jdt.core.javabuilder/name
                         arguments
                         /arguments
                 /buildCommand
                 buildCommand
                         
 nameorg.eclipse.ui.externaltools.ExternalToolBuilder/name
                         triggersfull,incremental,/triggers
                         arguments
                                 dictionary
                                         keyLaunchConfigHandle/key
                                         
 valuelt;projectgt;/.externalToolBuilders/com.android.ide.eclipse.adt.ApkBuilder.launch/value
                                 /dictionary
                         /arguments
                 /buildCommand
         /buildSpec
         natures
                 naturecom.android.ide.eclipse.adt.AndroidNature/nature
                 natureorg.eclipse.jdt.core.javanature/nature
                 naturecom.google.appengine.eclipse.core.gaeNature/nature
                 naturecom.google.gwt.eclipse.core.gwtNature/nature
                 naturecom.google.gdt.eclipse.core.webAppNature/nature
         /natures
 /projectDescription

--

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

2009-12-21 Thread Henry
Curious,

How does Gilead serialize BigDecimal?
GWT can't handle BigDecimal yet ...
What about byte[]?

thx,
Henry

On Dec 21, 5:01 pm, debillin debil...@gmail.com wrote:
 Andreas -

 Don't you have to use the JDO Serialization Filters and
 EngineRemoteService somewhere?

 Seems to me like the DispatchServlet should extend Gilead's
 EngineRemoteService.

 On Nov 24, 7:31 am, philippe vonck...@yahoo.fr wrote:

  I Marcos,

  I posted on a blog a simple exemple to configueredGileadinGWT/
  Spring context with annotations.

  the post is in french but the exemples are in English, comments too.

 http://ultrafil.tuxfamily.org/index.php?2009/11/24/145-integrer-gilea...

  Enjoy,
  Philippe

  On 24 nov, 10:16, Andreas Mueller a.muel...@herban.de wrote:

   Hi Marcos,
   yes, and I love it.

   You need to extend DisptachServiceServlet and add the following code
   to your constructor:

                   net.sf.gilead.core.hibernate.HibernateUtil
   hibernateUtil = new net.sf.gilead.core.hibernate.HibernateUtil();
                   
   hibernateUtil.setSessionFactory(YourHibernateUtil.getSessionFactory
   ());
                   net.sf.gilead.core.PersistentBeanManager
   persistentBeanManager = new net.sf.gilead.core.PersistentBeanManager
   ();
                   persistentBeanManager.setPersistenceUtil(hibernateUtil);
                   persistentBeanManager.setProxyStore(new
   net.sf.gilead.core.store.stateless.StatelessProxyStore());
                   setBeanManager(persistentBeanManager);

   Everything else you have to do is described in thegileadtutorial.

   Hope this helps,

   Andreas



--

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

2009-12-18 Thread Henry HO
hi,
i'm trying to use the gwt plugin in eclipse for linux, but can't get
it to work.
the plugin is installed but, when i go to create a new project, the
Web Application Project choice isn't there and there is no mention
of Google in the Preferences menu (unlike eclipse/os x).
has anyone been to using gwt plugin in eclipse/linux?

thanks,
-henry


--

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

2009-12-18 Thread Henry HO
stupid me...
it was a permissions' issue.
i had installed eclipse as root user; but installed gwt plugin as a
regular user.
so eclipse's installer was unable to write to plugins directory.
i wish eclipse would warn me because it did say installation was ok...



On Dec 18, 10:25 am, Rajeev Dayal rda...@google.com wrote:
 What version of Eclipse are you using? Do you see any errors mentioned in
 the error log (Window - Show View - Error Log)?

 The Google Plugin for Eclipse depends on WST. Check out this FAQ entry for
 more details:

 http://code.google.com/eclipse/docs/faq.html#wstinstallerror



 On Thu, Dec 17, 2009 at 11:49 PM, Henry HO djhenr...@gmail.com wrote:
  hi,
  i'm trying to use the gwt plugin in eclipse for linux, but can't get
  it to work.
  the plugin is installed but, when i go to create a new project, the
  Web Application Project choice isn't there and there is no mention
  of Google in the Preferences menu (unlike eclipse/os x).
  has anyone been to using gwt plugin in eclipse/linux?

  thanks,
  -henry

  --

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

--

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




Eclipse plugin Development Mode issue (uses GWTShell)

2009-12-17 Thread Henry
The Eclipse plugin uses GWTShell.class (a deprecated class) instead of
DevMode.class
The options for GWTShell and DevMode are quite different.
I'm using a directory (WebContent/jsgenerated) other than war for my
compiled code
There is no way in the plugin to specify a module.
The fix is to replace GWTShell as follows:

public class GWTShell extends DevMode {

}


Cheers,
Henry

--

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

2009-12-16 Thread Henry
The plugin DevMode still has a GUI in it (it has a Layout of
Tree or Breadcrumb).
I was thinking more along the lines of a log from DevMode that
prints to STDOUT alone (unless configured to with log4j or something)
I find the Tree GUI to be hard to seach thru (I like using CTRL-F
to search) and can eat a bit of memory.
Think of it like the printout as a normal Java app but with
better logging capabilities (like printing the date).

Cheers,
Henry

On Dec 16, 4:33 am, Chris Ramsdale cramsd...@google.com wrote:
 I'm not sure I understand. Are you using the eclipse plugin to debug your
 app? If so, you should only be seeing the dev mode panel in Eclipse.

 On Dec 16, 2009 2:12 AM, Henry q8e...@gmail.com wrote:

 Is there a way to run DevMode with no gui?
 If not, where do I submit a feature request ...
 or if I do write a feature would it be useful
 to anyone else?

 Cheers,
 Henry

 --

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

--

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




Re: DevMode - no gui

2009-12-16 Thread Henry
I guess my main gripe with the Tree UI Panel that the DevMode launches
from the plugin or DevMode.main is that it eats a bit of memory and
the date isn't displayed properly.  I thin a pure STDOUT console would
be better.

Cheers,
Henry

On Dec 16, 10:27 am, Henry q8e...@gmail.com wrote:
 The plugin DevMode still has a GUI in it (it has a Layout of
 Tree or Breadcrumb).
 I was thinking more along the lines of a log from DevMode that
 prints to STDOUT alone (unless configured to with log4j or something)
 I find the Tree GUI to be hard to seach thru (I like using CTRL-F
 to search) and can eat a bit of memory.
 Think of it like the printout as a normal Java app but with
 better logging capabilities (like printing the date).

 Cheers,
 Henry

 On Dec 16, 4:33 am, Chris Ramsdale cramsd...@google.com wrote:

  I'm not sure I understand. Are you using the eclipse plugin to debug your
  app? If so, you should only be seeing the dev mode panel in Eclipse.

  On Dec 16, 2009 2:12 AM, Henry q8e...@gmail.com wrote:

  Is there a way to run DevMode with no gui?
  If not, where do I submit a feature request ...
  or if I do write a feature would it be useful
  to anyone else?

  Cheers,
  Henry

  --

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



--

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




Re: Eclipse Plugin for GWT 2.0 release

2009-12-16 Thread Henry
Is there a way in the Dev Mode plugin to set the war directory
to something else?

What class is the DevMode plugin running... is it DevMode or is it
GWTShell?

thx,
H

On Dec 11, 9:37 am, Rajeev Dayal rda...@google.com wrote:
 Thanks for the feedback. Please feel free file any suggestions for
 improvement in the issue
 trackerhttp://code.google.com/p/google-web-toolkit/issues/list -
 we'd appreciate it!

 2009/12/11 István Szoboszlai mrsz...@gmail.com

  Hello Rajeev,

  Actually I think it is good, but I liked it when it was a separate
  window. Of course you can drag the development mode tab to be a
  separate window.

  I liked the tabbing in the normal oophm window better, and there was a
  way to restart jetty (perhaps I just did not find it yet in Eclipse
  plugin.

 As pointed out by Jonas, there is a way to restart the server from the
 Development Mode View. When you mention that you prefer the tabbing, do you
 mean the organization of the tabs? Or do you just prefer the navigation
 style of using tabs as opposed to the breadcrumb layout? Keep in mind that
 you can switch the layout of the Development Mode View by clicking on the
 arrow in the upper-right hand corner of the view.

  I also liked, that the debug info and the http request log was in a
  separate window.

 That is the case in the Development Mode View as well - the Server messages
 are logged to stdout. However, we only log HTTP requests that result in an
 error. If you want to see the HTTP log messages in the Development Mode
 View, turn the log level up to TRACE in your launch configuration.



  Actually I really like gwt 2.0 and also the eclipse plugin rocks! The
  UiBinder support is awesome!

 Glad to hear it.



  Best - István

  On Thu, Dec 10, 2009 at 5:43 PM, Rajeev Dayal rda...@google.com wrote:
   If you want to use the Development Mode UI provided by GWT, define the
   USE_REMOTE_UI environment variable for the launch configuration, and set
  its
   value to false. You can do this via the Environment tab for the launch
   configuration.
   If you don't mind, can you tell us why you're not a fan of the
  Development
   Mode View in Eclipse?
   2009/12/10 István Szoboszlai mrsz...@gmail.com

   Hello!
   I have tried the new GWT 2.0 release, and it looks very god!
   My only problem is with the eclipse plugin.
   Do you know how to debug the project using the normal devmode window
   instead of the Development Mode tab in eclipse? I don't really like
  the
   new tab:)
   Is there a command line argument to use the nomral devmode window?
   Any answer is really appreciated:)
   Thanks in advance
   - István Szoboszlai | inepex.com

   --

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

   --

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

  --

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



--

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




DevMode - no gui

2009-12-15 Thread Henry
Is there a way to run DevMode with no gui?
If not, where do I submit a feature request ...
or if I do write a feature would it be useful
to anyone else?

Cheers,
Henry

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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 do I use my own server in hosted mode instead of GWT's built-in Jetty instance?

2009-12-10 Thread Henry
How do I use my own server in hosted mode instead of GWT's built-in
Jetty instance?
In the plugin, I found the option to turn off use built-in server.
Then I start my own server (Tomcat with JAAS j_security enabled), but
it doesn't seem to pick up changes with my OOPHM firefox.
How do I get my server (Tomcat) to understand:
?gwt.codesvr=localhost:9997

thx,
Henry

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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 run GWT 2.0 RC2's hosted mode with another server?

2009-12-10 Thread Henry
Hi Chris,

I tried running with the -noserver mode (ignoring -startupUrl for
now ...)
but I can't put a breakpoint in my code and have it stop there.
Using GWT2.0, OOPHM/Firefox

What must I configure in tomcat to talk back to localhost:9997 ... is
it the -javaagent?
more?

thx,
Henry

On Dec 4, 2:16 pm, Chris Ramsdale cramsd...@google.com wrote:
 I'm able to debug using an external Tomcat server by specifying the
 following args in my Web Application launch config:

 -noserver
 -startupUrlhttp://localhost:8080/test/go

 Where localhost is a Tomcat server and not the built in Jetty server.

 On Fri, Dec 4, 2009 at 2:49 AM, 3ala2 alaa.alw...@gmail.com wrote:
  Hey I have the same problem here. I want to debug a gadget in iGoogle.
  In GWT 1.7 I used to put the URL ashttp://www.google.com/ig. Now
  there is no possibility to do so. The gadget doesn't have an html file
  to debug in development mode using internal server. I need the
  external server to be iGoogle. Is there a way to do so other than the
  one suggested of recreating the project as Java Project and then
  reconverting it to GWT? So the main question is: How do you debug a
  Google gadget using GWT 2.0RC2 and Eclipse?!

  On Dec 3, 2:07 pm, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
   The idea was, to prevent the existences of 'war/*' in my GWT project.
  With
   the current stable version of the plugin and GWT 1.7.1 everything works
   well.
   So the problem is, that my GWT project does not have any server code and
  no
   host page or anything else. The current version works the following way:

      - GWT (Web App launch configuration) app is launched in hosted mode
      without the build in server.
      - Instead of a host page in the same project, the host page comes from
  an
      independent server.
      - The hosted browser loads the host page (from the specified URL),
      detects the existence of a GWT module (included as JavaScript) and
  replaces
      the JavaScript with the Java Code from the classpath.

   The interesting point is, that the text field to specify the URL is
  removed
   from the GWT tab in the web app launch configuration (plugin version for
  GWT
   2.0 RC2). So the question is, how can I point the OOPHM to my host page's
   URL (on any server)?

   At least some words on what I'm currently doing in Eclipse 3.5 with the
   released version of the plugin and GWT 1.7.1:
   I've got a plain Java project and make a GWT project out of it by right
   click on the project - Google - WebToolkit Settings. In these GWT
  settings
   I check 'Use Google Web Toolkit' and then OK. This makes my Java project
  a
   GWT project. I create a new Web App launch configuration for this
  project,
   disable 'Run build in server' and on the GWT tab I insert my host pages
  URL
   (http://localhost:8080/my-app-which-runs-totaly-independent-on-a-tomcat
  ).
   That's it. It works.
   Interestingly it's not required to specify any GWT module in any
   configuration so far. The presence of the module's XML configuration on
  the
   classpath and the presence of a previously compiled version of the module
  in
   the loaded HTML page is enough to tell hosted browser, what to do. The
  GWT
   Eclipse plugin doesn't even recognize the XML file since the included
  module
   isn't shown in any settings or configuration interface. But it works.

   Regards
   Jan Ehrhardt

   On Tue, Dec 1, 2009 at 5:03 PM, Chris Ramsdale cramsd...@google.com
  wrote:
Based on the fact that the plugin is attempting to launch GWTShell, it
  may
not recognize your app as a web app. This is typically the case when
  it
doesn't find a war/WEB-INF/web.xml file in the project root. Can you
  confirm
that this directory structure is in place? Also, what version of GWT
  and GPE
were you using to previously build your application?

On Tue, Dec 1, 2009 at 1:56 AM, Jan Ehrhardt 
  jan.ehrha...@googlemail.comwrote:

I'm using the Web App launch configuration and the plugin version,
  which
is linked on the GWT 2.0 RC2 wiki page
   http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC

Regards
Jan Ehrhardt

On Mon, Nov 30, 2009 at 4:07 PM, Chris Ramsdale cramsd...@google.com
  wrote:

As a follow-up, are you using Web App Launch configurations or
  regular
Java launch configurations? Also would you mind checking which
  version of
the Google Eclipse Plugin you have installed? You can do this via
Help-Install New Software and clicking on the already installed
  link in
the lower right hand corner.

On Mon, Nov 30, 2009 at 9:00 AM, Chris Ramsdale 
  cramsd...@google.comwrote:

Jan,

The -style argument has been removed when running in development
  mode
(formerly hosted mode). It is now configurable via the UI or an
  Ant
property when you compile your code. The UI settings are available
  by right
clicking on the project name, selecting Google-GWT Compile. From

Re: How to run GWT 2.0 RC2's hosted mode with another server?

2009-12-10 Thread Henry
I figured out my own problem.  Had to compile it again with the GWT2.0
compiler

On Dec 10, 2:24 pm, Henry q8e...@gmail.com wrote:
 Hi Chris,

 I tried running with the -noserver mode (ignoring -startupUrl for
 now ...)
 but I can't put a breakpoint in my code and have it stop there.
 Using GWT2.0, OOPHM/Firefox

 What must I configure in tomcat to talk back to localhost:9997 ... is
 it the -javaagent?
 more?

 thx,
 Henry

 On Dec 4, 2:16 pm, Chris Ramsdale cramsd...@google.com wrote:

  I'm able to debug using an external Tomcat server by specifying the
  following args in my Web Application launch config:

  -noserver
  -startupUrlhttp://localhost:8080/test/go

  Where localhost is a Tomcat server and not the built in Jetty server.

  On Fri, Dec 4, 2009 at 2:49 AM, 3ala2 alaa.alw...@gmail.com wrote:
   Hey I have the same problem here. I want to debug a gadget in iGoogle.
   In GWT 1.7 I used to put the URL ashttp://www.google.com/ig. Now
   there is no possibility to do so. The gadget doesn't have an html file
   to debug in development mode using internal server. I need the
   external server to be iGoogle. Is there a way to do so other than the
   one suggested of recreating the project as Java Project and then
   reconverting it to GWT? So the main question is: How do you debug a
   Google gadget using GWT 2.0RC2 and Eclipse?!

   On Dec 3, 2:07 pm, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
The idea was, to prevent the existences of 'war/*' in my GWT project.
   With
the current stable version of the plugin and GWT 1.7.1 everything works
well.
So the problem is, that my GWT project does not have any server code and
   no
host page or anything else. The current version works the following way:

   - GWT (Web App launch configuration) app is launched in hosted mode
   without the build in server.
   - Instead of a host page in the same project, the host page comes 
from
   an
   independent server.
   - The hosted browser loads the host page (from the specified URL),
   detects the existence of a GWT module (included as JavaScript) and
   replaces
   the JavaScript with the Java Code from the classpath.

The interesting point is, that the text field to specify the URL is
   removed
from the GWT tab in the web app launch configuration (plugin version for
   GWT
2.0 RC2). So the question is, how can I point the OOPHM to my host 
page's
URL (on any server)?

At least some words on what I'm currently doing in Eclipse 3.5 with the
released version of the plugin and GWT 1.7.1:
I've got a plain Java project and make a GWT project out of it by right
click on the project - Google - WebToolkit Settings. In these GWT
   settings
I check 'Use Google Web Toolkit' and then OK. This makes my Java project
   a
GWT project. I create a new Web App launch configuration for this
   project,
disable 'Run build in server' and on the GWT tab I insert my host pages
   URL
(http://localhost:8080/my-app-which-runs-totaly-independent-on-a-tomcat
   ).
That's it. It works.
Interestingly it's not required to specify any GWT module in any
configuration so far. The presence of the module's XML configuration on
   the
classpath and the presence of a previously compiled version of the 
module
   in
the loaded HTML page is enough to tell hosted browser, what to do. The
   GWT
Eclipse plugin doesn't even recognize the XML file since the included
   module
isn't shown in any settings or configuration interface. But it works.

Regards
Jan Ehrhardt

On Tue, Dec 1, 2009 at 5:03 PM, Chris Ramsdale cramsd...@google.com
   wrote:
 Based on the fact that the plugin is attempting to launch GWTShell, it
   may
 not recognize your app as a web app. This is typically the case when
   it
 doesn't find a war/WEB-INF/web.xml file in the project root. Can you
   confirm
 that this directory structure is in place? Also, what version of GWT
   and GPE
 were you using to previously build your application?

 On Tue, Dec 1, 2009 at 1:56 AM, Jan Ehrhardt 
   jan.ehrha...@googlemail.comwrote:

 I'm using the Web App launch configuration and the plugin version,
   which
 is linked on the GWT 2.0 RC2 wiki page
http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC

 Regards
 Jan Ehrhardt

 On Mon, Nov 30, 2009 at 4:07 PM, Chris Ramsdale cramsd...@google.com
   wrote:

 As a follow-up, are you using Web App Launch configurations or
   regular
 Java launch configurations? Also would you mind checking which
   version of
 the Google Eclipse Plugin you have installed? You can do this via
 Help-Install New Software and clicking on the already installed
   link in
 the lower right hand corner.

 On Mon, Nov 30, 2009 at 9:00 AM, Chris Ramsdale 
   cramsd...@google.comwrote:

 Jan,

 The -style argument has been removed when

Re: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUploadException

2009-12-09 Thread Henry
I've these jars in the built path of the eclipse:

commons-codec-1.4.jar
commons-fileupload-1.2.1.jar
commons-io-1.4.jar

The project on the eclipse compiles without problems, but when im
trying to run it on hostmode or deploying it at Google App Engine this
classes are not found...probably i've to put this jars to another
place or configure something to allow found them running the
application, but I don't know where.

On Dec 9, 1:28 am, charlie charlie.f...@gmail.com wrote:
 Err, haven't .

 On Tue, Dec 8, 2009 at 7:28 PM, charlie charlie.f...@gmail.com wrote:
  You have mentioned that you have the commons FileUpload jar in WEB-INF/lib
  , you're positive that it's there and getting deployed ?

  On Tue, Dec 8, 2009 at 6:42 PM, Henry enricrequ...@gmail.com wrote:

  Hi Guys,

  I'm trying to upload a file to the server following the common
  examples of FileUpload and I have the following error:

  java.lang.NoClassDefFoundError: org/apache/commons/fileupload/
  FileUploadException
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
         at java.lang.Class.getConstructor0(Class.java:2671)
         at java.lang.Class.newInstance0(Class.java:321)
         at java.lang.Class.newInstance(Class.java:303)
         at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
         at org.mortbay.jetty.servlet.ServletHolder.getServlet
  (ServletHolder.java:339)
         ...

  I can put my code, but the problem is in the server side, concretely
  when I use the classes that required from the package commons-
  fileupload.jar, for example this import:

      import org.apache.commons.fileupload.FileUploadException;

  Im running the application in host mode, but ive tried to deploy it to
  Google App Engine, and i've the same error. If I dont use that package
  in my server class the calls work good, so the problem must to be king
  of configuration about classpath or something...

  Does anyone know how to configure my eclipse to fix this error?

  Thanks in advance.

  --

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

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send 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: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUploadException

2009-12-09 Thread Henry
Oks :-), but running gwt in host mode, do where I've to move this jar
files? Where is placed the internal tomcat shipped with GWT?
Or I've to configure something else in the eclipse or in the GWT
project to be able to run in host mode?

On 9 Dec, 11:16, bch...@gmail.com bch...@gmail.com wrote:
 As the previous post mentioned, these jar files should be in your war
 application's WEB-INF/lib director.

 On Dec 9, 6:52 pm, Henry enricrequ...@gmail.com wrote:

  I've these jars in the built path of the eclipse:

      commons-codec-1.4.jar
      commons-fileupload-1.2.1.jar
      commons-io-1.4.jar

  The project on the eclipse compiles without problems, but when im
  trying to run it on hostmode or deploying it at Google App Engine this
  classes are not found...probably i've to put this jars to another
  place or configure something to allow found them running the
  application, but I don't know where.

  On Dec 9, 1:28 am, charlie charlie.f...@gmail.com wrote:

   Err, haven't .

   On Tue, Dec 8, 2009 at 7:28 PM, charlie charlie.f...@gmail.com wrote:
You have mentioned that you have the commons FileUpload jar in 
WEB-INF/lib
, you're positive that it's there and getting deployed ?

On Tue, Dec 8, 2009 at 6:42 PM, Henry enricrequ...@gmail.com wrote:

Hi Guys,

I'm trying to upload a file to the server following the common
examples of FileUpload and I have the following error:

java.lang.NoClassDefFoundError: org/apache/commons/fileupload/
FileUploadException
       at java.lang.Class.getDeclaredConstructors0(Native Method)
       at 
java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
       at java.lang.Class.getConstructor0(Class.java:2671)
       at java.lang.Class.newInstance0(Class.java:321)
       at java.lang.Class.newInstance(Class.java:303)
       at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
       at org.mortbay.jetty.servlet.ServletHolder.getServlet
(ServletHolder.java:339)
       ...

I can put my code, but the problem is in the server side, concretely
when I use the classes that required from the package commons-
fileupload.jar, for example this import:

    import org.apache.commons.fileupload.FileUploadException;

Im running the application in host mode, but ive tried to deploy it to
Google App Engine, and i've the same error. If I dont use that package
in my server class the calls work good, so the problem must to be king
of configuration about classpath or something...

Does anyone know how to configure my eclipse to fix this error?

Thanks in advance.

--

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

--

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




java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUploadException

2009-12-08 Thread Henry
Hi Guys,

I'm trying to upload a file to the server following the common
examples of FileUpload and I have the following error:

java.lang.NoClassDefFoundError: org/apache/commons/fileupload/
FileUploadException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.getServlet
(ServletHolder.java:339)
...

I can put my code, but the problem is in the server side, concretely
when I use the classes that required from the package commons-
fileupload.jar, for example this import:

 import org.apache.commons.fileupload.FileUploadException;

Im running the application in host mode, but ive tried to deploy it to
Google App Engine, and i've the same error. If I dont use that package
in my server class the calls work good, so the problem must to be king
of configuration about classpath or something...

Does anyone know how to configure my eclipse to fix this error?

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: Verification Email Process

2009-12-01 Thread Henry
Thank you very much Martin for your reply, Ill think about that :-).

On Nov 27, 9:48 am, Martin Trummer martin.trum...@24act.at wrote:
 another benefit is, that you don't have the
 username in the url as a parameter when the app is started

 On 27 Nov., 10:37, Martin Trummer martin.trum...@24act.at wrote:

  If it works for you it must be right :)

  another aproach would be to write a small servlet that
  does the verification job:

  In this case the URL in the mail would point to the
  verification servlet.
  the servlet could check if everything is correct and
  the redirect to your application (or to an errorpage,
  or send back an errorpage directly, ..)

  this would have the benefit, that the servlets reaction
  time is instantaneous - no need to load your whole
  application before doing the verification.

  On 26 Nov., 13:02, Henry enricrequ...@gmail.com wrote:

   Hi guys,

   I have my GWT application and I need to implement a process to verify
   the email address when someone creates a new account.
   I've the URL (www.XX.com) which give me the whole application
   every time I hit it.
   In my process I'll send an email after the successful creation of the
   account, this email will have a link inside like that (www.XX.com?
   method=verifyusername=FFF), by hitting this URL the server will give
   me the application again like the first time, then on the onModule()
   of my entryPoint class, I'll take the parameters of this URL, and in
   that case, I'll make and asyncronohus call to the server to verify the
   email and wait for the callback to show a panel to the user saying
   that the email has been verify. Before getting that callback I can
   show something saying that the email has being verified while I'm
   waiting for the callback.
   Is it the right way to go?

   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.




Verification Email Process

2009-11-26 Thread Henry
Hi guys,

I have my GWT application and I need to implement a process to verify
the email address when someone creates a new account.
I've the URL (www.XX.com) which give me the whole application
every time I hit it.
In my process I'll send an email after the successful creation of the
account, this email will have a link inside like that (www.XX.com?
method=verifyusername=FFF), by hitting this URL the server will give
me the application again like the first time, then on the onModule()
of my entryPoint class, I'll take the parameters of this URL, and in
that case, I'll make and asyncronohus call to the server to verify the
email and wait for the callback to show a panel to the user saying
that the email has been verify. Before getting that callback I can
show something saying that the email has being verified while I'm
waiting for the callback.
Is it the right way to go?

Thanks in advance.

--

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




Re: GWT 2.0M1 java.lang.NoSuchFieldError WITH ECLIPSE PLUGIN

2009-11-23 Thread Henry
I had a similar problem.
My problem was that my jasper-jdt.jar (Tomcat) classpath was listed
before my GWT classpath
The offending Class was CompilerOptions
Simple fix was to put the GWT classpath before Tomcat's

On Oct 26, 1:47 pm, Harmeet Bedi harmeet.b...@gmail.com wrote:
 Your JdtCompiler is likely in 2 jars. In Google and something else.
 Try to resolve JdtCompiler, see what it resolves to.

 Also if you send your .classpath it would help diagnose.

 Harmeet

 - Original Message -
 From: bond daniele.re...@gmail.com
 To: Google Web Toolkit google-web-toolkit@googlegroups.com
 Sent: Monday, October 26, 2009 4:49:14 PM GMT -05:00 US/Canada Eastern
 Subject: GWT 2.0M1 java.lang.NoSuchFieldError WITH ECLIPSE PLUGIN

 Hi,
 I've a problem when I try to compile my dummy Eclipse web project with
 GWT Module with Google Plugin 1.1.2.
 The error is this:

 [ERROR] Unexpected
 java.lang.NoSuchFieldError:
 reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
         at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions
 (JdtCompiler.java:208)
         at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.init
 (JdtCompiler.java:94)
         at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
 253)
         at com.google.gwt.dev.javac.CompilationState.compile
 (CompilationState.java:338)
         at com.google.gwt.dev.javac.CompilationState.refresh
 (CompilationState.java:247)
         at com.google.gwt.dev.javac.CompilationState.init
 (CompilationState.java:116)
         at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
 (ModuleDef.java:285)
         at com.google.gwt.dev.Precompile.precompile(Precompile.java:489)
         at com.google.gwt.dev.Precompile.precompile(Precompile.java:408)
         at com.google.gwt.dev.Compiler.run(Compiler.java:194)
         at com.google.gwt.dev.Compiler$1.run(Compiler.java:145)
         at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
 89)
         at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
 (CompileTaskRunner.java:83)
         at com.google.gwt.dev.Compiler.main(Compiler.java:152)

 Anyone has some ideas of the problem? I'm tring to deploy GWT
 application on Tomcat 6.0.20 directly from Eclipse.

 Thanks very much

 Best regards

--

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




How to program to set token into url without using HyperLink.

2009-04-23 Thread Henry

Hi All,

I am asking a very simple question.

As you know, when we click on Hyperlink h1 =new Hyperlink(h1,tk1);
then the URL will auto put tk1 into the URL (ex: url.com#tk1).

Can we do the same thing for Button, for example, when user clicks a
button, the it will automatically append  tk1 into the URL
(url.com#tk1), like when users click on Hyperlink?

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