Re: ServletOutputStream Closed while downloading xls stream in GWT
Any pointers to solve this issue would be appreciated. If my above post found to be cumbersome, here is what I am trying to do. Create an Excel sheet from the server side and display/save as in the the browser. I understand there are some restriction in sending the stream through the GWT rpc mechanism, hence I have used a plain Servlet. My problem is with the ServletOutputStream. Whatever the approach I take, it always turned out to be "Closed". I am new to GWT and do not have much experience in file download. Even though the server side log displays ServletOutputStream Closed error, the browser displays "GET" is not allowed or "POST" is not allowed (I tried both methods). Yes, I do have doGet and doPost method in the servlet. On Aug 21, 2:24 pm, vijjj wrote: > I have a simple servlet in my GWT application that creates a Excel > sheet (Using JXL library) and writes the outputstream to the response. > > But this ends up in the following exception. > > The result is same when I use Window.open/RequestBuilder and even when > I do form submit. > > I am using GWT/Apps Engine plugin for Eclipse 3.5. > > Appreciate any help towards this. > > java.io.IOException: Closed > at org.mortbay.jetty.AbstractGenerator$Output.write > (AbstractGenerator.java:595) > at com.test.server.ReportServlet.generateXLS(ReportServlet.java:147) > at com.test.server.ReportServlet.doPost(ReportServlet.java:47) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: > 487) > > Here is my come > > public class ReportServlet extends HttpServlet { > > public void generateXLS(HttpServletRequest req, HttpServletResponse > response) throws ServletException, IOException { > ByteArrayOutputStream baos = new ByteArrayOutputStream(); > WritableWorkbook workbook = Workbook.createWorkbook(baos); > WritableSheet sheet = workbook.createSheet("Leave > Report", 0); > Label idLabel = new Label(0, 0, "ID"); > sheet.addCell(idLabel); > > response.setContentType("application/vnd.ms-excel"); > response.setHeader("Expires", "0"); > response.setHeader("Cache-Control", "no-cache"); > response.setHeader("Pragma", "public"); > String fileName = "LeaveReport.xls"; > response.setHeader("Content-Disposition","attachment; > filename=\"" > + fileName +"\""); > //response.setCharacterEncoding("utf-8"); > //response.setHeader("Transfer-Encoding", "Chunked"); > > response.setContentLength(baos.size()); > //response.setBufferSize(baos.size()); > //response.flushBuffer(); > ServletOutputStream out = response.getOutputStream(); > > //DataOutputStream out = new DataOutputStream > (response.getOutputStream()); > //baos.writeTo(out); > > byte[] outs = baos.toByteArray(); > for (int i = 0; i < outs.length; i++) { > System.out.println(i); > out.write(outs[i]); > } > > out.flush(); > out.close(); --~--~-~--~~~---~--~~ You received 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: VerticalSplitPanel doesn't show widgets
Copy & Paste? 话说你这两天很活跃啊,信箱里看到一堆你的答复。。@@ From: google-web-toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of 李静 Sent: 2009年8月24日 11:29 To: google-web-toolkit@googlegroups.com Subject: Re: VerticalSplitPanel doesn't show widgets well, you sure it dosen't have compile error? see your constructor method!! 2009/8/23 google400 This is some very simple code that I'm using to try showing a VerticalSplitPanel, but the widgets I add don't show. The divider thing of VerticalSplitPanels does show however the widgets I add don't. Code: public class MyView extends Composite { private VerticalSplitPanel mainPanel=new VerticalSplitPanel(); public CountryFilterView() { mainPanel.setSize("100%", "100%"); mainPanel.setSplitPosition("50%"); // Add some content String randomText = "This is some text to show how the contents on either " + "side of the splitter flow. " + "This is some text to show how the contents on either " + "side of the splitter flow. " + "This is some text to show how the contents on either " + "side of the splitter flow. "; mainPanel.setTopWidget(new HTML(randomText)); mainPanel.setBottomWidget(new HTML(randomText)); initWidget(mainPanel); } } Am I doing something wrong, or is VerticalPanel just very annoyingly buggy? -- 李静 __ Information from ESET Smart Security, version of virus signature database 4361 (20090823) __ The message was checked by ESET Smart Security. http://www.eset.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-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: Running the GWT project on external server(tomcat) in the eclipse
thank you, Yes, creating a dynamic web project and enabling the GWT for this project will solve the issue. On Aug 24, 6:36 am, 李静 wrote: > hi, > first, you should create a dinatic web project(set runtime target null, or > maybe build error) > second, add a new GWT module (you must have GWT plugins), > third, write you code, > ok, it's time clean/build your project, > ok, run as on server. > > hope that helps you !! > > 2009/8/23 rami > > > > > Hi all, > > > I'm trying to use an external server(tomcat 6) to run the GWT project > > in the eclipse, instead of the GWT build-in server, I did a search in > > the GWT documentation, I did not find any thing to demonstrate this, > > Is there any way to do 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-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: FileNotFoundException while getting Resources from jar in WEB-INF/lib
Did you inherits the needed module to your module.gxt.xml 2009/8/24 ajaxDeveloper > > Hi, > > I my images and resource files are in the jar files which are deployed > to WEB-INF/lib folder. but when I want to access them from Servlet in > GWT I got FileNotFoundException. > > Please do help me how can I solve this issue I need urgent help. > > 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-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: [ERROR] Line 25: No source code is available for type com.google.gwt.sample.showcase.client.content.text.RichTextToolbar; did you forget to inherit a required module?
the module you need to your module.gxt.xml 2009/8/22 Prashant Gupta > Hi, > > I am trying to use RichTextArea with RichTextToobar. I have added all the > source files in > \gwt-windows-1.7.0\samples\Showcase\src\com\google\gwt\sample\showcase\client > to my source folder. Following is a snippet from my code : > > *Line 24 : *final RichTextArea content = new RichTextArea(); > *Line 25 : *final RichTextToolbar toolbar = new RichTextToolbar(content); > > Follwing is a snippet form error log : > > [ERROR] Line 25: No source code is available for type > com.google.gwt.sample.showcase.client.content.text.RichTextToolbar; did you > forget to inherit a required module? > > Where and what should I include to make my code working? > > 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: javascript in war folder not included after building war file
stylesheet src="js/ext/resources/css/ext-all.css" /> remove '/' before 'js' 2009/8/22 Frank > > Try this way: > > > > > On Jul 4, 11:35 pm, Marko Vuksanovic > wrote: > > I have copied ext-js library into war folder of my gwt project. Then I > > have included it in my project.gwt.xml file as follows: > > > > > > > > > > > > > > > > > > > > > > after building the project, using the ant script that was created by > > the gwt sdk command line tool, the ext folder is not included in the > > \js\ folder (nor in the ). > > > > There is also one more problem that I encountered - When I deploy the > > war file onto a server- when I typehttp://localhost:8080/project > > (which is the name of the war file as well as the gwt project itself) > > the application looks for the javascript files > athttp://localhost:8080/js/ext.. > > and it should be looking for them athttp://localhost:8080/project/js/ext. > > > > Any help on this issue would be greatly appreciated. > > > > -- 李静 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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 -~--~~~~--~~--~--~---
Can GWT complier compile enum type of annotation?
I want to use annotation as following: === public @interface AnnotationTest { public enum Type{OTM}; long test() default 1; Type type() Type.OTM; } === public class Model implements IsSerializable { @AnnotationTest() long test; } == It works fine in host model,But when I try to compile into js,got this error, = [ERROR] The type com.ts.gwttest.server.AnnotationTest$Type cannot be resolved. It is indirectly referenced from required .class files [ERROR] An internal compiler exception occurred com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:75) at com.google.gwt.dev.jjs.impl.BuildTypeMap$BuildDeclMapVisitor.createField(BuildTypeMap.java:353) at com.google.gwt.dev.jjs.impl.BuildTypeMap$BuildDeclMapVisitor.visit(BuildTypeMap.java:283) at org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.traverse(FieldDeclaration.java:285) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1230) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:687) at com.google.gwt.dev.jjs.impl.BuildTypeMap.createPeersForNonTypeDecls(BuildTypeMap.java:937) at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:927) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:273) at com.google.gwt.dev.Precompile.precompile(Precompile.java:300) at com.google.gwt.dev.Compiler.run(Compiler.java:170) at com.google.gwt.dev.HostedMode.compile(HostedMode.java:286) at com.google.gwt.dev.HostedModeBase$BrowserWidgetHostImpl.compile(HostedModeBase.java:191) at com.google.gwt.dev.shell.BrowserWidget$Toolbar.widgetSelected(BrowserWidget.java:146) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3166) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2842) at com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:235) at com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:558) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) [ERROR] : (id=NoId) public interface com.allen_sauer.gwt.log.client.LogMessageFormatter extends java.lang.Object /* methods */ public abstract java.lang.String format(java.lang.String, java.lang.String) = If eliminating "public enum Type{OTM}",it works,So doesn't GWT compile support enum type in annotation? --~--~-~--~~~---~--~~ You received 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: How can I get Image from ImageBundle by String?
hi, maybe you can use Reflection ; just like: Class target = ICONS.getClass(); Method m = target.getMethod(methodName, String.class); m.invoke(ICONS, parameters...); 2009/8/23 barclay allen > > I have an image bundle setup. > > public static final MyIcons ICONS = GWT.create(MyIcons.class); > > I can get the image with this. > ICONS.smiley_face().createImage() > > > How can I dynamically get the smiley_face image by passing a string > "smiley_face"? > > > -- 李静 --~--~-~--~~~---~--~~ You received 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: Hide pannel
mybe you can try gxt, see the demos on the http://extjs.com website 2009/8/23 rasp > > Hi all! > How can I create some hide-panel, like this: > > http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=google-web-toolkit-incubator > 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: Career suggestion needed
hi, i do think the GWT is the both side, without GWT, the client programer should be good at js,css , what i am not so good at. so, the GWT helps me. we only need to write javas. on the client side, we use GWT, and on the server side, we can import some other frameworks such as spring, hibernate. i don't think it's hard for our java programer.. it's my personal thought!! 2009/8/24 venki > > Hi all.. > > I have been working on GWT for last 6 months. Any way i hope i am > doing well . I am aware of Gwt related projects such as > SmartGwt,GwtIncubator, GWT-widgets library like that. I got confidence > on my self that i can deserve GWT.I will keep update GWT knowledge.In > order to build my career path for long time i need your suggestions. > > GWT is client side so i am in confused state whether i have to focus > on only client side technologies or server side technologies also. Any > way let me know your suggestions. > > 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-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: VerticalSplitPanel doesn't show widgets
well, you sure it dosen't have compile error? see your constructor method!! 2009/8/23 google400 > > This is some very simple code that I'm using to try showing a > VerticalSplitPanel, but the widgets I add don't show. The divider > thing of VerticalSplitPanels does show however the widgets I add > don't. > > Code: > >public class MyView extends Composite >{ >private VerticalSplitPanel mainPanel=new VerticalSplitPanel(); > >public CountryFilterView() >{ > >mainPanel.setSize("100%", "100%"); >mainPanel.setSplitPosition("50%"); >// Add some content >String randomText = "This is some text to show how the > contents on either " >+ "side of the splitter flow. " >+ "This is some text to show how the contents on either " >+ "side of the splitter flow. " >+ "This is some text to show how the contents on either " >+ "side of the splitter flow. "; >mainPanel.setTopWidget(new HTML(randomText)); >mainPanel.setBottomWidget(new HTML(randomText)); >initWidget(mainPanel); >} >} > > Am I doing something wrong, or is VerticalPanel just very annoyingly > buggy? > > > > -- 李静 --~--~-~--~~~---~--~~ You received 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: Running the GWT project on external server(tomcat) in the eclipse
hi, first, you should create a dinatic web project(set runtime target null, or maybe build error) second, add a new GWT module (you must have GWT plugins), third, write you code, ok, it's time clean/build your project, ok, run as on server. hope that helps you !! 2009/8/23 rami > > Hi all, > > I'm trying to use an external server(tomcat 6) to run the GWT project > in the eclipse, instead of the GWT build-in server, I did a search in > the GWT documentation, I did not find any thing to demonstrate this, > Is there any way to do 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-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: 求助,无法在eclipse3.5中导入samples里的项目
貌似这个话题两个版本,还有个英文的,刚才先看到英文的,搞了半天回复了,结果发现下一个邮件就是中文版的。 郁闷掉了!!! 2009/8/24 陈金元 > 新建的时候选择从目录新建就可以了。。。不需要拷代码的。。。 > 话说这个论坛居然有人用中文问问题。。?我当时问的时候累死累活翻成英文的。 > > -- > Date: Mon, 24 Aug 2009 10:55:46 +0800 > Subject: Re: 求助,无法在eclipse3.5中导入samples里的项目 > From: lijing0...@gmail.com > To: google-web-toolkit@googlegroups.com > > 你好: > samples 里面没有eclipse项目文件,你可以在eclipse里新建一个项目,把samples里的代码拷过去就行了!! > > 2009/8/24 holeo > > 我在eclipse3.5中,安装有google eclipse 3.5 plug-ins. > 使用 File -> Import... -> Existing Projects into Workspace 但无法导入gwt1.7里面的 > samples里的项目.提示:No projects are found to import. > 怎么解决这个问题呢? > > > > > -- > 李静 > > > > -- 李静 --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
FileNotFoundException while getting Resources from jar in WEB-INF/lib
Hi, I my images and resource files are in the jar files which are deployed to WEB-INF/lib folder. but when I want to access them from Servlet in GWT I got FileNotFoundException. Please do help me how can I solve this issue I need urgent help. 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-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: 求助,无法在eclipse3.5中导入samples里的项目
新建的时候选择从目录新建就可以了。。。不需要拷代码的。。。 话说这个论坛居然有人用中文问问题。。?我当时问的时候累死累活翻成英文的。 Date: Mon, 24 Aug 2009 10:55:46 +0800 Subject: Re: 求助,无法在eclipse3.5中导入samples里的项目 From: lijing0...@gmail.com To: google-web-toolkit@googlegroups.com 你好: samples 里面没有eclipse项目文件,你可以在eclipse里新建一个项目,把samples里的代码拷过去就行了!! 2009/8/24 holeo 我在eclipse3.5中,安装有google eclipse 3.5 plug-ins. 使用 File -> Import... -> Existing Projects into Workspace 但无法导入gwt1.7里面的 samples里的项目.提示:No projects are found to import. 怎么解决这个问题呢? -- 李静 _ 张三挖到了元宝,小美又掉进陷阱了,快来MClub与好友齐乐乐!立刻访问! http://club.msn.cn/?from=3 --~--~-~--~~~---~--~~ You received 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: MVP/GWT question
Hmm. Okay, and since my case has a complex row (not just String/ ClickHandler -- but a whole Presenter/Display for an Object that has multiple/complex details. So...: class MainPresenter { interface Display { // easy stuff void clearEmails(); void addEmail(EmailDetails email); } } Then: class EmailPresenter { interface Display { HasText getSubjectLabel(); HasText getBodyLabel(); HasClickHandlers getReplyButton(); // etc... } ... } So, do I just have a bad design idea here? I don't want my MainPresenter.Display implementation instantiating EmailPresenters... How about changing MainPresenter { interface Display { ... void clear(); void addEmailPresenter(EmailPresenter email); } } Then the Display picks the Displays for the sub-Presenters... Yeah, this is making some sense now. Does this sound about right to others? Thanks for the help! -nathan On Aug 23, 9:53 pm, Ian Bambury wrote: > Hi Nathan, > I think all you need is a clear() and an addLine(String text). > > The presenter clears the display and loops through the headers adding lines > as it goes. If you need to respond to clicks, then add a click handler > parameter to the addLine method. > > Or am I missing something here? > > Ian > > http://examples.roughian.com > > 2009/8/24 Nathan > > > > > Hello everyone. > > > I watched Ray's talk, and have been reworking my project to follow > > many of his suggestions/standards, and have been quite happy with the > > results. Today, however, I ran into a small problem. I am making a > > website that has a layout fairly similar to an email program -- that > > is, there are a variety of buttons/widgets/whatever in the interface, > > plus a set of some number of rows in a table, essentially. (Email > > header info, basically?). Here's the Presenter/Display idea: > > class ExampleEmailPresenter { > > interface Display { > > HasClickHandlers getComposeNewEmailButton(); > > ... various other buttons > > > HasValue getSearchEmailField(); > > ... etc -- all this makes sense to me, and I've done it on my > > less complex pages and it works > > > // Now, how do you handle the display of a set of emails? > > // ArrayList getEmailDisplays > > () // ? > > // HasListOfValue getEmailOverviewList(); // a > > new Has* idea? > > // Something I'm not thinking of? (this is what I'm assming) > > } > > > ArrayList emails; > > // Then register on the EventBus to receive alerts when the email > > list is updated, and call: > > public emailListUpdated() { > > // This would be code to connect up the Email list Displays to > > the emails. > > } > > } > > > Basically, I can think of a few ways that I could connect them up, > > but every way I think of feels like a hack, like I'm missing the > > really smooth, clean way to have a list of something. I mean, even if > > it's just an unknown number of Strings you want in your display... > > How does one Presenter's Display have a set of child displays (even if > > they are jut HasText's or something simple) without crossing borders, > > or having a lot of ugly maintenence code? Any examples or suggestions > > out there? Basically, what I'd like to see is what structure you put > > in the Display, what structure you put in the Presenter, and what > > logic would go into the "The Data Was Updated" function... Even just > > a description of what you'd do is fine, this entire Email example is > > made up for discussion anyway, I'm just looking for help with > > understanding the design paradigm. > > > Thanks in advance, > > > -nathan --~--~-~--~~~---~--~~ You received 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: CSS is dissapear when deployed on Tomcat 5?
I think I found the problem: I have to associate the CSS in both the module XML file and host HTML page: MyApp.gwt.xml MyApp.html I thought we should associate the CSS in one of the files :-( On Mon, Aug 24, 2009 at 12:56 AM, hezjing wrote: > Hi > My GWT 1.7 application is working fine when tested in hosted mode and in > the compiled version. > The CSS is associated in the module XML file. > > The problem is when I deployed the application in Tomcat 5 on the hosting > server, the CSS are all stripped off, > and there seems to be no CSS at all?! > > AFAK, the only difference between my environment and the hosting server is > the web server: Jetty and Tomcat 5. > > Do you think this is the problem? > > Where should I start tackle this problem? > > > Appreciate your help, thank you! > > > -- > > Hez > -- Hez --~--~-~--~~~---~--~~ You received 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: 求助,无法在eclipse3.5中导入samples里的项目
你好: samples 里面没有eclipse项目文件,你可以在eclipse里新建一个项目,把samples里的代码拷过去就行了!! 2009/8/24 holeo > 我在eclipse3.5中,安装有google eclipse 3.5 plug-ins. > 使用 File -> Import... -> Existing Projects into Workspace 但无法导入gwt1.7里面的 > samples里的项目.提示:No projects are found to import. > 怎么解决这个问题呢? > > > -- 李静 --~--~-~--~~~---~--~~ You received 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 1.7 Now Available
hi, the samples projects don't have eclipse files in them. maybe you can create a new project and copy the src files. hope that helps you! 2009/8/24 holeo > > In eclipse3.5 and Google eclipse 3.5 plug-ins, > Use "File -> Import... -> Existing Projects into Workspace" > I can't import GWT1.7 /samples project. ! "No projects are found to > import." > > help help!! > > On Jul 23, 6:54 am, Bruce Johnson wrote: > > Hi everyone, > > > > (Most people are probably already quite aware of the new GWT 1.7 release, > > but we wanted to send out an "official" announcement we could pin to the > top > > of the message list.) > > > > GWT 1.7 is a minor update that adds better support for Internet Explorer > 8, > > Firefox 3.5, and Safari 4. Each of these new browser versions introduced > at > > least one change that negatively impacted compiled GWT modules, so we > > recommend that you do update to GWT 1.7 and recompile your existing > > applications to ensure that they work with the latest versions of > browsers. > > No source code changes on your part should be required. > > > > Normally, a minor update such as this would have been named 1.6.5 (the > > previous latest version of GWT was 1.6.4), but we did add the value "ie8" > to > > the "user.agent" deferred binding property, which could impact projects > > using custom deferred binding rules that are sensitive to that property. > > Thus, we went withGWT 1.7 rather than GWT 1.6.5, to indicate that you may > > need to pay attention to that change. Details are in the release notes. > > > > In every other respect, this is just a bugfix release, so in the vast > > majority of cases, the update-recompile process should be nearly > effortless. > > > > Download here: > http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=GW... > > > > Cheers, > > Bruce, on behalf of your friendly GWT Team > > > > -- Lij --~--~-~--~~~---~--~~ You received 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: MVP/GWT question
Hi Nathan, I think all you need is a clear() and an addLine(String text). The presenter clears the display and loops through the headers adding lines as it goes. If you need to respond to clicks, then add a click handler parameter to the addLine method. Or am I missing something here? Ian http://examples.roughian.com 2009/8/24 Nathan > > Hello everyone. > > I watched Ray's talk, and have been reworking my project to follow > many of his suggestions/standards, and have been quite happy with the > results. Today, however, I ran into a small problem. I am making a > website that has a layout fairly similar to an email program -- that > is, there are a variety of buttons/widgets/whatever in the interface, > plus a set of some number of rows in a table, essentially. (Email > header info, basically?). Here's the Presenter/Display idea: > class ExampleEmailPresenter { >interface Display { > HasClickHandlers getComposeNewEmailButton(); > ... various other buttons > > HasValue getSearchEmailField(); > ... etc -- all this makes sense to me, and I've done it on my > less complex pages and it works > > // Now, how do you handle the display of a set of emails? > // ArrayList getEmailDisplays > () // ? > // HasListOfValue getEmailOverviewList(); // a > new Has* idea? > // Something I'm not thinking of? (this is what I'm assming) >} > >ArrayList emails; >// Then register on the EventBus to receive alerts when the email > list is updated, and call: >public emailListUpdated() { > // This would be code to connect up the Email list Displays to > the emails. >} > } > > Basically, I can think of a few ways that I could connect them up, > but every way I think of feels like a hack, like I'm missing the > really smooth, clean way to have a list of something. I mean, even if > it's just an unknown number of Strings you want in your display... > How does one Presenter's Display have a set of child displays (even if > they are jut HasText's or something simple) without crossing borders, > or having a lot of ugly maintenence code? Any examples or suggestions > out there? Basically, what I'd like to see is what structure you put > in the Display, what structure you put in the Presenter, and what > logic would go into the "The Data Was Updated" function... Even just > a description of what you'd do is fine, this entire Email example is > made up for discussion anyway, I'm just looking for help with > understanding the design paradigm. > > Thanks in advance, > > -nathan > > > --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
MVP/GWT question
Hello everyone. I watched Ray's talk, and have been reworking my project to follow many of his suggestions/standards, and have been quite happy with the results. Today, however, I ran into a small problem. I am making a website that has a layout fairly similar to an email program -- that is, there are a variety of buttons/widgets/whatever in the interface, plus a set of some number of rows in a table, essentially. (Email header info, basically?). Here's the Presenter/Display idea: class ExampleEmailPresenter { interface Display { HasClickHandlers getComposeNewEmailButton(); ... various other buttons HasValue getSearchEmailField(); ... etc -- all this makes sense to me, and I've done it on my less complex pages and it works // Now, how do you handle the display of a set of emails? // ArrayList getEmailDisplays () // ? // HasListOfValue getEmailOverviewList(); // a new Has* idea? // Something I'm not thinking of? (this is what I'm assming) } ArrayList emails; // Then register on the EventBus to receive alerts when the email list is updated, and call: public emailListUpdated() { // This would be code to connect up the Email list Displays to the emails. } } Basically, I can think of a few ways that I could connect them up, but every way I think of feels like a hack, like I'm missing the really smooth, clean way to have a list of something. I mean, even if it's just an unknown number of Strings you want in your display... How does one Presenter's Display have a set of child displays (even if they are jut HasText's or something simple) without crossing borders, or having a lot of ugly maintenence code? Any examples or suggestions out there? Basically, what I'd like to see is what structure you put in the Display, what structure you put in the Presenter, and what logic would go into the "The Data Was Updated" function... Even just a description of what you'd do is fine, this entire Email example is made up for discussion anyway, I'm just looking for help with understanding the design paradigm. Thanks in advance, -nathan --~--~-~--~~~---~--~~ You received 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: Gin + JSNI
On Sun, Aug 23, 2009 at 4:32 PM, Thomas Broyer wrote: > > > > On 24 août, 00:53, Jeff Chimene wrote: >> On Wed, Aug 19, 2009 at 1:52 PM, Thomas Broyer wrote: >> >> > On 19 août, 16:13, Jeff Chimene wrote: >> >> On Wed, Aug 19, 2009 at 1:30 AM, Thomas Broyer wrote: >> >> >> > Why not use a provider method? (I supposed you had reusable classes, >> >> > that's why I proposed a Provider subclass, but provider methods >> >> > work very well with a shorter code) >> >> >> I don't understand. Isn't this a provider method? >> >> > I was talking about @Provides methods: >> >http://code.google.com/docreader/#p=google-guice&t=ProvidesMethods >> >> I'm probably missing something, but it's not clear that @Provides is >> available in gin.http://code.google.com/p/google-gin/wiki/GuiceCompatibility > > It is (listed under the name "Provider method bindings"); and given > that I successfully use it I can confirm it works ;-) Good. Thanks for clarifiying that. > @Provides > public HandlerManager providesEventBus() { > return new HandlerManager(null); > } > > (I didn't understand a single word from the rest of your message, > sorry ;-) ) That's OK. The gist is that it seems I can inject a JavaScript Overlay object into a class, and GWT Does The Right Thing. I haven't had to rely on the get() method from the Provider class. Perhaps that's obvious to a seasoned user of this technology. --~--~-~--~~~---~--~~ You received 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: Gin + JSNI
On 24 août, 00:53, Jeff Chimene wrote: > On Wed, Aug 19, 2009 at 1:52 PM, Thomas Broyer wrote: > > > On 19 août, 16:13, Jeff Chimene wrote: > >> On Wed, Aug 19, 2009 at 1:30 AM, Thomas Broyer wrote: > > >> > Why not use a provider method? (I supposed you had reusable classes, > >> > that's why I proposed a Provider subclass, but provider methods > >> > work very well with a shorter code) > > >> I don't understand. Isn't this a provider method? > > > I was talking about @Provides methods: > >http://code.google.com/docreader/#p=google-guice&t=ProvidesMethods > > I'm probably missing something, but it's not clear that @Provides is > available in gin.http://code.google.com/p/google-gin/wiki/GuiceCompatibility It is (listed under the name "Provider method bindings"); and given that I successfully use it I can confirm it works ;-) @Provides public HandlerManager providesEventBus() { return new HandlerManager(null); } (I didn't understand a single word from the rest of your message, sorry ;-) ) --~--~-~--~~~---~--~~ You received 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 1.7 Now Available
In eclipse3.5 and Google eclipse 3.5 plug-ins, Use "File -> Import... -> Existing Projects into Workspace" I can't import GWT1.7 /samples project. ! "No projects are found to import." help help!! On Jul 23, 6:54 am, Bruce Johnson wrote: > Hi everyone, > > (Most people are probably already quite aware of the new GWT 1.7 release, > but we wanted to send out an "official" announcement we could pin to the top > of the message list.) > > GWT 1.7 is a minor update that adds better support for Internet Explorer 8, > Firefox 3.5, and Safari 4. Each of these new browser versions introduced at > least one change that negatively impacted compiled GWT modules, so we > recommend that you do update to GWT 1.7 and recompile your existing > applications to ensure that they work with the latest versions of browsers. > No source code changes on your part should be required. > > Normally, a minor update such as this would have been named 1.6.5 (the > previous latest version of GWT was 1.6.4), but we did add the value "ie8" to > the "user.agent" deferred binding property, which could impact projects > using custom deferred binding rules that are sensitive to that property. > Thus, we went withGWT 1.7 rather than GWT 1.6.5, to indicate that you may > need to pay attention to that change. Details are in the release notes. > > In every other respect, this is just a bugfix release, so in the vast > majority of cases, the update-recompile process should be nearly effortless. > > Download > here:http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=GW... > > Cheers, > Bruce, on behalf of your friendly GWT Team --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
求助,无法在eclipse3.5中导入samples里的项目
我在eclipse3.5中,安装有google eclipse 3.5 plug-ins. 使用 File -> Import... -> Existing Projects into Workspace 但无法导入gwt1.7里面的 samples里的项目.提示:No projects are found to import. 怎么解决这个问题呢? --~--~-~--~~~---~--~~ You received 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: Gin + JSNI
On Wed, Aug 19, 2009 at 1:52 PM, Thomas Broyer wrote: > > > On 19 août, 16:13, Jeff Chimene wrote: >> On Wed, Aug 19, 2009 at 1:30 AM, Thomas Broyer wrote: >> >> > Why not use a provider method? (I supposed you had reusable classes, >> > that's why I proposed a Provider subclass, but provider methods >> > work very well with a shorter code) >> >> I don't understand. Isn't this a provider method? > > I was talking about @Provides methods: > http://code.google.com/docreader/#p=google-guice&t=ProvidesMethods I'm probably missing something, but it's not clear that @Provides is available in gin. http://code.google.com/p/google-gin/wiki/GuiceCompatibility >> I think I understand your question above about why I didn't use a >> Provider (although I'm pretty sure I did..). >> Are you looking for something like: >> >> MainWidget(Provider server){} >> >> If so, I could not get that to work. What seems to happen is that a >> new Server instance gets generated. (I don't really know, I did not >> examine the generated JavaScript) > > What I said was that your provider builds an object when constructed > and always returns that very same instance from get(), so in essence > it returns a "singleton value". This is IMO better handled using > singleton scope and get() returning a new instance each time (though I > have not tested that it works). > Of course, if your class is being injected a Provider server, > it would return a new instance each time get() is called, but that's > what you would expect from a Provider I guess... There are some other subtle points in this JavaScript overlay instantiation. I may have posted originally when the JSNI class had methods declared as "public static native" instead of "public final native" The prior declaration forces a new class each time. As far as I can tell, when declared correctly (correct as in producing a singleton), JavaScript overlays are effectively singletons; such objects reference the "$wnd.object" (i.e $wnd.server). There is only one such object; which materializes each time when using the class name. It doesn't seem necessary to use the get() method for these JavaScript Overlay classes. I think this is demonstrated in the following snippet. Notice that the snippet does not call the equivalent of "getCustomer()" as demonstrated in the GWT JavaScript Overlay documentation. @Inject public MainWidget(Server server) { this.server = server; GWT.log("1. Server: "+server.toSource(),null); server.setId("001"); GWT.log("2. Server: "+server.toSource(),null); } The upshot is that I'm not sure what bind().in(singleton) would achieve (besides clarity). I'll have to try that at some point. --~--~-~--~~~---~--~~ You received 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: how to customize brows window (i want to show only specific file formats to select)
On 22 août, 08:41, Rishi wrote: > i am new to GWT, i am creating a file upload web application, could > you suggest me how i can customize the browse window, i want to show > only specific file formats(type) to upload. HTML defines an accept="" attribute where you'd list the media types acceted by the server: http://www.w3.org/TR/html4/interact/forms.html#adef-accept Most (if not all?) browsers ignore that attribute however, so there's no real reason for GWT to give easy access to it in the FileUpload widget... You can still try fileUpload.getElement().cast ().setAccept("image/jpeg, image/png,image/gif") and see what happens... Your only other option is to use a plug-in: applet, Flash, Sliverlight, BrowserPlus, Google Gears... --~--~-~--~~~---~--~~ You received 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: When run jsp in GWT 1.7, error occurred "Syntax error, parameterized types are only available if source level is 1.5"
Are you using maven? If so check your POM for the compiler settings for the maven-compiler-plugin to make sure the java version is set to 1.5 or above. If not then there must be some equivalent setting that governs the java-version compatibility of the GWT java-to-js compiler On Aug 23, 10:45 am, betterdanielding wrote: > When I'am running jsp in GWT 1.7, the error occurred: > > "Syntax error, parameterized types are only available if source level > is 1.5" > > I have set the servlet parameters in "web.xml" and set the Eclipse > project JRE level, but it doesn't work. > > Can any one help? > > 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: Gin + JSNI
On 19 août, 16:13, Jeff Chimene wrote: > On Wed, Aug 19, 2009 at 1:30 AM, Thomas Broyer wrote: > > > Why not use a provider method? (I supposed you had reusable classes, > > that's why I proposed a Provider subclass, but provider methods > > work very well with a shorter code) > > I don't understand. Isn't this a provider method? I was talking about @Provides methods: http://code.google.com/docreader/#p=google-guice&t=ProvidesMethods > > No need for @Inject on a zeo-arg ctor. > > This is a subtle point. So when does one decorate constructors? I had > hoped that the declarations in AppModule would be sufficent. It seems > that declarations are sufficent and necessary, but the decoration is > only sufficient? > > > > > > > > >> this.server = getEmptyServer(); > >> } > > >> �...@override > >> public Server get() { > >> return server; > >> } > > >> public final native Server getEmptyServer() /*-{ > >> var JSONObject = '{"server" : {"id" : ""'}'; > >> return eval('('+JSONObject+')'); > >> }-*/; > > >> } > > > Why didn't you write: > > > public native Server get() /*-{ > > return {"server": { "id": "" } }; > > }-*/; > > The JSONObject is actually a much longer string. I truncated it for > the purposes of this email. > > > (note that a) get() is native/JSNI, b) there's nothing done at > > construction time, a singleton scope would do it well given that you > > don't get injected a Provider but a Server and c) there's no > > need to parse JSON, just use the JS literal object notation) > > I think I understand your question above about why I didn't use a > Provider (although I'm pretty sure I did..). > Are you looking for something like: > > MainWidget(Provider server){} > > If so, I could not get that to work. What seems to happen is that a > new Server instance gets generated. (I don't really know, I did not > examine the generated JavaScript) What I said was that your provider builds an object when constructed and always returns that very same instance from get(), so in essence it returns a "singleton value". This is IMO better handled using singleton scope and get() returning a new instance each time (though I have not tested that it works). Of course, if your class is being injected a Provider server, it would return a new instance each time get() is called, but that's what you would expect from a Provider I guess... --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Java JSON
I like JSON very much. It would be great to extend Java syntax to add JSON syntax to Java 8 or Java 10 then we would get JSON in GWT :) I do not like to write code like Map> map = new HashMap(){{ put("key1", new HashMap(){{ put("key1_1", "value"); }}); }}; Following code looks much clear. JSONObject o1 = { "key1" : { "key1_1" : "value" }}; I need such complex data structure in GWT app and I regret that I am not able to use short JavaScript syntax in java code that would be compiled to JavaScript. --~--~-~--~~~---~--~~ You received 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: Server Side: Writting a File on Disk
You have to put this code in the *.server sub-package of your project. The GWT complier has got nothing to do with the server side code. On 23 Aug, 04:39, Robert Lang wrote: > Hello, > > I need to write a file on server's disk, but FileOutputStream, FileWriter, > etc, but isn't supported with GWT Compiller... How I do this? > > A File need to write in specific folder/partition, independent of app > deployed on web server, for storage specific file formats. > > Best Regards, > > Robert Mauro Lang --~--~-~--~~~---~--~~ You received 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: VerticalSplitPanel doesn't show widgets
Excluding constructor signature (that's wrong, it must have the same name as his class), it works. Ale. -- From: "google400" Sent: Sunday, August 23, 2009 4:47 PM To: "Google Web Toolkit" Subject: VerticalSplitPanel doesn't show widgets > > This is some very simple code that I'm using to try showing a > VerticalSplitPanel, but the widgets I add don't show. The divider > thing of VerticalSplitPanels does show however the widgets I add > don't. > > Code: > >public class MyView extends Composite >{ >private VerticalSplitPanel mainPanel=new VerticalSplitPanel(); > >public CountryFilterView() >{ > >mainPanel.setSize("100%", "100%"); >mainPanel.setSplitPosition("50%"); >// Add some content >String randomText = "This is some text to show how the > contents on either " >+ "side of the splitter flow. " >+ "This is some text to show how the contents on either " >+ "side of the splitter flow. " >+ "This is some text to show how the contents on either " >+ "side of the splitter flow. "; >mainPanel.setTopWidget(new HTML(randomText)); >mainPanel.setBottomWidget(new HTML(randomText)); >initWidget(mainPanel); >} >} > > Am I doing something wrong, or is VerticalPanel just very annoyingly > buggy? > > > --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Server Side: Writting a File on Disk
Hello, I need to write a file on server's disk, but FileOutputStream, FileWriter, etc, but isn't supported with GWT Compiller... How I do this? A File need to write in specific folder/partition, independent of app deployed on web server, for storage specific file formats. Best Regards, Robert Mauro Lang --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
When run jsp in GWT 1.7, error occurred "Syntax error, parameterized types are only available if source level is 1.5"
When I'am running jsp in GWT 1.7, the error occurred: "Syntax error, parameterized types are only available if source level is 1.5" I have set the servlet parameters in "web.xml" and set the Eclipse project JRE level, but it doesn't work. Can any one help? 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 -~--~~~~--~~--~--~---
Running the GWT project on external server(tomcat) in the eclipse
Hi all, I'm trying to use an external server(tomcat 6) to run the GWT project in the eclipse, instead of the GWT build-in server, I did a search in the GWT documentation, I did not find any thing to demonstrate this, Is there any way to do 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-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 -~--~~~~--~~--~--~---
VerticalSplitPanel doesn't show widgets
This is some very simple code that I'm using to try showing a VerticalSplitPanel, but the widgets I add don't show. The divider thing of VerticalSplitPanels does show however the widgets I add don't. Code: public class MyView extends Composite { private VerticalSplitPanel mainPanel=new VerticalSplitPanel(); public CountryFilterView() { mainPanel.setSize("100%", "100%"); mainPanel.setSplitPosition("50%"); // Add some content String randomText = "This is some text to show how the contents on either " + "side of the splitter flow. " + "This is some text to show how the contents on either " + "side of the splitter flow. " + "This is some text to show how the contents on either " + "side of the splitter flow. "; mainPanel.setTopWidget(new HTML(randomText)); mainPanel.setBottomWidget(new HTML(randomText)); initWidget(mainPanel); } } Am I doing something wrong, or is VerticalPanel just very annoyingly buggy? --~--~-~--~~~---~--~~ You received 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: Career suggestion needed
What do you think about EJB 3? Regards -- From: "venki" Sent: Sunday, August 23, 2009 7:25 PM To: "Google Web Toolkit" Subject: Career suggestion needed > > Hi all.. > > I have been working on GWT for last 6 months. Any way i hope i am > doing well . I am aware of Gwt related projects such as > SmartGwt,GwtIncubator, GWT-widgets library like that. I got confidence > on my self that i can deserve GWT.I will keep update GWT knowledge.In > order to build my career path for long time i need your suggestions. > > GWT is client side so i am in confused state whether i have to focus > on only client side technologies or server side technologies also. Any > way let me know your suggestions. > > 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-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 -~--~~~~--~~--~--~---
Career suggestion needed
Hi all.. I have been working on GWT for last 6 months. Any way i hope i am doing well . I am aware of Gwt related projects such as SmartGwt,GwtIncubator, GWT-widgets library like that. I got confidence on my self that i can deserve GWT.I will keep update GWT knowledge.In order to build my career path for long time i need your suggestions. GWT is client side so i am in confused state whether i have to focus on only client side technologies or server side technologies also. Any way let me know your suggestions. 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-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: History question
Thanks for the reply. I am trying to learn GWT history and thought that engineers of that website are using some other approach in production rather than using what is discussed in tutorials. I'll carry on now with tutorial examples. Thanks, Tornike On Aug 23, 9:45 am, Jan Ehrhardt wrote: > If you select one of the libraries, listed there, you will come to the wiki, > where you'll find URLs with '#'. It's the only save way to get history > behaviour in an GWT app. You can try others, but they won't work so smooth. > I think, the reason, why there are URLs without '#', is, that the page isn't > a GWT app. It's a plain webpage with maybe a little script on one or another > page. > > Regards > Jan Ehrhardt > > > > On Sat, Aug 22, 2009 at 7:09 PM, MamboJumbo wrote: > > > Does anyone know how GWT history is maintained in > >http://code.google.com/p/gwt-google-apis > > website? There are no # signs in the URLs of the pages. Is there any > > other way to implement history other than explained in GWT tutorials? > > (like this onehttp://gwttutorials.com/2009/08/06/gwt-history/#more-215) > > Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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: Hide pannel
I too require the solution for this question. But i used HorizantleSplit panel in order to achieve some what... On Aug 22, 10:23 am, rasp wrote: > Hi all! > How can I create some hide-panel, like > this:http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=go... > 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 -~--~~~~--~~--~--~---
CSS is dissapear when deployed on Tomcat 5?
Hi My GWT 1.7 application is working fine when tested in hosted mode and in the compiled version. The CSS is associated in the module XML file. The problem is when I deployed the application in Tomcat 5 on the hosting server, the CSS are all stripped off, and there seems to be no CSS at all?! AFAK, the only difference between my environment and the hosting server is the web server: Jetty and Tomcat 5. Do you think this is the problem? Where should I start tackle this problem? Appreciate your help, thank you! -- Hez --~--~-~--~~~---~--~~ You received 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: Why do we define AsyncCallbacks inline?
BTW, the terminology you are looking for is that the "inline" inner class as you put is called an anonymous inner class while the inner class that is defined on its own (not at the point of a method call) but still inside the outer class is usually just called an inner class but named inner class would also work too. Both of these have been available as in Java from the very beginning. As for why, it is just a matter of taste. It's sometimes a bit more concise to just define an anonymous inner class inline, particularly if the inner class code needs access to variables defined in the calling method. With an anonymous inner class you just have to define the variables or parameters as final and they can be access in the code of the inner class. With a named inner class you have to define extra member variable on the inner class to hold those variables and probably a constructor that accepts them. If you find that it results in a ton of code inside the inner class that all indented, you could just move all that code into a method on the outer class. The code in the inner class can access methods and methods of the outer class. You can even reference methods and methods of the outer class that have the same name as something in the inner class by using the syntax: MyOuter.this.outerMethodCall(). --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
How can I get Image from ImageBundle by String?
I have an image bundle setup. public static final MyIcons ICONS = GWT.create(MyIcons.class); I can get the image with this. ICONS.smiley_face().createImage() How can I dynamically get the smiley_face image by passing a string "smiley_face"? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
double click selection listener for just one word on a label with text
Hello, I have a text in a label widget (can change it) and i would like to make the following thing happen: when i double click any word in the text , the text will be highlighted. I have a lookup dictionary function, and i want to send the word to that function to get the translation. However i wont send the full text that widget has, only the selected word. I couldnt figure out how to do this with listeners. Any help will be appreciated Thanks in advance S. Can AYDOGDU --~--~-~--~~~---~--~~ You received 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: Why do we define AsyncCallbacks inline?
Sorry for that rather pointless post - for some reason most of the replies (even the hour-old ones) didn't come through until the few minutes while I wrote that. Damn computers... Ian http://examples.roughian.com 2009/8/23 Ian Bambury > They're examples. Clue's in the question :-) > In real life you'd probably want to use an inner class e.g. > > public class Example implements EntryPoint > { > @Override > public void onModuleLoad() > { > } > > class X implements AsyncCallback > { > } > } > > Depending on circumstances, you might want it as a top level class (i.e. in > a file of its own) > > Ian > > http://examples.roughian.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-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: Why do we define AsyncCallbacks inline?
They're examples. Clue's in the question :-) In real life you'd probably want to use an inner class e.g. public class Example implements EntryPoint { @Override public void onModuleLoad() { } class X implements AsyncCallback { } } Depending on circumstances, you might want it as a top level class (i.e. in a file of its own) Ian http://examples.roughian.com 2009/8/22 jack > > In every RPC example I've seen, AsyncCallback are all defined inline? > Why is this so? What are the advantages? > > 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-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: Why do we define AsyncCallbacks inline?
Very well said, Jason. I agree completely. On Aug 23, 9:08 am, Jason Morris wrote: > I would personally say that creating top-level or inner classes for the > response of an async > callback (or an event) is often the best way to do it. > > Encapsulation is one of the main reasons we use OO languages because it > encourages re-use. If you > take a look at my blog post > here:http://lemnik.wordpress.com/2008/07/17/a-useful-gwt-rpc-pattern-ive-b... > You'll see one of the ways in which you can leverage encapsulate logic to > make your code more > friendly. Make the RetryAction a Command object and you'll really start to > see what I mean. > > I mostly find that in the long run it works better to avoid inline callbacks, > since it provides > better separation of concerns, and acts more like the Command pattern (and > you can mix in a Command > Processor to produce more complex logic). > > Just my 2c worth. > Regards. > //Jason > > jack wrote: > > Good question - lol. > > > I think maybe we're not quite using the same terminology - maybe we > > are. > > > By inner class I mean something like ... > > > public MyOuterClass > > { > > > } > > > On Aug 23, 1:34 am, Jan Ehrhardt wrote: > >> It's common practice to use inner classes in Java for listeners or other > >> simple things like callbacks. > >> What you want to do in the case of a callback, is invoking a method after > >> the the asynchronous RPC has been finished. The easiest solution would be, > >> to put this method as an argument to the RPC method, but since Java has no > >> closures, using inner classes is a nice solution. In Java 1.4, where no > >> inner classes where available, people implemented the AsyncCallback > >> interface in the class, which was calling the RPC method, so they could do > >> something like: > > >> service.getSomthing(this); > > >> But with Java 5 inner classes have become the prefered way. > >> Sure, you can also create your own class for this, but that's the worse > >> practice, I think. > > >> What would be the best solution for this, you think? > > >> Regards > >> Jan Ehrhardt > > >> On Sat, Aug 22, 2009 at 10:43 PM, jack wrote: > > >>> In every RPC example I've seen, AsyncCallback are all defined inline? > >>> Why is this so? What are the advantages? > >>> 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-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: Why do we define AsyncCallbacks inline?
I would personally say that creating top-level or inner classes for the response of an async callback (or an event) is often the best way to do it. Encapsulation is one of the main reasons we use OO languages because it encourages re-use. If you take a look at my blog post here: http://lemnik.wordpress.com/2008/07/17/a-useful-gwt-rpc-pattern-ive-been-using/ You'll see one of the ways in which you can leverage encapsulate logic to make your code more friendly. Make the RetryAction a Command object and you'll really start to see what I mean. I mostly find that in the long run it works better to avoid inline callbacks, since it provides better separation of concerns, and acts more like the Command pattern (and you can mix in a Command Processor to produce more complex logic). Just my 2c worth. Regards. //Jason jack wrote: > Good question - lol. > > I think maybe we're not quite using the same terminology - maybe we > are. > > By inner class I mean something like ... > > public MyOuterClass > { > > } > > > On Aug 23, 1:34 am, Jan Ehrhardt wrote: >> It's common practice to use inner classes in Java for listeners or other >> simple things like callbacks. >> What you want to do in the case of a callback, is invoking a method after >> the the asynchronous RPC has been finished. The easiest solution would be, >> to put this method as an argument to the RPC method, but since Java has no >> closures, using inner classes is a nice solution. In Java 1.4, where no >> inner classes where available, people implemented the AsyncCallback >> interface in the class, which was calling the RPC method, so they could do >> something like: >> >> service.getSomthing(this); >> >> But with Java 5 inner classes have become the prefered way. >> Sure, you can also create your own class for this, but that's the worse >> practice, I think. >> >> What would be the best solution for this, you think? >> >> Regards >> Jan Ehrhardt >> >> On Sat, Aug 22, 2009 at 10:43 PM, jack wrote: >> >>> In every RPC example I've seen, AsyncCallback are all defined inline? >>> Why is this so? What are the advantages? >>> 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-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: Why do we define AsyncCallbacks inline?
Sorry, I fat fingered that last post. Once again, by inner class I mean something like ... public MyOuterClass { MyInner class = new MyInnerClass(); public MyInnerClass { } } I think this was avail in 1.4 - unless I am confusing things. By defining a class inline I mean ... greetingService.greetServer(textToServer, new AsyncCallback() { public void onFailure(Throwable caught) { // Show the RPC error message to the user dialogBox .setText("Remote Procedure Call - Failure"); serverResponseLabel .addStyleName("serverResponseLabelError"); serverResponseLabel.setHTML(SERVER_ERROR); dialogBox.center(); closeButton.setFocus(true); } public void onSuccess(String result) { dialogBox.setText("Remote Procedure Call"); serverResponseLabel .removeStyleName("serverResponseLabelError"); serverResponseLabel.setHTML(result); dialogBox.center(); closeButton.setFocus(true); } }); ... and this comes right from the Eclipse starter project for GWT. My initial reaction was that this was a little hard to read. I am getting a little used to it, but I think I still prefer to implement the callback in a 'real' class (an inner class somewhere else in the file works for me). I guess it just comes down to code style. Thanks, Jan. On Aug 23, 8:49 am, jack wrote: > Good question - lol. > > I think maybe we're not quite using the same terminology - maybe we > are. > > By inner class I mean something like ... > > public MyOuterClass > { > > } > > On Aug 23, 1:34 am, Jan Ehrhardt wrote: > > > It's common practice to use inner classes in Java for listeners or other > > simple things like callbacks. > > What you want to do in the case of a callback, is invoking a method after > > the the asynchronous RPC has been finished. The easiest solution would be, > > to put this method as an argument to the RPC method, but since Java has no > > closures, using inner classes is a nice solution. In Java 1.4, where no > > inner classes where available, people implemented the AsyncCallback > > interface in the class, which was calling the RPC method, so they could do > > something like: > > > service.getSomthing(this); > > > But with Java 5 inner classes have become the prefered way. > > Sure, you can also create your own class for this, but that's the worse > > practice, I think. > > > What would be the best solution for this, you think? > > > Regards > > Jan Ehrhardt > > > On Sat, Aug 22, 2009 at 10:43 PM, jack wrote: > > > > In every RPC example I've seen, AsyncCallback are all defined inline? > > > Why is this so? What are the advantages? > > > > 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-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: Why do we define AsyncCallbacks inline?
Good question - lol. I think maybe we're not quite using the same terminology - maybe we are. By inner class I mean something like ... public MyOuterClass { } On Aug 23, 1:34 am, Jan Ehrhardt wrote: > It's common practice to use inner classes in Java for listeners or other > simple things like callbacks. > What you want to do in the case of a callback, is invoking a method after > the the asynchronous RPC has been finished. The easiest solution would be, > to put this method as an argument to the RPC method, but since Java has no > closures, using inner classes is a nice solution. In Java 1.4, where no > inner classes where available, people implemented the AsyncCallback > interface in the class, which was calling the RPC method, so they could do > something like: > > service.getSomthing(this); > > But with Java 5 inner classes have become the prefered way. > Sure, you can also create your own class for this, but that's the worse > practice, I think. > > What would be the best solution for this, you think? > > Regards > Jan Ehrhardt > > On Sat, Aug 22, 2009 at 10:43 PM, jack wrote: > > > In every RPC example I've seen, AsyncCallback are all defined inline? > > Why is this so? What are the advantages? > > > 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-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 -~--~~~~--~~--~--~---
ClassCastException using the GWT shell in trunk
Hello, I tried to run our application - built with gwt 1.7 - using the gwt trunk. Web mode seems to work (with some problems), but hosted mode fails because a ClassCastException is thrown by the shell: java.util.ArrayList cannot be cast to java.util.Map. Do you have any ideas why is this thrown? Thanks for your help in advance! Best regards: Norbi --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
DOM listener
this code adds listener to the page... i got it works fine on FF... but it does not work fine on IE the alert does not even show up. here is the code DOM.addEventPreview(new EventPreview(){ public boolean onEventPreview(Event event) { if(DOM.eventGetType(event) == Event.ONKEYDOWN){ if( event.getKeyCode() == EventObject.ENTER){ if (event.getTarget().getId()==DOM.getChild(DOM.getChild(DOM.getChild(DOM.getChild(DOM.getChild(DOM.getElementById("pagingToolBar"), 0), 0), 0), 4), 0).getId()){ Window.alert(event.getTarget().getId()); return false; } } } return true; }}); thanks -- ~~~With Regards~~~ Muhannad Dar-Nasser ~~Computer Systems Engineering~~ ~~0598-534520~~ --~--~-~--~~~---~--~~ You received 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: XML Schema or DTD for GWT configuration files
In Eclipse it is under Window -> Preferences -> XML -> XML Catalog On Aug 23, 10:19 am, Dalla wrote: > How do you install it to the IDE ? > Sounds like a nice idea :-) > > On 22 Aug, 08:03, George Georgovassilis > wrote: > > > Sure, it's gwt-module.dtd in the root directory when you unzip the > > installation archive. > > > On Aug 21, 10:54 pm, Eric wrote: > > > > Is there an XML Schema or a DTD for the module.gwt.xml files? > > > If there is, I'd like to install it in my IDE so it can support me > > > while I write GWT configurations. I saw none in gwt-user.jar. > > > > Respectfully, > > > Eric Jablow --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
TreeItem.addStyleDependentName modifies className of the treeItem's parent element
Hello I would expect following to modify the className property of the treeItem element: tree.getItem(0).addStyleDependentName("newPresenter"); ...I assume in the DOM I should see this class-attribute: "gwt- TreeItem-newPresenter", but what I get is this: Am I missing something? --~--~-~--~~~---~--~~ You received 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: rich und web application in one Eclipse project
Hello Paul, thank you for answering. It's a helpful tip for me that you can mark the directories to translate in that gwt.xml file! But it seems that i havn't described my actual problem exactly. So i try again. The matter is that i have a well working application that reads meta data from an xml file for instanciating an object structure that shall be displayed. (The runtime env is an app for showing software-prototypes like mobilesoftware.) This is working fine with Swing components because i can display it embedded in my runtime env by instanciate a swtobject structure. My first idea was to copy all swing component factories for gwt components; make an abstract layer above both, so i can use my existing access. I don't know if it will work to instanciate an gwtobject structure like that and even if, i don't know what to do with it. It has to be translated by then. But i don't know how. The question is, if it is possible to translate it into html/javascript an runtime? A complety another solution i now have in mind is to write a gwt project for my prototype (all gwt files that are needed) at runtime. Then i can compile these static gwt project and get my html/ javascript. But in this solution i can't use anything of my old code... Furthermore it's very interesting for me, if it's possible to translate a cloudy gwt object structure to html? But maybe it's a really oddy idea in my mind??? greetings, Jenny On 20 Aug., 10:59, Paul Robinson wrote: > It depends on what you mean exactly. Your swing components are not > GWT-compatible because they can't be translated to javascript. Anything > swing-related or server specific or otherwise not javascript > translatable must be in a directory that GWT does not try to translate. > Your module gwt.xml files specify the translatable directories. > > You can have one eclipse project that includes code for a swing client > and your GWT client (and any server side code), but your GWT code can't > use any of the swing code. > > HTH > Paul > > jennywrote: > > Hallo everyone, > > > i have a fine working eclipse-developed java rich client application. > > > Now i want a new way to display my data, namely in a browser. > > (So i can install my app on a webserver) > > > But the existing solution has to work like it is! > > > I imported the GWT SDK 1.6.4. and the App Engine SDK 1.2.1 for getting > > GWT components for the websolution. > > > But now my Swing components arn't supported any longer. > > > The question: > > Is there a possibility to develop my new browser-solution with GWT > > components alongside my rich client solution in the same eclipse > > project? > > Or do you know another solution for my prob? > > > Thanks for replys,jenny --~--~-~--~~~---~--~~ You received 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: What is Google App Engine?
Google App Engine is pretty much an application server. Check this out, http://appgallery.appspot.com/. All applications you find there run on the App engine. It comes down to if you want to use googles application server, or your own. That being said, using App engine is an easy way to get started with GWT, since can deploy your application without knowing much about app server. I really suggest you browse around the first link I posted, the concept is explained fairly well there. On 23 Aug, 01:40, GTM wrote: > I'm still kind of new to this, so from what I understand from your > post and reading, google app engine would allow me to upload my own > projects onto googles website (which is what you mean by google's > existing infrastructure, right?). If I choose not to use it, the only > difference is that I will not be allowed to upload it to google's site > (right?) > > On Aug 21, 2:43 pm, Dalla wrote: > > > > > Google App Engine is Googles cloud platform, which allows you to use > > Googles existing infrustructure for your own projects. > > You don´t need to use it at all if you don´t want to. > > > Read more athttp://code.google.com/intl/sv-SE/appengine/ > > > On 21 Aug, 19:14, GTM wrote: > > > > I accidentally enabled it and the program I moved over said that some > > > lines were not supported. I tried reading up on it on google but im a > > > little confused. Do I need it to upload stuff onto the internet, or > > > for my programs to work? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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: XML Schema or DTD for GWT configuration files
How do you install it to the IDE ? Sounds like a nice idea :-) On 22 Aug, 08:03, George Georgovassilis wrote: > Sure, it's gwt-module.dtd in the root directory when you unzip the > installation archive. > > On Aug 21, 10:54 pm, Eric wrote: > > > > > Is there an XML Schema or a DTD for the module.gwt.xml files? > > If there is, I'd like to install it in my IDE so it can support me > > while I write GWT configurations. I saw none in gwt-user.jar. > > > Respectfully, > > Eric Jablow --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---