Re: Blank screen in IE7 but normal in IE6, IE8, FF
Did you tried to switch compatibility mode in IE7 ? It should help you. -p- On 17. Mar., 12:38 h., tankesz wrote: > Hi, > > I am new in GWT and I have a problem with LayoutPanel. > Adding LayoutPanel to the north side of a DockLayoutPanel works > correctly. > But when I put DeckPanel into the center of the DockLayoutPanel, and > into the DeckPanel I put LayoutPanel, the screen goes blank. > It happens only in IE7. In IE6, IE8 and FF it works correctly as in > the north side. > Could anyone help me, what is the reason of that? > > Thanks, > > Tankesz -- You received 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: Session management in GWT
hi, If you've change the window location, you can: - give some info if in the url, limited and ugly. - provide a (remote) service to expose user details to the new module (I suppose AdminDashboard.jsp is hosting another GWT module). - for the JSP you can access to the servlet api to retrieve users details depending of your auth framework. On Tue, Mar 30, 2010 at 5:53 AM, Vik wrote: > hie yes gwt (ui)/ > > can u please point me to a bit more details on gwt-rpc/json mechanism on > doing so? > > > Thankx and Regards > > Vik > Founder > www.sakshum.com > www.sakshum.blogspot.com > > > On Mon, Mar 29, 2010 at 2:39 PM, olivier nouguier < > olivier.nougu...@gmail.com> wrote: > >> Hi, >> Do you mean I GWT (ui) code when talk in "admindashboard.jsp". >> If true: >> provide a service (GWT-RPC/json) to retrieve information from. >> else: >> not a GWT question. >> >> On Mon, Mar 29, 2010 at 6:20 AM, Vik wrote: >> >>> Hie >>> >>> I have a index.html page with a login module (build in gwt) embedded into >>> it. >>> Once the user provide authentication details and hit login button >>> I am redirecting the user to a new page named AdminDashboard.jsp >>> >>> Now, I will be creating and embedding a dashboard using GWT components on >>> this page. >>> The question I have is how do i pass the user details from the login >>> module to admindashboard.jsp? >>> Please note that I am >>> using Window.Location.replace("/ui/page/AdminDashboard.jsp"); to navigate >>> to dashboard page. >>> >>> Further, what is used in GWT to store the data in a session and then >>> validating it before user actions? >>> >>> Thankx and Regards >>> >>> Vik >>> Founder >>> www.sakshum.com >>> www.sakshum.blogspot.com >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Google Web Toolkit" group. >>> To post to this group, send email to google-web-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. >>> >> >> >> >> -- >> A coward is incapable of exhibiting love; it is the prerogative of the >> brave. >> -- >> Mohandas Gandhi >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To post to this group, send email to google-web-tool...@googlegroups.com. >> To unsubscribe from this group, send email to >> google-web-toolkit+unsubscr...@googlegroups.com >> . >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: PagingScrollTable running example please???
Hi, thanks for the answer, it really helped. Also I found a running example project here http://zenoconsulting.wikidot.com/blog:17/ In the comments he explained me how to retrieve by using maven On 29 Mrz., 18:45, Felipe wrote: > HI, Here's an example : > > publicMyClass implement EntryPoint , PageLoadHandler { > > > public void onModuleLoad() { > > tableModel = new TestTableModel(); > cachedTableModel = new CachedTableModel(tableModel); > cachedTableModel.setPreCachedRowCount(100); > cachedTableModel.setPostCachedRowCount(100); > > pagingScrollTable = new > PagingScrollTable(cachedTableModel, data, header , > getDefTable () ); > pagingScrollTable.setPageSize(3); > pagingScrollTable.setEmptyTableWidget(new HTML ("No hay nada para > ver")); > pagingScrollTable.setWidth("400px"); > pagingScrollTable.setHeight("200px"); > pagingScrollTable.setFooterGenerated(true); > pagingScrollTable.setCellSpacing(0); > > pagingScrollTable.setResizePolicy(ScrollTable.ResizePolicy.FILL_WIDTH); > > FixedWidthGridBulkRenderer bulkRenderer = new > FixedWidthGridBulkRenderer(pagingScrollTable.getDataTable(), > > pagingScrollTable); > pagingScrollTable.setBulkRenderer(bulkRenderer); > pagingScrollTable.addPageLoadHandler(this); > > PagingOptions p = new PagingOptions(pagingScrollTable); > RootPanel.get().add( pagingScrollTable ); > RootPanel.get().add( p ); > > } > > public void onPageLoad(PageLoadEvent event) { > > cachedTableModel.clearCache(); > cachedTableModel.setRowCount(tableModel.getRowCount()); /* > cantidad > de filas dinamicas */ > pagingScrollTable.redraw(); > > } > > } > > not implemented here: TableModel ( get data from the source ), > tableDefinition ( how to display data) , > > I hope helped you ! > saludos. > > On 29 mar, 11:07, crojay78 wrote: > > > > > Hi, > > > I am searching for a running example for PagingScrollTable from > > incubator project. Can somebody provide me something, for me its > > always easier to understand the stuff by playing a bit with the code. > > > I found a maven example but I could import it to eclipse so that it > > works. > > > Thanks a lot -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Flex communication problems
Hi, I am desperately trying to get pwrlscript Array objects from GWT to Flash. So far I have only been able to communicate Strings. Does anyone know how to transfer Array objects?? -- You received 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: PagingScrollTable running example please???
That's look simple, Here's another way http://wiki.cs.rpi.edu/trac/metpetdb/browser/trunk/mpdb-client/src/edu/rpi/metpetdb/client/ui/widgets/paging?rev=945 saludos y good luck ! 2010/3/30 crojay78 > Hi, > > thanks for the answer, it really helped. > > Also I found a running example project here > > http://zenoconsulting.wikidot.com/blog:17/ > > In the comments he explained me how to retrieve by using maven > > On 29 Mrz., 18:45, Felipe wrote: > > HI, Here's an example : > > > > publicMyClass implement EntryPoint , PageLoadHandler { > > > > > > public void onModuleLoad() { > > > > tableModel = new TestTableModel(); > > cachedTableModel = new > CachedTableModel(tableModel); > > cachedTableModel.setPreCachedRowCount(100); > > cachedTableModel.setPostCachedRowCount(100); > > > > pagingScrollTable = new > > PagingScrollTable(cachedTableModel, data, header , > > getDefTable () ); > > pagingScrollTable.setPageSize(3); > > pagingScrollTable.setEmptyTableWidget(new HTML ("No hay nada > para > > ver")); > > pagingScrollTable.setWidth("400px"); > > pagingScrollTable.setHeight("200px"); > > pagingScrollTable.setFooterGenerated(true); > > pagingScrollTable.setCellSpacing(0); > > > > pagingScrollTable.setResizePolicy(ScrollTable.ResizePolicy.FILL_WIDTH); > > > > FixedWidthGridBulkRenderer bulkRenderer = new > > FixedWidthGridBulkRenderer(pagingScrollTable.getDataTable(), > > > > pagingScrollTable); > > pagingScrollTable.setBulkRenderer(bulkRenderer); > > pagingScrollTable.addPageLoadHandler(this); > > > >PagingOptions p = new PagingOptions(pagingScrollTable); > >RootPanel.get().add( pagingScrollTable ); > >RootPanel.get().add( p ); > > > > } > > > > public void onPageLoad(PageLoadEvent event) { > > > > cachedTableModel.clearCache(); > > cachedTableModel.setRowCount(tableModel.getRowCount()); > /* cantidad > > de filas dinamicas */ > > pagingScrollTable.redraw(); > > > > } > > > > } > > > > not implemented here: TableModel ( get data from the source ), > > tableDefinition ( how to display data) , > > > > I hope helped you ! > > saludos. > > > > On 29 mar, 11:07, crojay78 wrote: > > > > > > > > > Hi, > > > > > I am searching for a running example for PagingScrollTable from > > > incubator project. Can somebody provide me something, for me its > > > always easier to understand the stuff by playing a bit with the code. > > > > > I found a maven example but I could import it to eclipse so that it > > > works. > > > > > Thanks a lot > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- Felipe Peña Fono - 76300638 -- You received 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.
GEP 1.3 : com.google.gdt.eclipse.suite.* packages not exported
Hi, I'm trying to set up a m2eclipse project configurator for GEP during my spare time (I'll open source the code eventually, it's just I haven't setup any SCM yet). So far, I've been able to add the GWT nature to maven projects, set the war source directory using the GEP API. I'd like to create/tweak LaunchConfigurations using com.google.gdt.eclipse.suite.WebAppLaunchUtil. But I can't use any of the classes in the com.google.gdt.eclipse.suite plugin, since no packages are exported. This is quite unfortunate, since I don't want to get sued for reverse engineering these classes. Can Google reconsider this design choice to help 3rd party plugins better integrate with GEP? I'll file an issue if you think it's doable. Thanks in advance. Regards, Fred Bricon -- You received 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.
New GWT widget resource, of sorts: vaadin.com/directory
Hi, It occurs to me that the Vaadin Directory that was launched today might actually be an interesting resource for GWT widgets. http://vaadin.com/directory (Also, I'm personally quite excited about it, and want spread the word - feedback welcome!) It's not a plain GWT resource, since it's actually for Vaadin add-ons, but since these usually have a client-side in GWT, and most are Apache 2.0, it might be quite useful. At least I know I personally try to make the client-side of my Vaadin components with 'plain GWT' use in mind. Just as an example: PasswordField (a simple text field with chroma-hash and caps-lock warning http://vaadin.com/directory#addon/77 ) is planned to be published as a GWT widget when I get around to it, but the page links to the SVN repository, so you could just get it from there and start using... Please still note that not all of the add-ons are relevant if you're not actually using Vaadin. Oh, and of course the whole Directory is built with Vaadin, and thus everything you see is GWT :-) On the tooling side, if you're using eclipse and the vaadin plugin, you just drop the jar in your lib, and the GWT stuff is automatically recompiled (I think we might be the first to package GWT widgets like this?) Also, if you have made some awesome GWT widget, you could wrap it as a Vaadin add-on and charge for it in the Directory. Personally I like Apache 2.0, though, keep that in mind ;-) Anyway, check it out, and feedback welcome - in this thread, or better (since not everyone here will be interested) over at the Vaadin forum. Best Regards, Marc -- You received 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: working with GWT and PHP in the development mode
It is also possible to use the embedded Jetty server. Here's how I do it: 1) install "Eclipse for PHP Developers" from http://www.eclipse.org/downloads/ 2) install "Google Plugin for Eclipse" adding to eclipse the update site http://dl.google.com/eclipse/plugin/3.5 3) create a "New Web Application Project" 4) edit war/WEB-INF/web.xml of newly created project and add the following snippet (let's hope to get nice formatting... :-). IMPORTANT NOTE: this is assuming you have php5-cgi executable installed (in Ubuntu install php5-cgi package). Change it to suite your setup. PHP Servlet org.mortbay.servlet.CGI commandPrefix php5-cgi PHP Servlet *.php 5) create a new PHP file in project's war folder (e.g. phpinfo.php) 6) run the project as "Web Application" 7) browse to http://127.0.0.1:/phpinfo.php bye, Marcello Nuccio On 6 Mar, 19:29, mibtar wrote: > maybe you should just use firefox? > > are you using eclipse or netbeans? > > gwtphpin eclipse: > > suppose your apache's webroot is "c:\www" > and you created your project in "c:\www\apps\" > and your project name is "mytest" > > so your project is gonna have these directories: > c:\www\apps\mytest\src > c:\www\apps\mytest\test > c:\www\apps\mytest\war > > you place yourphpfiles in the war folder > > test.php: > > echo "hello"; > ?> > > and in your java code, let's say you have this method to test: > > public void testphp(){ > try > { > RequestBuilder builder = new > RequestBuilder(RequestBuilder.POST, GWT.getHostPageBaseURL() > +"test.php"); > builder.setHeader("Content-Type", "application/x-www-form- > urlencoded"); > builder.sendRequest("", new RequestCallback() > { > @Override > public void onError(Request request, Throwable ex) > { > Window.alert(ex.toString()); > } > > @Override > public void onResponseReceived(Request request, Response > response) > { > Window.alert("PHPoutput: " + > response.getText()); > } > }); > } > catch (RequestException e) > { > Window.alert(e.toString()); > } > > } > > in the project explorer of eclipse, right click your project and > choose properties. > click Run/Debug Settings. > choose your project and click edit. > remove the check in run built-in server and change the port to 80. > > run the project. copy the link in the "development mode" window and > paste it in the browser's address bar. > when you open the link, it will display a page not found error. > because you really don't have a mytest.html in > the root of your www folder. > > the link looks like > this:http://127.0.0.1/mytest.html?gwt.codesvr=127.0.0.1:9997 > > copy "?gwt.codesvr=127.0.0.1:9997" from the link > > mytest.html is really in:http://localhost/apps/mytest/war/mytest.html > > paste the end of the previous link to the new link so it looks like > this:http://localhost/apps/mytest/war/mytest.html?gwt.codesvr=127.0.0.1:9997 > > now you can simply refresh the page to view any changes made to your > java andphpcode. > no need to compile or run. -- You received 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.
Decorator panel outlook problem
Decorator panel outlook went a mess when expanded its width. example source: DecoratedTabPanel tabPanel = new DecoratedTabPanel(); // expand the width of the tab panel tabPanel.setWidth("1000px"); tabPanel.setAnimationEnabled(true); // a new tab String[] tabTitles = { "Home", "Content", "More Info" }; // set a new table FlexTable helloWorldTable = new FlexTable(); helloWorldTable.setCellSpacing(5); helloWorldTable.setTitle("Hello World Example"); FlexCellFormatter cellFormat = helloWorldTable.getFlexCellFormatter(); helloWorldTable.setHTML(0, 0, "Hello World Example"); cellFormat.setColSpan(0, 0, 3); cellFormat.setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_CENTER); helloWorldTable.setHTML(1, 0, "Say hello, "); final TextBox nameField = new TextBox(); nameField.setFocus(true); nameField.selectAll(); helloWorldTable.setWidget(1, 1, nameField); final Button sayButton = new Button("Say"); helloWorldTable.setWidget(1, 2, sayButton); // Wrap the content in a DecoratorPanel DecoratorPanel decPanel = new DecoratorPanel(); // decPanel.setWidth("500px"); decPanel.add(helloWorldTable); // decPanel.setWidget(helloWorldTable); tabPanel.add(decPanel, tabTitles[0]); // Add a tab tabPanel.add(new HTML(), tabTitles[1]); // Add a tab HTML moreInfo = new HTML("etc"); tabPanel.add(moreInfo, tabTitles[2]); tabPanel.selectTab(0); RootPanel.get().add(tabPanel); -- You received 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.
NullPointerException at GWTShellServlet.doGetPublicFile (GWT 2.0.3) - GWT Eclipse plugin 1.3.2
Hi, I have problem with running development mode from GWT Eclipse plugin version 1.3.2. I'm connecting to dev mode with Chrome. In logs I find this: [WARN] /com.test.Test/C43A8DC1E50D698B543BF589D0244ECC.cache.png java.lang.NullPointerException at com.google.gwt.dev.shell.GWTShellServlet.doGetPublicFile(GWTShellServlet.java: 438) at com.google.gwt.dev.shell.GWTShellServlet.processFileRequest(GWTShellServlet.java: 184) at com.google.gwt.dev.shell.GWTShellServlet.doGet(GWTShellServlet.java: 132) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java: 292) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java: 49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:829) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:488) As a result application starts but no images are shown. There is a file with given name in location /war/com.test.Test/ C43A8DC1E50D698B543BF589D0244ECC.cache.png. Compiler output folder set in Eclipse: /war/WEB-INF/classes. I've looked into GWT code and found that GWTShellServlet.doGetPublicFile invokes getShellWorkDirs() that in my case wrongly returns null. getShellWorkDirs() looks for workdirs - servletContext.getAttribute("com.google.gwt.dev.shell.workdirs"), but attribute is not set. I've searched where "com.google.gwt.dev.shell.workdirs" is used and found it only in EmbeddedTomcatServer. I didn't found how is it set for Jetty. My launch configuration looks like this: There was a similar thread some time ago, but nobody responded: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/739820505bfd8cdc/0fdde9b31e2e4b67 I was working with version 1.2.0 of plugin and everything was fine. Maybe I've missed something, but I cannot run DevMode in a proper way. Could you give me any advice what am I doing wrong? Thanks in advance, Marek. -- You received 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.
Advice request for GWT newbie
I'm a newbie with GWT and before I go about trying to implement a solution using the technology I thought I would first ask advice. I have an application that handles well data transmitted to it over socket connections, transforms the data, and forwards it to other components for further processing. The application runs in a Jboss container and I need to hang a UI on it to allow remote administration. I will need to create a few different screens but the one I would like to start with is a screen that allows a user to view the traffic logs in real-time. What GWT components would I use 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-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.
Attaching items to tabs to TabLayoutPanel
Hi! I'm experimenting with TabLayoutPanel... basically what I want to do is attach an HTML page with its widgets etc... for each tab. So far I have managed this: TabLayoutPanel p = new TabLayoutPanel(1.5, Unit.EM); p.add(new HTML("Twitter Configuration"), "Twitter"); p.add(new HTML("MySQL Configuration"), "MySQL"); RootLayoutPanel rp = RootLayoutPanel.get(); rp.add(p); But I'm only associating some basic html with the tabs How can I achieved what I wish plz? Bdw I've just started using google web toolkit right so sry if I'm asking something simplistic. Thanks and regards, Krt_Malta -- You received 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 window.open()总被chrome拦截:求解决办 法
用jsni也没能解决,我需要弹出一个播放器 public class Popup implements EntryPoint { @Override public void onModuleLoad() { final Button button = new Button("click me"); button.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { // Window.open("http://baidu.com";, "_blank=true", // "resizable=yes"); popup(); } }); RootPanel.get().add(button); } public native void popup()/*-{ top.fun(); }-*/; } ** function fun(){ var nWidth = screen.availWidth; var nHeight = screen.availHeight; if (nWidth > 820){ nWidth = 980; nHeight = 640; } var strOptions = "width=" + nWidth + "height=" + nHeight; strOptions += ",resizable=yes"; strOptions += ",status=1, toolbar=0, location=0, menubar=0, scrollbars=0"; window.open("http://www.baidu.com","_blank",strOptions); } -- You received 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 re-use i18n messages in different template with uibinder
Hi all, According to this article http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinderI18n.html, it says "if we take some care with how we manage our translated properties files, a message that happens to be used in more than one template will only need to be translated once". However, it does not say how to achieve that goal. Can anyone give me some advice on this issue? Thanks in advance! Leon -- You received 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 Configure GWT to use apache? [Ubuntu]
The GWT is using only Tomcat with port , when I try to access a PHP file that is in the /var/www, the directory read by apache in Ubuntu, I get this error: com.google.gwt.http.client.RequestPermissionException: The URL http://127.0.0.1/Quadrante.php is invalid or violates the same-origin security restriction How to Configure GWT to use apache? -- You received 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.
Compiling problems GWT 2.0
Hi, I migrate my App from gwt 1.7 to GWT 2.0 but when i try to compile it,it doesn't worked.Sometimes it works (1/100 of intent of compiling).I use netbeans,gwt 2.0 ,gwt.ext 2.0.6, gwt-ext-ux 0.3. It seems that's memory's problems,but i'm not sure,i try to change the parameter gwt.compiler.jvmargs= of gwt.properties file to give more memory to VM but sometime it works and some not. did some one had the same problem? thank you -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Not able to view the design mode
Hi All, I have just started using GWT, I have downloaded GWT and GWT Designer and I have started a test application as well. I was able to create a Composite in the design mode, but I was not not able to view the Design mode in the main Java program, which is the Entry point class I guess, where we run the program. Can you please help me with this? Thank you, Neetha -- You received 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: Decorator panel outlook problem
It's because the deck part of the tabpanel expands its contents to full width. Always been annoying, that one. The decorated panel then stretches and the cells work out their own widths. This means that the edge cells (decorated bits) stretch to greater than they should be and you see all the image that you should only see a small part of. Two fixes spring to mind: 1) set the width of the decorated panel's content to 1000px minus the two edge widths - difficult if you use percentages or 2) put the decorated panel in another panel (simplepanel, flowpanel) and put that in the tabpanel deck Ian http://examples.roughian.com On 29 March 2010 14:10, Fendy Tjin wrote: > Decorator panel outlook went a mess when expanded its width. > > > example source: > > DecoratedTabPanel tabPanel = new DecoratedTabPanel(); > > // expand the width of the tab panel > tabPanel.setWidth("1000px"); > tabPanel.setAnimationEnabled(true); > > // a new tab > String[] tabTitles = { "Home", "Content", "More Info" }; > > // set a new table > FlexTable helloWorldTable = new FlexTable(); > helloWorldTable.setCellSpacing(5); > helloWorldTable.setTitle("Hello World Example"); > FlexCellFormatter cellFormat = helloWorldTable.getFlexCellFormatter(); > > helloWorldTable.setHTML(0, 0, "Hello World Example"); > cellFormat.setColSpan(0, 0, 3); > cellFormat.setHorizontalAlignment(0, 0, > HasHorizontalAlignment.ALIGN_CENTER); > > helloWorldTable.setHTML(1, 0, "Say hello, "); > final TextBox nameField = new TextBox(); > nameField.setFocus(true); > nameField.selectAll(); > helloWorldTable.setWidget(1, 1, nameField); > final Button sayButton = new Button("Say"); > helloWorldTable.setWidget(1, 2, sayButton); > > // Wrap the content in a DecoratorPanel > DecoratorPanel decPanel = new DecoratorPanel(); > // decPanel.setWidth("500px"); > decPanel.add(helloWorldTable); > // decPanel.setWidget(helloWorldTable); > > tabPanel.add(decPanel, tabTitles[0]); > > // Add a tab > tabPanel.add(new HTML(), tabTitles[1]); > > // Add a tab > HTML moreInfo = new HTML("etc"); > tabPanel.add(moreInfo, tabTitles[2]); > > tabPanel.selectTab(0); > > RootPanel.get().add(tabPanel); > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Attaching items to tabs to TabLayoutPanel
Well easy, just use a layout widget instead of HTML widget. For example, FlowPanel fp = new FlowPanel(); fp.add(new Text()); fp.add(new Button("Press me")); p.add(fp, "Text and Button"); On Mar 30, 6:15 am, Kurt_Sultana wrote: > Hi! > > I'm experimenting with TabLayoutPanel... basically what I want to do > is attach an HTML page with its widgets etc... for each tab. > > So far I have managed this: > > TabLayoutPanel p = new TabLayoutPanel(1.5, Unit.EM); > p.add(new HTML("Twitter Configuration"), "Twitter"); > p.add(new HTML("MySQL Configuration"), "MySQL"); > > RootLayoutPanel rp = RootLayoutPanel.get(); > rp.add(p); > > But I'm only associating some basic html with the tabs > > How can I achieved what I wish plz? Bdw I've just started using google > web toolkit right so sry if I'm asking something simplistic. > > Thanks and regards, > Krt_Malta -- You received 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 and custom widgets
Hi, I am using the MVP approach in my project and just created a new TableWidget which uses the PagingScrollTable. My TableWidgets is working as expected but only without communication to the presenter of tthe view. My problem is how can process clicks on the table of my CustomWidget in the presenter? I have a RowSelectionHandler which retrieves the id of the clicked row, now the presenter has to know about this because it has to create an event on the eventBus. Can somebody explain me how this should work? An example would be great Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Incubator scrolltable
Hi, take a look at my blog write-up that shows an example of how to use PST -> http://zenoconsulting.wikidot.com/blog:17/ On Sun, Mar 21, 2010 at 3:31 PM, Kwame wrote: > Does anyone have the full source code for this paging scroll table > demo: > http://collectionofdemos.appspot.com/demo/com.google.gwt.gen2.demo.scrolltable.PagingScrollTableDemo/PagingScrollTableDemo.html > > -- > You received 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. > > -- Zeno Consulting, Inc. home: http://www.zenoconsulting.biz blog: http://zenoconsulting.wikidot.com p: 248.894.4922 f: 313.884.2977 -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Flex communication problems
You can always attempt to marshal/unmarshal yourself, but that usually isn't the best way. I recommend http://noon.gilead.free.fr/gilead/. On Mar 30, 6:30 am, terje_sverje wrote: > Hi, > > I am desperately trying to get pwrlscript Array objects from GWT to > Flash. > So far I have only been able to communicate Strings. > > Does anyone know how to transfer Array objects?? -- You received 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.
Stop a nuclear disaster
Hi ,Our government is churning out one hazardous bill after another. This time it is a bill called the Civil Liability for Nuclear Damage, and it's coming up for a vote in a couple of days. The bill lets U.S. corporations off the hook for any nuclear accidents they cause on Indian soil. They'd only have to pay a meagre amount, and Indian taxpayers would be stuck paying crores for the nuclear clean up and to compensate the victims. Without any public debate, the Prime Minister is appeasing American interests and ignoring our safety. Greenpeace is launching a petition asking the PM to hold a public consultation before introducing the bill. I have already signed this petition. Can you join me? http://www.greenpeace.org/india/stop-the-vote Thanks! deepakredd...@gmail.com You are receiving this email because someone you know sent it to you from the Greenpeace site. Greenpeace retains no information about individuals contacted through its site, and will not send you further messages without your consent -- although your friends could, of course, send you another message. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Devmode PushButton error when loading module in IE7
When trying to load my app in IE7 Devmode, I receive the following error (package name changed to protect the innocent): 00:02:20.199 [ERROR] Unable to load module entry point class com.mydomain.myapp.client.MyModule (see associated exception for details) com.google.gwt.core.client.JavaScriptException: (TypeError): Object doesn't support this action number: -2146827843 description: Object doesn't support this action at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 195) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.dom.client.DOMImpl.createButtonElement(DOMImpl.java) at com.google.gwt.dom.client.Document$.createPushButtonElement$ (Document.java:834) at com.google.gwt.user.client.ui.Button.(Button.java:69) at com.mydomain.myapp.client.ui.widgets.buttons.MyButton.(MyButton.java: 44) at com.mydomain.myapp.client.ui.widgets.buttons.MyButton.(MyButton.java: 65) at com.mydomain.myapp.client.ui.widgets.buttons.MyButton.(MyButton.java: 59) at com.mydomain.myapp.client.ui.login.LoginPage.(LoginPage.java: 30) at com.mydomain.myapp.client.MyModule.(MyModule.java:41) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java: 580) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:348) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 185) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 380) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Thread.java:637) The LoginPage has one MyButton (which extends com.google.gwt.user.client.ui.Button). The error is thrown when ` new Button() ` is invoked in MyButton's constructor call to super(). The last line of non-native code is Document.get().createPushButtonElement(). I'm running devmode using Eclipse and Mac OS X 10.6.2. I am not using the Google Eclipse Plugin (benefits do not justify the slowdown). I recently set up a Windows XP vm via VMWare Fusion 3, and when I tried to load my app in the vm's IE7, Devmode received the connection but my module failed to load with the above error. It should be noted that Chrome is also installed on the XP vm, and the app loaded fine there. Both browsers have the latest gwt dev plugin. Also, the fully deployed app running on tomcat works just fine in IE7. This is just a devmode issue. This seems like a bug with devmode but I wanted to post here first (as opposed to the issue tracker) in case this is an issue on my end. Thanks, Zak -- You received 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: Stop a nuclear disaster
'Our' government? There are far worse things than nuclear accidents. Like off-topic posts, for example. Ian http://examples.roughian.com On 28 March 2010 03:58, wrote: > Hi , > Our government is churning out one hazardous bill after another. This time > it is a bill called the Civil Liability for Nuclear Damage, and it's coming > up for a vote in a couple of days. > > The bill lets U.S. corporations off the hook for any nuclear accidents they > cause on Indian soil. They'd only have to pay a meagre amount, and Indian > taxpayers would be stuck paying crores for the nuclear clean up and to > compensate the victims. > > Without any public debate, the Prime Minister is appeasing American > interests and ignoring our safety. > > Greenpeace is launching a petition asking the PM to hold a public > consultation before introducing the bill. > > I have already signed this petition. Can you join me? > > http://www.greenpeace.org/india/stop-the-vote > > Thanks! > > deepakredd...@gmail.com > > You are receiving this email because someone you know sent it to you from > the Greenpeace site. Greenpeace retains no information about individuals > contacted through its site, and will not send you further messages without > your consent -- although your friends could, of course, send you another > message. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Passing form object
The approach I use is to create a Hidden widget on the form. In my onSubmitHandler() I bundle the information I want to send with the form into a JSON object and assign its string to the Hidden widget. Then on the server all I do is look for the value of the Hidden widget, and parse the JSON object. On Mar 28, 5:57 am, Vik wrote: > Hie > > I have a gwt FormPanel component in my onModuleLoad method. > > At onSubmitHandler I have to push the data to server. So is there any way to > pass the complete form object or I have to pass all the fields of form > independently? > > Thankx and Regards > > Vik > Founderwww.sakshum.comwww.sakshum.blogspot.com -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Piriti: JSON and XML mapper
Thanks, Harald. I've been very frustrated with GWT's lack of XPath and with dealing with XML on the client via the DOM. It's okay went I create the XML and can ensure that fields are there, but difficult when I can't. Currently my approach has been to convert the XML to JSON. That's not been ideal, but it's been easier than using the client side DOM. I'll take a look at Piriti and see how it suits my application. On Mar 26, 12:25 pm, Harald Pehl wrote: > Hi Thad, > > > 1) Any thoughts on when handing of attributes may be added? > > Mapping of attributes is already implemented: Using an XPath > expression like > > @XmlField("/contact/@kind") > String kind; > > you can map to the kind attribute of the contact element > > ... > > > Is this what you're looking for? > > > 2) How does Piriti handle optional, missing, and empty elements? As > > in your example, what if is missing , or if > > is either or ? > > When the XPath expression of the @XmlField annotation does not select > data, > the field is left unchanged. In other words, if there is no > element, > the author field will be null. Same for missing and optional elements. > > HTH > Harald -- You received 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: Flex communication problems
On 03/30/2010 04:30 AM, terje_sverje wrote: > Hi, > > I am desperately trying to get pwrlscript Array objects from GWT to > Flash. Do you mean "perl script"? > So far I have only been able to communicate Strings. > > Does anyone know how to transfer Array objects?? -- You received 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: running gwt visualisation sample
Thanks! "ant eclipse.generate" On Mar 28, 10:04 am, kozura wrote: > Read Showcase/README.txt, first bullet point: -- Option A: Import your > project into Eclipse (recommended) -- > > On Mar 27, 8:01 pm, imgnik wrote: > > > sorry.. i think i didn't explain clearly.. i want to import the > > samples as eclipse project... then run from eclipse.. but i forgot how > > to do so.. can someone advise me ? -- You received 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: running gwt visualisation sample
and of course, i got the build.xml off from gwt distribution and modify it. On Mar 31, 2:04 am, imgnik wrote: > Thanks! > > "ant eclipse.generate" > > On Mar 28, 10:04 am, kozura wrote: > > > Read Showcase/README.txt, first bullet point: -- Option A: Import your > > project into Eclipse (recommended) -- > > > On Mar 27, 8:01 pm, imgnik wrote: > > > > sorry.. i think i didn't explain clearly.. i want to import the > > > samples as eclipse project... then run from eclipse.. but i forgot how > > > to do so.. can someone advise me ? -- You received 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.
request compressed xml file
I have some xml files I need to request from the client side, and parse. I have this working with RequestBuilder, but some of the files are pretty big, and I'd like to compress them. Is it possible to retrieve gzipped xml files from the server somehow using RequestBuilder ? Or, is there a better strategy ? -- You received 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: Scroll techniques for mobile phones
If you disable the zooming capabilities of the viewport, very tall panels should be scrolled by the OS. On Mar 24, 11:18 pm, Sekhar wrote: > How are folks (or is anyone) doing page scrolls for GWT apps on mobile > phones? I'm having a bad time getting things going on say Android. > E.g., the scroll bar doesn't appear at all (either with ScrollPanel or > with a overflow: scroll CSS setting). Similarly, the handlers are just > not picking up mouse events like mouse-move consistently. Ideal would > be to simulate the native app behavior like the page scrolls up/down > with gestures or mouse drags, but anything similar would help too. > > Please share your experiences and workarounds. As web based apps > become popular on Android/iPhone/etc., we have to make GWT work > reliably on mobile. I'm building a web version of an Android with GWT, > and it's working well otherwise, and I'm pretty excited. I'd > appreciate any help/direction you can give to fix the scrolling issue. -- You received 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.
Parameter 0 of is of an unknown type 'java.lang.String/2004016611' - error when running through AppEngine+ GWT tutorial
hi, I am using GWT 2.0.3 version, I am going through the steps mentioned in GWT tutorial http://code.google.com/webtoolkit/doc/latest/tutorial/appengine.html When trying to integrate login service I get following exception. Mar 30, 2010 6:44:49 PM com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: [1269974689208000] javax.servlet.ServletContext log: loginService: ERROR: Failed to parse the policy file '/stockwatcher/748E07BA5F0BCE26285053278C0378CB.gwt.rpc' java.text.ParseException: Expected: className, [true | false] at com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream(SerializationPolicyLoader.java:116) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:234) at com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:117) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:429) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) Mar 30, 2010 6:44:49 PM com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: [1269974689224000] javax.servlet.ServletContext log: loginService: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Parameter 0 of is of an unknown type 'java.lang.String/2004016611' at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:277) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl
Entry Points -- can you replace them in module.xml?
Hey all, I am trying to do something like this: but it gives an ugly error. Is this even a possible thing to do? Here is the error -- thanks! [ERROR] Unable to load module entry point class com.test.client.EntryPoint (see associated exception for details) java.lang.NullPointerException: null at java.util.TreeMap.getEntry(Unknown Source) at java.util.TreeMap.containsKey(Unknown Source) at java.util.TreeSet.contains(Unknown Source) at com.google.gwt.dev.cfg.BindingProperty.isAllowedValue(BindingProperty.java: 63) at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java: 120) at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getPropertyValue(ModuleSpacePropertyOracle.java: 65) at com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval(ConditionWhenPropertyIs.java: 48) at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36) at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:37) at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36) at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:35) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.tryRebind(StandardRebindOracle.java:103) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:62) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 172) at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java: 114) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:474) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 365) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:318) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java: 343) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access $300(BrowserWidgetIE6.java:37) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java: 77) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java: 161) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java: 294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java: 194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java: 117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) 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) -- You received 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.
Entry Points -- can you replace them in module.xml?
Hey all, I am trying to do something like this: but it gives an ugly error. Is this even a possible thing to do? Here is the error -- thanks! [ERROR] Unable to load module entry point class com.test.client.EntryPoint (see associated exception for details) java.lang.NullPointerException: null at java.util.TreeMap.getEntry(Unknown Source) at java.util.TreeMap.containsKey(Unknown Source) at java.util.TreeSet.contains(Unknown Source) at com.google.gwt.dev.cfg.BindingProperty.isAllowedValue(BindingProperty.java: 63) at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java: 120) at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getPropertyValue(ModuleSpacePropertyOracle.java: 65) at com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval(ConditionWhenPropertyIs.java: 48) at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36) at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:37) at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36) at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:35) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.tryRebind(StandardRebindOracle.java:103) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:62) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 172) at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java: 114) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:474) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 365) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:318) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java: 343) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access $300(BrowserWidgetIE6.java:37) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java: 77) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java: 161) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java: 294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java: 194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java: 117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) 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) -- You received 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.
Problem using java projects in GWT
Hi everybody I'm trying to use a Java project in GWT but I have had some problems because I can't compile the GWT project. I have done this: 1.Make a xxx.gwt.xml in the java project. 2. Add a external JAR (java project) in the java build path of the GWT project. In Projects and libraries tabs. 3. Reference a xxx.gwt.xml in GWT projects (gwt.xml) 4. And last compile the GWT project... showing me those errors Compiling module ticketcheckGWT.Ticketcheck_GWT Validating newly compiled units [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/Ticketcheck_GWT.java' [ERROR] Line 488: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheck.java' [ERROR] Line 13: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheckAsync.java' [ERROR] Line 12: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'jar:file:/D:/Lucas%20Ríos/GWT/gwanted/gwanted-core.jar!/org/gwanted/gwt/core/client/logger/TimeLoggerImpl.java' [ERROR] Line 92: Parameter 'widgetLoadTime': type 'long' is not safe to access in JSNI code For additional info see: file:/D:/Escritorio/eclipse-jee-galileo-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.0.1_2.0.1.v201002021445/gwt-2.0.1/doc/helpInfo/longJsniRestriction.html Finding entry point classes [ERROR] Unable to find type 'ticketcheckGWT.client.Ticketcheck_GWT' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly If somebody know how I can solve it please help me Thank for all Regards LucasRR -- You received 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.
Problem using java projects in GWT
Hi everybody I'm trying to use a Java project in GWT but I have had some problems because I can't compile the GWT project. I have done this: 1.Make a xxx.gwt.xml in the java project. 2. Add a external JAR (java project) in the java build path of the GWT project. In Projects and libraries tabs. 3. Reference a xxx.gwt.xml in GWT projects (gwt.xml) 4. And last compile the GWT project... showing me those errors Compiling module ticketcheckGWT.Ticketcheck_GWT Validating newly compiled units [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/ src/ticketcheckGWT/client/Ticketcheck_GWT.java' [ERROR] Line 488: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/ src/ticketcheckGWT/client/ServiciosTicketcheck.java' [ERROR] Line 13: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/ src/ticketcheckGWT/client/ServiciosTicketcheckAsync.java' [ERROR] Line 12: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'jar:file:/D:/Lucas%20Ríos/GWT/gwanted/gwanted- core.jar!/org/gwanted/gwt/core/client/logger/TimeLoggerImpl.java' [ERROR] Line 92: Parameter 'widgetLoadTime': type 'long' is not safe to access in JSNI code For additional info see: file:/D:/Escritorio/eclipse-jee- galileo-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle. 2.0.1_2.0.1.v201002021445/gwt-2.0.1/doc/helpInfo/ longJsniRestriction.html Finding entry point classes [ERROR] Unable to find type 'ticketcheckGWT.client.Ticketcheck_GWT' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly If somebody know how I can solve it please help me Thank for all Regards, LucasRR -- You received 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.
Stop caching by complier in temp folder
Hi, I am facing a situation here. The compiler generates some XXX_TypeSerializer.java files and gwtc.tmp folder on compliation under the Document..settings/Temp folder. Is there any way to avoid this step? This causes a problem when I reload the application on the same browser. I am using Google Visualization API and GWT for my project and on the app reload the graph does not get displayed. To make it working I have to explicitly clear the browser cache. Also, when the app is loaded in hosted mode, the GWT server gives the following warning: ...Rebinding the XXXService (the interface that extends RemoteService) ...Warning in generated://X/com/XXXService_TypeSerializer.java -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Server side: start independent Thread at deploy on server
just initialize the thread in the servlet's init() method and shut it down in the servlet's destroy() method. then just make sure that the servlet is started on server startup by adding this to the servlet definition in your web.xml: i think that should be the same regardless if you're running on tomcat, jetty, or whatever. On Mar 25, 1:26 pm, "dolcra...@gmail.com" wrote: > You would start it any way you would normally do such things in Java/ > Servlets (not a GWT specific question). Maybe something like > static Thread mythread = new Thread(){}; > > mythread.run(); > if you need this to start on server startup you need to have this > hooked into whatever server you're using (ie how to do this on tomcat > will be different from jetty/websphere/jboss/etc) > -- You received 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.
Newbie question : Problem with GWT RPC when running running through GWT + AppEngine tutorial
hi, I am using GWT 2.0.3 version, I am going through the steps mentioned in GWT tutorial http://code.google.com/webtoolkit/doc/latest/tutorial/appengine.html When trying to integrate login service I get following exception. I tried using a normal GWT RPC and it also gave me similar exception. Mar 30, 2010 6:44:49 PM com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: [1269974689208000] javax.servlet.ServletContext log: loginService: ERROR: Failed to parse the policy file '/stockwatcher/748E07BA5F0BCE26285053278C0378CB.gwt.rpc' java.text.ParseException: Expected: className, [true | false] at com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream(SerializationPolicyLoader.java:116) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:234) at com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:117) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:429) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) Mar 30, 2010 6:44:49 PM com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: [1269974689224000] javax.servlet.ServletContext log: loginService: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Parameter 0 of is of an unknown type 'java.lang.String/2004016611' at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:277) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java
RequestBuilder and compressed xml file
I have some larger xml files than I 'd like, but I need to pull them down and parse them client side. If I zip these up can I still use RequestBuilder to get the content to the client and deflate it, or is there a better way ? -- You received 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: Problem using java projects in GWT
This using Eclipse? Be sure it's actually in the classpath under the Run Configurations dialog, as the GWT compiler needs to find it there even if Eclipse doesn't. On Mar 30, 1:28 pm, Lucas Rios wrote: > Hi everybody > > I'm trying to use a Java project in GWT but I have had some problems > because I can't compile the GWT project. > > I have done this: > > 1.Make a xxx.gwt.xml in the java project. > 2. Add a external JAR (java project) in the java build path of the GWT > project. In Projects and libraries tabs. > 3. Reference a xxx.gwt.xml in GWT projects (gwt.xml) > 4. And last compile the GWT project... showing me those errors > > Compiling module ticketcheckGWT.Ticketcheck_GWT > Validating newly compiled units > [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/ > src/ticketcheckGWT/client/Ticketcheck_GWT.java' > [ERROR] Line 488: No source code is available for type > sura.ticketcheck.bo.Instancia; did you forget to inherit a required > module? > [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/ > src/ticketcheckGWT/client/ServiciosTicketcheck.java' > [ERROR] Line 13: No source code is available for type > sura.ticketcheck.bo.Instancia; did you forget to inherit a required > module? > [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/ > src/ticketcheckGWT/client/ServiciosTicketcheckAsync.java' > [ERROR] Line 12: No source code is available for type > sura.ticketcheck.bo.Instancia; did you forget to inherit a required > module? > [ERROR] Errors in 'jar:file:/D:/Lucas%20Ríos/GWT/gwanted/gwanted- > core.jar!/org/gwanted/gwt/core/client/logger/TimeLoggerImpl.java' > [ERROR] Line 92: Parameter 'widgetLoadTime': type 'long' is > not safe to access in JSNI code > For additional info see: file:/D:/Escritorio/eclipse-jee- > galileo-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle. > 2.0.1_2.0.1.v201002021445/gwt-2.0.1/doc/helpInfo/ > longJsniRestriction.html > Finding entry point classes > [ERROR] Unable to find type > 'ticketcheckGWT.client.Ticketcheck_GWT' > [ERROR] Hint: Previous compiler errors may have made this > type unavailable > [ERROR] Hint: Check the inheritance chain from your module; > it may not be inheriting a required module or a module may not be > adding its source path entries properly > > If somebody know how I can solve it please help me > > Thank for all > > Regards, > > LucasRR -- You received 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: RequestBuilder and compressed xml file
You don't have to do anything special on the client side - the browser will automatically deflate it before you get the content. Just make sure that your server side code respects accept-encoding request header before sending down a compressed file. --Sri On 31 March 2010 02:02, bradrover wrote: > I have some larger xml files than I 'd like, but I need to pull them > down and parse them client side. If I zip these up can I still use > RequestBuilder to get the content to the client and deflate it, or is > there a better way ? > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestBuilder and compressed xml file
I'm probably doing this wrong,but I compressed the xml file to a zip, when I request the zip file using RequestBiulder in hosted mode running Chrome it crashes the plug-in. com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection lost at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java: 1730) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java: 1668) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Thread.java:619) Caused by: java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java: 92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java: 123) at java.io.DataOutputStream.flush(DataOutputStream.java:106) at com.google.gwt.dev.shell.BrowserChannel $ReturnMessage.send(BrowserChannel.java:1341) at com.google.gwt.dev.shell.BrowserChannel $ReturnMessage.send(BrowserChannel.java:1346) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java: 1716) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java: 1668) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Thread.java:619) On Mar 30, 6:42 pm, Sripathi Krishnan wrote: > You don't have to do anything special on the client side - the browser will > automatically deflate it before you get the content. Just make sure that > your server side code respects accept-encoding request header before sending > down a compressed file. > > --Sri > > On 31 March 2010 02:02, bradrover wrote: > > > > > I have some larger xml files than I 'd like, but I need to pull them > > down and parse them client side. If I zip these up can I still use > > RequestBuilder to get the content to the client and deflate it, or is > > there a better way ? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to
Dynamic Module Loading
I know this is a common request of people trying to make pluggable applications. It seems that every time someone comes up with a solution to this problem the GWT team changes the way the core linkers work and break the solution. I was wondering if anyone knows a way to dynamically load a module either with a new linker, or a different method than the traditional appending a new script element to the end of the body. I try to append a script element to the end of the body and it completely blows the document away and freezes the page in a loading mode. I found an email exchange between members of the GWT contributors group in December where they discuss new methods for the default linkers using dynamic iframes. I have been exploring this capability since 1.5 and every time I revisit it the method(hack job) I used the last time will not work. I would really like a more consistent method. Every forum I have seen where someone asks this someone inevitably asks why, so let me head off this question by explaining. I have run into this in a few different situations, one when trying to integrate GWT "portlets" into Liferay(Java portlet). The second situation is in trying to create a dynamic binding of sorts. I have been trying to figure out a way to create a GWT portal where you could install modules and they could be added and removed dynamically without having to recompile the core, creating something similar to iGoogle or Liferay in a GWT/J2EE implementation. -- You received 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: RequestBuilder and compressed xml file
Well forget that error message... I'm just trying to figure out now why my RequestBuilder Accept-Enc0ding header is not being used. I add this code: requestBuilder.setHeader("Accept-Encoding", "gzip, deflate"); and I get this result in chrome for request headers: Referer:http://localhost:8080/SdssThinClient/sdssthinclient/ C72C3F6B8BCFC032CD4680AC42BFDF51.cache.html User-Agent:Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/ 533.3 (KHTML, like Gecko) Chrome/5.0.360.4 Safari/533.3 seems like this is pretty straightforward, so i don't get it On Mar 30, 8:18 pm, bradrover wrote: > I'm probably doing this wrong,but I compressed the xml file to a zip, > when I request the zip file using RequestBiulder in hosted mode > running Chrome it crashes the plug-in. > > com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote > connection lost > at > com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur > n(BrowserChannel.java: > 1730) > at > com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann > elServer.java: > 165) > at > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: > 120) > at > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: > 507) > at > com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: > 264) > at > com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j > ava: > 91) > at com.google.gwt.core.client.impl.Impl.apply(Impl.java) > at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) > at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp > l.java: > 25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) > at > com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) > at > com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a: > 157) > at > com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java : > 1668) > at > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan > nelServer.java: > 401) > at > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : > 222) > at java.lang.Thread.run(Thread.java:619) > Caused by: java.net.SocketException: Connection reset by peer: socket > write error > at java.net.SocketOutputStream.socketWrite0(Native Method) > at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java: > 92) > at java.net.SocketOutputStream.write(SocketOutputStream.java:136) > at > java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) > at java.io.BufferedOutputStream.flush(BufferedOutputStream.java: > 123) > at java.io.DataOutputStream.flush(DataOutputStream.java:106) > at com.google.gwt.dev.shell.BrowserChannel > $ReturnMessage.send(BrowserChannel.java:1341) > at com.google.gwt.dev.shell.BrowserChannel > $ReturnMessage.send(BrowserChannel.java:1346) > at > com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur > n(BrowserChannel.java: > 1716) > at > com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann > elServer.java: > 165) > at > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: > 120) > at > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: > 507) > at > com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: > 264) > at > com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j > ava: > 91) > at com.google.gwt.core.client.impl.Impl.apply(Impl.java) > at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) > at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp > l.java: > 25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) > at > com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) > at > com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a: > 157) > at > com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java : > 1668) > at > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan > nelServer.java: > 401) > at > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : > 222) > at java.lang.Thread.run(Thread.java:619) > > On Mar 30, 6:42 pm, Sripathi Krishnan > wrote: > > > > > You don't have to do anything special on the client side - the browser will > > automatically deflate it before you get the content. Just make sure that > > your server side code res
Re: Problem using java projects in GWT
You cannot use source code from a java project in GWT directly. All GWT code must be in the client path of a module. i.e. sura.ticketcheck.bo.Instancia is not part of a GWT module. There is one workaround I have gotten to work(only once, so no guarantee). 1) Create a file BoModule.gwt.xml in your source folder under the following path: sura/ticketcheck 2) Put the following text into the file: http://google-web-toolkit.googlecode.com/svn/tags/2.0.3/ distro-source/core/src/gwt-module.dtd"> 3) In your src/ticketcheckGWT/xxx.gwt.xml put Essentially what you are doing is tricking the GWT compiler into thinking that sura.ticketcheck has a module who's source is in the folder 'bo'. This should work as long as all files within package sura.ticketcheck.bo don't import outside of that package except standard java objects that are available through the com.google.gwt.user.User module. I have run into this several times and sometimes you just have to rewrite(copy and paste) stuff into a GWT project. On Mar 30, 1:25 pm, Lucas Rios wrote: > Hi everybody > > I'm trying to use a Java project in GWT but I have had some problems because > I can't compile the GWT project. > > I have done this: > > 1.Make a xxx.gwt.xml in the java project. > 2. Add a external JAR (java project) in the java build path of the GWT > project. In Projects and libraries tabs. > 3. Reference a xxx.gwt.xml in GWT projects (gwt.xml) > 4. And last compile the GWT project... showing me those errors > > Compiling module ticketcheckGWT.Ticketcheck_GWT > Validating newly compiled units > [ERROR] Errors in > 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/Ticketcheck_GWT.java' > [ERROR] Line 488: No source code is available for type > sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? > [ERROR] Errors in > 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheck.java' > [ERROR] Line 13: No source code is available for type > sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? > [ERROR] Errors in > 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheckAsync.java' > [ERROR] Line 12: No source code is available for type > sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? > [ERROR] Errors in > 'jar:file:/D:/Lucas%20Ríos/GWT/gwanted/gwanted-core.jar!/org/gwanted/gwt/core/client/logger/TimeLoggerImpl.java' > [ERROR] Line 92: Parameter 'widgetLoadTime': type 'long' is not > safe to access in JSNI code > For additional info see: > file:/D:/Escritorio/eclipse-jee-galileo-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.0.1_2.0.1.v201002021445/gwt-2.0.1/doc/helpInfo/longJsniRestriction.html > Finding entry point classes > [ERROR] Unable to find type 'ticketcheckGWT.client.Ticketcheck_GWT' > [ERROR] Hint: Previous compiler errors may have made this type > unavailable > [ERROR] Hint: Check the inheritance chain from your module; it may > not be inheriting a required module or a module may not be adding its source > path entries properly > > If somebody know how I can solve it please help me > > Thank for all > > Regards > > LucasRR -- You received 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: New GWT widget resource, of sorts: vaadin.com/directory
hi emarc, since u are familiar with vaadin, can i ask u an question regarding vaadin demo? Why every click from the demo will send a request to server to retrieve something like this : for(;;);[{"changes":[["change",{"format": "uidl","pid": "PID0"},["0", {"id": "PID0","height": "719px","width": "1440px","caption": "Native window }> Vaadin Sampler","name": "407096448","theme": "sampler- reindeer","resizable":true,"main":true,"layoutRelativeHeight":true,"layoutRelativeWidth":true,"v": {"scrollLeft":0,"scrollTop": 0,"action":"","positionx":-1,"positiony":-1,"close":false}},["open", {"src": "http:\/\/demo.vaadin.com\/sampler\/696850590\/","name": "_blank","width":500,"height":200,"border": "none"}],["1",{"id": "PID1","cached":true}],["actions",{}, "meta" : {}, "resources" : {}, "locales":[]}] this is the demo behavior or vaadin behavior which every widget will need to retrieve some data from server? On Mar 30, 9:26 pm, emarc wrote: > Hi, > > It occurs to me that the Vaadin Directory that was launched today > might actually be an interesting resource for GWT > widgets.http://vaadin.com/directory > (Also, I'm personally quite excited about it, and want spread the word > - feedback welcome!) > > It's not a plain GWT resource, since it's actually for Vaadin add-ons, > but since these usually have a client-side in GWT, and most are Apache > 2.0, it might be quite useful. > > At least I know I personally try to make the client-side of my Vaadin > components with 'plain GWT' use in mind. Just as an example: > PasswordField (a simple text field with chroma-hash and caps-lock > warninghttp://vaadin.com/directory#addon/77) is planned to be > published as a GWT widget when I get around to it, but the page links > to the SVN repository, so you could just get it from there and start > using... > Please still note that not all of the add-ons are relevant if you're > not actually using Vaadin. > > Oh, and of course the whole Directory is built with Vaadin, and thus > everything you see is GWT :-) > On the tooling side, if you're using eclipse and the vaadin plugin, > you just drop the jar in your lib, and the GWT stuff is automatically > recompiled (I think we might be the first to package GWT widgets like > this?) > > Also, if you have made some awesome GWT widget, you could wrap it as a > Vaadin add-on and charge for it in the Directory. Personally I like > Apache 2.0, though, keep that in mind ;-) > > Anyway, check it out, and feedback welcome - in this thread, or better > (since not everyone here will be interested) over at the Vaadin forum. > > Best Regards, > Marc -- You received 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: New GWT widget resource, of sorts: vaadin.com/directory
hi emarc, since u are familiar with vaadin, can i ask u a question regarding vaadin demo? Why every click from the demo will send a request to server to retrieve something like this : for(;;);[{"changes":[["change",{"format": "uidl","pid": "PID0"},["0", {"id": "PID0","height": "719px","width": "1440px","caption": "Native window }> Vaadin Sampler","name": "407096448","theme": "sampler- reindeer","resizable":true,"main":true,"layoutRelativeHeight":true,"layoutRelativeWidth":true,"v": {"scrollLeft":0,"scrollTop": 0,"action":"","positionx":-1,"positiony":-1,"close":false}},["open", {"src": "http:\/\/demo.vaadin.com\/sampler\/696850590\/","name": "_blank","width":500,"height":200,"border": "none"}],["1",{"id": "PID1","cached":true}],["actions",{}, "meta" : {}, "resources" : {}, "locales":[]}] this is the demo behavior or vaadin behavior which every widget will need to retrieve some data from server? On Mar 30, 9:26 pm, emarc wrote: > Hi, > > It occurs to me that the Vaadin Directory that was launched today > might actually be an interesting resource for GWT > widgets.http://vaadin.com/directory > (Also, I'm personally quite excited about it, and want spread the word > - feedback welcome!) > > It's not a plain GWT resource, since it's actually for Vaadin add-ons, > but since these usually have a client-side in GWT, and most are Apache > 2.0, it might be quite useful. > > At least I know I personally try to make the client-side of my Vaadin > components with 'plain GWT' use in mind. Just as an example: > PasswordField (a simple text field with chroma-hash and caps-lock > warninghttp://vaadin.com/directory#addon/77) is planned to be > published as a GWT widget when I get around to it, but the page links > to the SVN repository, so you could just get it from there and start > using... > Please still note that not all of the add-ons are relevant if you're > not actually using Vaadin. > > Oh, and of course the whole Directory is built with Vaadin, and thus > everything you see is GWT :-) > On the tooling side, if you're using eclipse and the vaadin plugin, > you just drop the jar in your lib, and the GWT stuff is automatically > recompiled (I think we might be the first to package GWT widgets like > this?) > > Also, if you have made some awesome GWT widget, you could wrap it as a > Vaadin add-on and charge for it in the Directory. Personally I like > Apache 2.0, though, keep that in mind ;-) > > Anyway, check it out, and feedback welcome - in this thread, or better > (since not everyone here will be interested) over at the Vaadin forum. > > Best Regards, > Marc -- You received 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: Newbie question : Problem with GWT RPC when running running through GWT + AppEngine tutorial
Ping! On Wed, Mar 31, 2010 at 1:58 AM, vijay wrote: > hi, > I am using GWT 2.0.3 version, I am going through the steps mentioned in GWT > tutorial > > http://code.google.com/webtoolkit/doc/latest/tutorial/appengine.html > > When trying to integrate login service I get following exception. I tried > using a normal GWT RPC and it also gave me similar exception. > > Mar 30, 2010 6:44:49 PM > com.google.appengine.tools.development.ApiProxyLocalImpl log > SEVERE: [1269974689208000] javax.servlet.ServletContext log: loginService: > ERROR: Failed to parse the policy file > '/stockwatcher/748E07BA5F0BCE26285053278C0378CB.gwt.rpc' > java.text.ParseException: Expected: className, [true | false] > at > com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream(SerializationPolicyLoader.java:116) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:234) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:117) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:429) > at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) > at > com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) > at > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) > at > com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) > at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) > at > com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) > at > com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352) > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) > at org.mortbay.jetty.Server.handle(Server.java:313) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) > at > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) > at > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) > at > org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) > > Mar 30, 2010 6:44:49 PM > com.google.appengine.tools.development.ApiProxyLocalImpl log > SEVERE: [1269974689224000] javax.servlet.ServletContext log: loginService: > An IncompatibleRemoteServiceException was thrown while processing this call. > com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: > Parameter 0 of is of an unknown type 'java.lang.String/2004016611' > at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:277) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) > at > com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) > at > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) > at > org.mo
Menu Item and MVP
Just sharing some thoughts Would the MenuItem class need to implement HasClickHandler so that when a MenuItem is clicked, the action can be handled in the presenter. At this time, the MenuItem needs an object that implements the Command interface, so the view seems to know about the presenter. I would like to know what others think about this. - mic. -- You received 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.
Extending widget built by UIBinder
I have a class UIPopup which is coded with UIBinder. public class UIPopup extends DecoratedPopupPanel { private static PopupUiBinder uiBinder = GWT.create(PopupUiBinder.class); interface PopupUiBinder extends UiBinder{} @UiFactory public UIPopup getThis(){ return this; } . . } Then I extended UIPopup and called the class PopupWin. public class PopupWin extends UIPopup { public PopupWin(MaineWin maine){ this.maine = maine; } final public MaineWin maine; } However, GWT compilation complained of errors: PopupWin has no default (zero args) constructor. To fix this, you can define a @UiFactory method on the UiBinder's owner, or annotate a constructor of PopupFrame with @UiConstructor. There are two possibilities to my getting the error: 1. There is a mistake in my code. 2. Any class extended from UIBinder must provide a zero arg constructor. 3. There is an undocumented UIBinder directive/annotation that can be used to instruct that UIBinder features should not be passed on to subclasses. I believe the case is due to possibility #2. If so, this is bad design on part of GWT architects. Because a programmer using my widget library should be blind to whether is was built using UIBinder or plain old java source coding. There also are valid reasons when I deliberately do not want the user of the library to have access to a zero arg constructor. Either way it is wrong and bad practice to have the user of my library to expect to be constrained by UIBinder. I would like to know if the error is due to case #1, #2 or #3. If case #2, I request such bad design policy be corrected. If case #3, does the GWT team need my help in writing the documentation. I am willing to donate my time because it is bad if GWT (and other Google products) features seem to follow the early days of Microsoft's practice of undocumented features, and you have to ask for them in forums or insiders. -- You received 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: Entry Points -- can you replace them in module.xml?
you have to set default value for supported_browser property. -p- On 30. Mar., 21:21 h., Skyfort wrote: > Hey all, I am trying to do something like this: > > > > > > > > > > > but it gives an ugly error. Is this even a possible thing to do? > > Here is the error -- thanks! > > [ERROR] Unable to load module entry point class > com.test.client.EntryPoint (see associated exception for details) > java.lang.NullPointerException: null > at java.util.TreeMap.getEntry(Unknown Source) > at java.util.TreeMap.containsKey(Unknown Source) > at java.util.TreeSet.contains(Unknown Source) > at > com.google.gwt.dev.cfg.BindingProperty.isAllowedValue(BindingProperty.java: > 63) > at > com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java: > 120) > at > com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getPropertyValue(ModuleSpacePropertyOracle.java: > 65) > at > com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval(ConditionWhenPropertyIs.java: > 48) > at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36) > at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:37) > at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36) > at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:35) > at com.google.gwt.dev.shell.StandardRebindOracle > $Rebinder.tryRebind(StandardRebindOracle.java:103) > at com.google.gwt.dev.shell.StandardRebindOracle > $Rebinder.rebind(StandardRebindOracle.java:62) > at > com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: > 172) > at > com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java: > 114) > at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:474) > at > com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: > 365) > at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:318) > at > com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java: > 343) > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access > $300(BrowserWidgetIE6.java:37) > at > com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java: > 77) > at > com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java: > 161) > at > com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java: > 294) > at > com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java: > 194) > at > org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java: > 117) > at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) > at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) > 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) -- You received 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.