Re: setUser and setPassword in RequestBuilder
I also would like to know that, neither the officil docs or javadocs makes this clear... On Thursday, February 1, 2007 9:13:46 AM UTC-2, thodu wrote: Hi, I would like to know the use of the setUser and setPassword methods in RequestBuilder. How exactly are they meant to be used? Regards, Amit -- 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/-/rTNKalr2ozgJ. 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.
How to change the panel in Activity.start()
I want to start one activity (my form) inside another (my app). I am trying to do that with the 2.1 MVP Framwork and would like to know... 1) Is it possible to configure the ActivityManager (or add place parameter) so that my FormActivity.start() receives a inner panel of my app instead of the outer one set by activityManager.setDisplay(appWidget) when the EntryPoint was loaded? 2) The documentation reads your app could create a CompositePlace, CompositeActivity, and CompositePlace.Tokenizer classes that delegate to the constituent members. Have anyone implemented that? (and would be kind enough to share) 3) Is there another way or recommended practice? Thanks, Julio -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send 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: HTML5 Offline GWT APP
The filter didn't work for me, i don't know exactly why, i am guessing that static files (such as gwt artifacts) under GAE dev have different access... On Jul 28, 4:56 am, Shawn Brown big.coffee.lo...@gmail.com wrote: Hi, The problem is finding out which files are cached and how... i don't know if there is any tool that show you that. I tried to see what would happen if a file wasn't cached by using a whitelist of things to load off the network. CACHE MANIFEST ...list of files... NETWORK: index.html myapp.nocache.js I wanted to see what I'd see in firebug when a resource wasn't cached and it wasn't available. I couldn't though as the dev server (com.google.appengine.tools.development.gwt.AppEngineLauncher ) is rewriting the cache files. If I lock the file, the server won't start and if I rewrite the file after the server starts, the server keeps rewriting it for everyrequest. There is a big difference between the linker manifest and the appengine dev server generated one, but anyway my app works fine even without many needed .js files in the manifest. That is of course until the first rpc call but that is to be expected and I'll have to get data from the database. Anyway, thanks for your help. I'll try the network whitelist when I get a minute with a real deploy. I'm curious what we'll see. Judging from the gears lists, it'll just be a html error code type thing when a server isn't available. Shawn FYI, why not a filter instead of a Servlet filter-nameOfflineManifestFilter/filter-name filter-classapp.server.OfflineManifestFilter/filter-class /filter filter-mapping filter-nameOfflineManifestFilter/filter-name url-patternapp.manifest/url-pattern /filter-mapping package app.server; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import com.allen_sauer.gwt.log.client.Log; public class OfflineManifestFilter implements Filter { @Override public void destroy() { // TODO Auto-generated method stub } @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { Log.info(request for OfflineManifest); response.setContentType(text/cache-manifest); chain.doFilter(request, response); } @Override public void init(FilterConfig arg0) throws ServletException { // TODO Auto-generated method stub } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send 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 + Web SQL
Hello, I am building a GWT app that uses Web SQL Local Storage ( http://dev.w3.org/html5/webdatabase/ ). The problem is that the Web SQL API uses callback functions as arguments. Is it possible to pass Java callbacks to JSNI? Thanks, Julio -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send 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: HTML5 Offline GWT APP
I am doing like the Google IO Linkers video: @LinkerOrder(Order.POST) public class OfflineLinker extends AbstractLinker { @Override public String getDescription() { return HTML 5 Offline Linker; } @Override public ArtifactSet link(TreeLogger logger, LinkerContext context, ArtifactSet artifacts) throws UnableToCompleteException { ArtifactSet artifactSet = new ArtifactSet(artifacts); StringBuilder buf = new StringBuilder(); buf.append(CACHE MANIFEST\nindex.html\n); buf.append(#).append(System.currentTimeMillis()).append(\n); for(EmittedArtifact artifact:artifacts.find(EmittedArtifact.class)){ if(!artifact.isPrivate()){ buf.append(artifact.getPartialPath()).append(\n); } } EmittedArtifact artifact = emitString(logger, buf.toString(), gt.manifest); //my manifest file name artifactSet.add(artifact); return artifactSet; } } I also needed this servlet (mapped to /gt.manifest) : public class ManifestServlet extends HttpServlet{ @Override protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { resp.setContentType(text/cache-manifest); RequestDispatcher disp = req.getRequestDispatcher(/gt/ gt.manifest); disp.forward(req, resp); } } It seems to be working, but debugging is not easy. On Jul 27, 6:37 am, Shawn Brown big.coffee.lo...@gmail.com wrote: Hi Julio, Thanks Arthur, the linker works perfectly. Did you use the com.google.gwt.core.ext.linker.AbstractLinker and just override the link method? If so, are we just outputting the file names to make a suitable manifest in the link method. Will this compile the project and make the manifest at the same time or is it a two step process. May I please see your linker code!?! Is there a manifest linker available someplace? I am using google plugin for eclipse and gae-java Me too and if I have any info I'll share but right now am a step or two behind you. Thanks, Shawn -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send 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: HTML5 Offline GWT APP
The problem is finding out which files are cached and how... i don't know if there is any tool that show you that. On Jul 27, 10:51 am, Shawn Brown big.coffee.lo...@gmail.com wrote: It seems to be working, but debugging is not easy. Why is that? Can't you use Firebug, the Error console in Safari or the Dev console in chrome to display logging? Sorry if it's a dumb question but ... Anyway thanks! Shawn -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send 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: HTML5 Offline GWT APP
Thanks Arthur, the linker works perfectly. I also made a servlet to add the text/cache-manifest content type and redirect to the generated manifest file. But i still can't use my app ofline. Is there any browser capable of debugging HTML5 offline cache? Know i have a error event, discovered using this script: http://jonathanstark.com/blog/2009/09/27/debugging-html-5-offline-application-cache/ But the response is coming correctly, but i don't know what i am doing wrong. Is there any deployable examples of this? I am using google plugin for eclipse and gae-java On Jul 26, 12:30 pm, Arthur Kalmenson arthur.k...@gmail.com wrote: Yeah, that's definitely possible to do. You need to use a Linker to build the manifest at the end. There was a Linkers talk at Google I/O that discussed building an HTML 5 manifest Linker:http://code.google.com/events/io/2010/sessions/gwt-linkers-webworkers You could also pull it out of the Speed Tracer source. -- Arthur Kalmenson On Fri, Jul 23, 2010 at 8:40 AM, Julio Faerman jfaer...@gmail.com wrote: Hi, I am trying to build a offline gwt app using HTML5 cache manifest and local storage, but to do that, i need to build the manifest file listing all the GWT generated files, right? Can i do this during the compile process or is it better to do this in a shell script? Thanks, Julio -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@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.
HTML5 Offline GWT APP
Hi, I am trying to build a offline gwt app using HTML5 cache manifest and local storage, but to do that, i need to build the manifest file listing all the GWT generated files, right? Can i do this during the compile process or is it better to do this in a shell script? Thanks, Julio -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send 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-contrib] Command pattern and GWT.runAsync
Hi, I am trying to split a GWT app that uses the command (action) pattern. The problem is that GWT.create(ActionService.class) causes every subclass of the return and parameter types to be included in the initial fragment. For instance, my action interface is: public interface ActionService extends RemoteService { T extends Response, V extends Request T execute(V req) throws ActionFailedException; } the problem is that module1.SomeRequest and module2.OtherRequest gets included in the initial fragment. Do you see a way around this? Thanks, Julio Faerman -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
GWT.runAsync and Command Pattern
Hi, I am trying to split a GWT app that uses the command (action) pattern. The problem is that GWT.create(ActionService.class) causes every subclass of the return and parameter types to be included in the initial fragment. For instance, my action interface is: public interface ActionService extends RemoteService { T extends Response, V extends Request T execute(V req) throws ActionFailedException; } the problem is that module1.SomeRequest and module2.OtherRequest gets included in the initial fragment. Do you see a way around this? Thanks, Julio Faerman -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send 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.runAsync and Command Pattern
Would it be possible to wrap / unwrap the request, removing the immediate inheritance or the compiler must generate the type serializers eagerly for all types ever reachable? Thanks for the advice on the interface, Frederico, i hope i can use it. In my case, code splitting is more important than commands, i wish they weren't mutually exclusive. On May 30, 11:17 am, federico federico.mona...@gmail.com wrote: hi julio, the issue you mentioned exists, anyway your ActionService interface should be: T extends Response, V extends RequestT T execute(V req) throws ActionFailedException; on the other hands it's not possible at compile time to predict wich results are connected with wich requests On 30 Mag, 16:13, federico federico.mona...@gmail.com wrote: yes also i've faced this problem and didn't find any solution i'think the previous issue it's connected with this: http://code.google.com/p/google-web-toolkit/issues/detail?id=2374can=5 On 30 Mag, 15:48, Tristan tristan.slomin...@gmail.com wrote: You might be running into this issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=4412 The compiler simply doesn't do enough analysis to do code split properly when inheritance is involved, staring the issue may help. Cheers On May 30, 7:38 am, Julio Faerman jfaer...@gmail.com wrote: Hi, I am trying to split a GWT app that uses the command (action) pattern. The problem is that GWT.create(ActionService.class) causes every subclass of the return and parameter types to be included in the initial fragment. For instance, my action interface is: public interface ActionService extends RemoteService { T extends Response, V extends Request T execute(V req) throws ActionFailedException; } the problem is that module1.SomeRequest and module2.OtherRequest gets included in the initial fragment. Do you see a way around this? Thanks, Julio Faerman -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send 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 build event hierarchy?
Hi, In my game UI i have several events, from generic to specific ( GameEvent PlayerMessageEvent PlayerVoteEvent ... ). Some widgets are interested in all events, logging all GameEvents for instance, and other are only interested specific events, showing all player votes for example. Given that event listeners must listen to a single GwtEvent.Type using the HandlerManager, what is the best way to implement such system? Should i add the same listener for all types or the HandlerEvent can handle inheritance? Thanks, Julio -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send 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 build event hierarchy?
Thanks Jeff! I wonder if it would better to implement a HandlerManager that understands event type hierarchy or add a type parameter to the event and do the if/switch in the event handler. On May 26, 11:46 am, Jeff Chimene jchim...@gmail.com wrote: Hi Julio: Events are rarely hierarchical, which is not to say that they don't have parameters. For example: getEventBus.fireEvent(new GameEvent(EVENT.QUIT)) From the perspectives of reliability, maintenance, performance, I would not add the same listener for all event types. I'm assuming that by HandlerEvent you really mean the corresponding event handler. If that's what you mean, the answer is no. Event handlers are flat; absent event parameters, they cannot manage an event hierarchy you describe. I'm wondering if what you're really wanting is AOP. GWT isn't AOP friendly (yet). On Wed, May 26, 2010 at 7:18 AM, Julio Faerman jfaer...@gmail.com wrote: Hi, In my game UI i have several events, from generic to specific ( GameEvent PlayerMessageEvent PlayerVoteEvent ... ). Some widgets are interested in all events, logging all GameEvents for instance, and other are only interested specific events, showing all player votes for example. Given that event listeners must listen to a single GwtEvent.Type using the HandlerManager, what is the best way to implement such system? Should i add the same listener for all types or the HandlerEvent can handle inheritance? Thanks, Julio -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: Grid component spacing question.
Works perfectly. Thank you kozura. On May 8, 11:17 pm, kozura koz...@gmail.com wrote: Style it with display: block;. Images by default are inline which leaves space for text footers. Yeah that makes no sense.. On May 8, 3:41 pm, Julio Faerman jfaer...@gmail.com wrote: I have a undesired white space in mygridcell between the image bottom and the cell border. This simple code shows the problem: public class MyApp implements EntryPoint { public void onModuleLoad() { Gridgrid= newGrid(1,1); Image image = new Image(); image.setUrl(http://shpyrko.files.wordpress.com/ 2007/07/31persistenceofmemory.jpg); grid.setWidget(0,0,image); grid.setBorderWidth(1); RootPanel.get().add(grid); } } Here you can see it running:http://theximp.appspot.com I wonder if this is caused by some default style... help anyone? Thanks in advance, Julio -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@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 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.
Grid component spacing question.
I have a undesired white space in my grid cell between the image bottom and the cell border. This simple code shows the problem: public class MyApp implements EntryPoint { public void onModuleLoad() { Grid grid = new Grid(1,1); Image image = new Image(); image.setUrl(http://shpyrko.files.wordpress.com/ 2007/07/31persistenceofmemory.jpg); grid.setWidget(0,0,image); grid.setBorderWidth(1); RootPanel.get().add(grid); } } Here you can see it running: http://theximp.appspot.com I wonder if this is caused by some default style... help anyone? Thanks in advance, Julio -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send 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.
Question about GWTEvent.Type
Hello, Is it possible to define event subtypes ? I would like to define a GenericEvent and a SpecificEvent so that when a SpecificEvent is fired in the HandlerManager, both generic and specific event handlers are notified. Thanks in avance for your support. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send 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.
MVP + Places
Hi, I am trying to implement the Places abstraction over the history service in my GWT MVP app. I am finding it very hard to get it working with hierarchical places ( token=/order/123/item/1 ), because i would not like to redraw the entire screen ( container.clear() ) when the place is changed to somewhere near ( token=/order/123/item/2 ), unless that is required. In the attempt of discovering what to redraw, etc, i have produced a huge amount of spaghetti code. The best code on this i have found so far is http://www.amateurinmotion.com/articles/2010/02/01/gwt-history-management-with-places.html, but it is also unclear. If anyone have been through similar issues and could share some solutions, it would be of tremendous help. Or, if someone wants to build a hierarchical mvp places library, i would be glad to help the endeavour. Best regards, Julio Faerman -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send 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.