Re: Best practices with typical LAMP backend and GWT frontend
Hello everybody, I already started coding some small applications using backends on LAMP and creating the frontend UI with GWT, I already know how to overcome the same origin issue while testing locally, and of course I have some working knowledge of Java, but now I need some advices about some unclear points -- or maybe they're clear and I am blind :) Suppose I have my backend application -- e.g. a web site rendering engine, not exactly what you'd call a backend but we'll make it work for this example by supposing it also has an engine to take data from a client application and store them in a database that will be used for rendering -- residing at localhost/mywebsite/. Now, suppose I want to write the administration panel, so I set up a GWT project called mywebsiteAdmin with the appropriate assumptions and configurations, and start coding. Everything works, I'm ready to compile the project and deploy it to my remote webserver. Now suppose that I already have the backend installed atwww.mywebsite.comand I want the admin interface to be available atwww.mywebsite.com/admin/. First of all, I take all the relevant files from mywebsiteAdmin/war/ and put them into localhost/mywebsite/admin/. Then I upload this directory to my remote server and launch it. Oops, I hardcoded the url to which to make remote requests, which is localhost/mywebsite/remotelistener.php. Let's go and change it, but how? If I locally run the application from the project's url, I get something likehttp://localhost/mywebsiteAdmin/war/MywebsiteAdmin.html, but if I try to locally run it from the backend's url I get something likehttp://localhost/mywebsite/admin/MywebsiteAdmin.html(which is also quite ugly, but of course I can rename that file to index.html and ignore it) and finally when I go remote, I getwww.mywebsite.com/ admin/MywebsiteAdmin.html(of course I can still rename it to index.html) and here comes the point. My remote listener is both at localhost/mywebsite/remotelistener.php and atwww.mywebsite/ remotelistener.phpand my admin application can be at a large variety of different urls. Solution: have the location to be discovered automatically by the GWT frontend. Wait. I hope you see the difficulty by yourselves, because I've already seen it for an entire day now trying to make some regexp/ conditions to do the job. No success. Solution 2: have a config file that tells me where the remote listener is. No, wait. How can I retrieve a remote file if I can't make requests? Beside this, I'd rather not have my users have to edit two separate files, because the only way I see this working (not too hopeful, though) is having the file put together with the admin application. Of course I can have these two files created via some sort of install procedure, but I'd rather keep this as a last resort. Other ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to know when a Widget is fully loaded....
You can generally hook into when a widget is ready in the DOM by overriding it's onLoad() method. However, if you have Images you need to do more work as whilst the DOM aspect of the Image widget may be ready in DOM it may not have size as the actual image is not downloaded yet - your resizing is most likely working a second time around as images are also already cached and available immediately. I can think of two options of the top of my head, there are probably more a) use LoadHandlers on your Image(s) these will tell you when the Image has loaded and then you can trigger your resize (however, it's not 100% perfect with IE and the current version of GWT - http://code.google.com/p/google-web-toolkit/issues/detail?id=863&q=ie%20loadlistener) b) enforce Image size using CSS either directly on the Image, or put the Image widget in another container (SimplePanel, for example) and set Image to 100% and size of SimplePanel to what you require through CSS c) do what you're doing with a timer until approach in (a) is fixed in gwt I wonder though if you can't achieve what you want just by using percentages in Style Sheet Hope that helps //Adam On 27 Juni, 16:42, Sean wrote: > I'm having trouble with pictures loading fully to know a widgets full > size. I have my main website component as a Composite. It's got quite > a few pictures, including one large one. I place this main component > on an Absolute Panel. I have a Resize Listener to figure out how big > the Client Window is, and if it's larger then the main component, make > the Absolute Panel as big as the Client window and put the main > component in the middle of the ABS. > > It works perfectly when the page is cached, however, if it's not, the > size of the main component can be anywhere from 0-300-to1044(it's full > size) depending on what's loaded the first time I try to arrange them > all together. > > How can I, besides using a timer with an arbitrary time, know when all > of the main component's sub-components are loaded to know when to call > the resize function? > > Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: same-origin security restriction
Hi, What port of service do you suggest to use ? I am a complete newbie and please suggest on how to make a proxy. currently authentication server runs on 6828. and GWT runs on , so please suggest the change here. On Sun, Jun 28, 2009 at 12:29 PM, Marcelo Emanoel B. Diniz < marceloeman...@gmail.com> wrote: > > the problem is with the port that serves the authentication code... > SOP takes to account server and port you'll have to write a proxy > or change the port of the service... > > On Jun 27, 3:48 am, Surya wrote: > > I have tomcat server running on port 6828. I have GWT hosted mode > > running on jetty . > > > > When i try to access tomcat on 6828 for spring authentication using > > the code ::: > > > > RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url); > > builder.setHeader("Content-Type", > "application/x-www-form- > > urlencoded"); > > builder.setHeader("Expires","0"); > > > > try { > > > > builder.sendRequest(postData, this); > > } catch (RequestException e) { > > console.addMessage("Exception during > authentication " + e.getMessage > > ()); > > } > > > > I get the following exception on the builder.sendRequest > > (postData,this) line. > > > > com.google.gwt.http.client.RequestPermissionException: The > URLhttp://localhost:6828/xx/j_spring_security_checkis invalid or > > violates the same-origin security restriction > > Detailed Message : Access is denied. > > > > I am really running short of time. Some one please help me out. > > > --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Problem specifying Grid's cell size
Hi I want to achieve a rounded corner rectangle using Grid. Here I create a 3x3 grid: Grid grid = new Grid(3, 3); grid.setCellPadding(0); grid.setCellSpacing(0); // display the border for debugging grid.setBorderWidth(1); Imagine that I have a 5x5 pixel corner images, so I specify the width and height of the top row like the following: CellFormatter formatter = grid.getCellFormatter(); // top left corner formatter.setWidth(0, 0, "5px"); formatter.setHeight(0, 0, "5px"); // top center formatter.setWidth(0, 1, "100%"); formatter.setHeight(0, 1, "5px"); // top right corner formatter.setWidth(0, 2, "5px"); formatter.setHeight(0, 2, "5px"); The problem is when tested in hosted mode, the cell doesn't display in the specified height! Did I miss anything here? Please help, thank you! -- Hez --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
PHP & Javascript friendly bookmarks/query strings... ?#?#?#?
Ive been building a dynamic website, with the content displayed chosen by the current contents of the history/bookmark token at the end of the url. eg. /main.html#DisplayReview=220 This works great, as the whole site doesn't have to be refreshed, hugely reducing bandwidth for me and speeding up the site for the users. This is, of course,whats recommended to do. My site is also, so far, completely bookmarkable this way. URLs link directly to the current state of the appas it should. My users should be able to swap links just like any other site. Problem is, I want the site to happly work when javascript is disabled as well. If nothing else, this is needed for search-engines to index it correctly. So I needed a way for php to display the same content from the same links ...only to find, to my horror, php cant seem to access anything past the "#"...its as good as invisible! HELP!!! Even hiding it in a query string dosnt work ( /main?blah#DisplayReview=220.only the blah is detected). Now, I cant change my #'s links to ?'s...as dynamic query string changes make the page reload, and it would completely break my history- support. So I'm left a bit puzzled as to what I can do. How can I keep the sites states bookmarkable, but also have those same URLs readable by php? I really dont want to resort to an extra "click to get url" unless I absolutely have too. (and besides, wouldnt that also mess up search engine indexing? ) Ive got a vague idea that .htaccess voodoo might help me out. Maybe htaccess can itself see the # data when the user requests the url, and dynamically change it to a ?. (?) I'm not hot with htaccess at all, so it might not be able to do either, then I really am stuck. I know htaccess stuff isnt strictly ontopic, but I'm asking here because it seems like a common problem people building gwt sites would have. Unfortunately googleing this stuff is useless(# and ? arnt exactly mySQL-based search engine friendly querys...google dosnt seem to support escaping your searchs). ..so I hope someone here can help. I also hope I made myself clear. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT1.6 & Eclipse Version: 3.4.2 [Debugging Issue]
Just installed 1.6.0_13 from http://java.sun.com/products/archive/j2se/6u13/index.html switched to it in Eclipse and still th Hosted Mode is not working. All the static HTML content is displayed but nothing else. Everything works fine once it's compiled and accessed from the browser. Could it be a Windows 7 related issue? Any help is appreciated. On Jun 27, 8:35 pm, Paul Robinson wrote: > You're probably using jdk 1.6.0_14 which causes this. Downgrade to 1.6.0_13 > > > > Rehan Azher wrote: > > Hi All, > > > I am facing a problem while trying to debug my application under > > Hosted Mode on subjected eclipse version with GWT1.6. > > > I set break points but when I debug project it just ignores the all > > break points. I find come threads on this issue but have not been able > > to solve the issue. > > > Any help in this regard please. > > > Thanks and best regards, > > > Rehan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT1.6 & Eclipse Version: 3.4.2 [Debugging Issue]
Are you absolutely sure nothing is using the old jvm? Can you remove/rename the executable or directory to be certain? Farinha wrote: > Just installed 1.6.0_13 from > > http://java.sun.com/products/archive/j2se/6u13/index.html > > switched to it in Eclipse and still th Hosted Mode is not working. All > the static HTML content is displayed but nothing else. > Everything works fine once it's compiled and accessed from the > browser. > > Could it be a Windows 7 related issue? > > Any help is appreciated. > > > On Jun 27, 8:35 pm, Paul Robinson wrote: > >> You're probably using jdk 1.6.0_14 which causes this. Downgrade to 1.6.0_13 >> >> >> >> Rehan Azher wrote: >> >>> Hi All, >>> >>> I am facing a problem while trying to debug my application under >>> Hosted Mode on subjected eclipse version with GWT1.6. >>> >>> I set break points but when I debug project it just ignores the all >>> break points. I find come threads on this issue but have not been able >>> to solve the issue. >>> >>> Any help in this regard please. >>> >>> Thanks and best regards, >>> >>> Rehan > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: PHP & Javascript friendly bookmarks/query strings... ?#?#?#?
You can't do it. The server doesn't get sent the stuff from the # onwards. Ian http://examples.roughian.com 2009/6/28 darkflame > > Ive been building a dynamic website, with the content displayed chosen > by the current contents of the history/bookmark token at the end of > the url. > eg. > /main.html#DisplayReview=220 > > This works great, as the whole site doesn't have to be refreshed, > hugely reducing bandwidth for me and speeding up the site for the > users. This is, of course,whats recommended to do. > > My site is also, so far, completely bookmarkable this way. URLs link > directly to the current state of the appas it should. My users > should be able to swap links just like any other site. > > Problem is, I want the site to happly work when javascript is disabled > as well. If nothing else, this is needed for search-engines to index > it correctly. So I needed a way for php to display the same content > from the same links > ...only to find, to my horror, php cant seem to access anything past > the "#"...its as good as invisible! > > HELP!!! > > Even hiding it in a query string dosnt work > ( /main?blah#DisplayReview=220.only the blah is detected). > > Now, I cant change my #'s links to ?'s...as dynamic query string > changes make the page reload, and it would completely break my history- > support. > > So I'm left a bit puzzled as to what I can do. > > How can I keep the sites states bookmarkable, but also have those same > URLs readable by php? > I really dont want to resort to an extra "click to get url" unless I > absolutely have too. (and besides, wouldnt that also mess up search > engine indexing? ) > > Ive got a vague idea that .htaccess voodoo might help me out. > > Maybe htaccess can itself see the # data when the user requests the > url, and dynamically change it to a ?. (?) > > I'm not hot with htaccess at all, so it might not be able to do > either, then I really am stuck. > > I know htaccess stuff isnt strictly ontopic, but I'm asking here > because it seems like a common problem people building gwt sites would > have. > Unfortunately googleing this stuff is useless(# and ? arnt exactly > mySQL-based search engine friendly querys...google dosnt seem to > support escaping your searchs). > > ..so I hope someone here can help. > > > I also hope I made myself clear. > > > --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Error installing GWT plugin for Eclipse
I can't the eclipse pligin to instal... i keep getting this error! http://i616.photobucket.com/albums/tt248/chukkii_2009/error-1.jpg --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
New problem of blurHandler and setFocus on GWT 1.6
Hi, When I set setFocus on a object it is focussed and immediatly after, an onBlur event is send. I did not have this problem on 1.5 with focus listener. You can see the code below. "solidify" is call immediatly after we have time to see that the area of text has been selected. Maybe the onClick event haven't been destroyed ? Thank for your help, Nono public void edit() { this.clear(); areaOfText = new SuggestBox(Text.suggestions); areaOfText.setText(text.content); areaOfText.addStyleDependentName(Integer.toString(level)); /* PROBLEM HERE */ areaOfText.getTextBox().addBlurHandler(new BlurHandler(){ public void onBlur(BlurEvent event) { solidify(areaOfText.getText()); } }); this.add(areaOfText); areaOfText.setFocus(true); /* END PROBLEM */ } public void solidify(String newContent) { if (!newContent.equals(text.content)) { this.text = text.createNewText(newContent); this.info = this.info.createNewInfo("text", text.id); } this.clear(); label = new Label(text.content); label.addStyleDependentName(Integer.toString(level)); /* MAYBE PROBLEM HERE */ label.addClickHandler(new ClickHandler(){ public void onClick(ClickEvent event) { edit(); } }); this.add(label); } --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Newbie question re returning persisted objects via RPC to client
Let's say I want to persist Animal objects using JDO and also want to return these Animal objects via a GWT RPC service. From what I understand GWT will compile a version of Animal in javascript on the client. And I take it that any JDO persistence stuff shouldn't be going down to the client. So do I have to create two separate classes for my Animal type: one used on the server for persistence via JDO and another which the client uses over RPC. Is this the normal thing to do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Error installing GWT plugin for Eclipse
Hi, Try to re-download the archive. It seems to have a problem with your jar file... Regards, 2009/6/28 Bruce Choi > > I can't the eclipse pligin to instal... i keep getting this error! > > http://i616.photobucket.com/albums/tt248/chukkii_2009/error-1.jpg > > > > -- Damien Picard Open Source BPM : http://osbpm.axeiya.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: New problem of blurHandler and setFocus on GWT 1.6
Hi, Could you try to addBlurEvent after setting focus to true ? Regards, 2009/6/28 Arnaud Blanchard > Hi, > When I set setFocus on a object it is focussed and immediatly after, an > onBlur event is send. I did not have this problem on 1.5 with focus > listener. You can see the code below. "solidify" is call immediatly after we > have time to see that the area of text has been selected. Maybe the onClick > event haven't been destroyed ? > > Thank for your help, > > Nono > > > public void edit() > { > this.clear(); > areaOfText = new SuggestBox(Text.suggestions); > areaOfText.setText(text.content); > areaOfText.addStyleDependentName(Integer.toString(level)); > > > /* PROBLEM HERE */ > areaOfText.getTextBox().addBlurHandler(new BlurHandler(){ > public void onBlur(BlurEvent event) { > solidify(areaOfText.getText()); > } > }); > this.add(areaOfText); > areaOfText.setFocus(true); > /* END PROBLEM */ > } > > > public void solidify(String newContent) > { > if (!newContent.equals(text.content)) > { > this.text = text.createNewText(newContent); > this.info = this.info.createNewInfo("text", text.id); > } > this.clear(); > label = new Label(text.content); > label.addStyleDependentName(Integer.toString(level)); > > > /* MAYBE PROBLEM HERE */ > label.addClickHandler(new ClickHandler(){ > public void onClick(ClickEvent event) { > edit(); > } > }); > this.add(label); > } > > > > -- Damien Picard Open Source BPM : http://osbpm.axeiya.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: PHP & Javascript friendly bookmarks/query strings... ?#?#?#?
-sigh- Well, at least thats a clear cut answer ;) Pitty. Guess I'll have to use a "click here to get url" button and try to restructure any outgoing links pointing back to use a ? query for the search engines sake. 2009/6/29 Ian Bambury : > You can't do it. The server doesn't get sent the stuff from the # onwards. > Ian > > http://examples.roughian.com > > > 2009/6/28 darkflame >> >> Ive been building a dynamic website, with the content displayed chosen >> by the current contents of the history/bookmark token at the end of >> the url. >> eg. >> /main.html#DisplayReview=220 >> >> This works great, as the whole site doesn't have to be refreshed, >> hugely reducing bandwidth for me and speeding up the site for the >> users. This is, of course,whats recommended to do. >> >> My site is also, so far, completely bookmarkable this way. URLs link >> directly to the current state of the appas it should. My users >> should be able to swap links just like any other site. >> >> Problem is, I want the site to happly work when javascript is disabled >> as well. If nothing else, this is needed for search-engines to index >> it correctly. So I needed a way for php to display the same content >> from the same links >> ...only to find, to my horror, php cant seem to access anything past >> the "#"...its as good as invisible! >> >> HELP!!! >> >> Even hiding it in a query string dosnt work >> ( /main?blah#DisplayReview=220.only the blah is detected). >> >> Now, I cant change my #'s links to ?'s...as dynamic query string >> changes make the page reload, and it would completely break my history- >> support. >> >> So I'm left a bit puzzled as to what I can do. >> >> How can I keep the sites states bookmarkable, but also have those same >> URLs readable by php? >> I really dont want to resort to an extra "click to get url" unless I >> absolutely have too. (and besides, wouldnt that also mess up search >> engine indexing? ) >> >> Ive got a vague idea that .htaccess voodoo might help me out. >> >> Maybe htaccess can itself see the # data when the user requests the >> url, and dynamically change it to a ?. (?) >> >> I'm not hot with htaccess at all, so it might not be able to do >> either, then I really am stuck. >> >> I know htaccess stuff isnt strictly ontopic, but I'm asking here >> because it seems like a common problem people building gwt sites would >> have. >> Unfortunately googleing this stuff is useless(# and ? arnt exactly >> mySQL-based search engine friendly querys...google dosnt seem to >> support escaping your searchs). >> >> ..so I hope someone here can help. >> >> >> I also hope I made myself clear. >> > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: OOPHM with Apache?
Thanks a lot Thomas, this was really helpful! HostedMode -noserver makes a lot more sense to me now. Now, off to experiment... ~Carver On Jun 26, 6:00 pm, Thomas Broyer wrote: > On 26 juin, 19:27,Carver wrote: > > > > How is it possible for Hosted mode to intercept the loading of > > the javascript module, if the embedded server can't filter the > > traffic? > > The .nocache.js will be loaded from Apache, and it contains > some code that will detect it's running inside Hosted Mode, so it > won't request any *.nocache.html file; it'll load hosted.html instead, > which in turn contains some code to "connect" to the Hosted Mode. > > I don't know how it's supposed to work exactly in OOPHM (I'm not yet > using it, though I have worked a bit on an Adobe AIR OOPHM six months > ago) but my understanding is that it's the same: the > .nocache.js will see the gwt.hosted= in the query string and > will then use hosted.html instead of a *.cache.html; hosted.html will > then load the OOPHM browser plug-in which will connect to HostedMode. > Same as HostedMode without OOPHM except that it uses a browser plug-in > instead of the special window.external.gwtOnLoad that's injected into > the embedded browser. > > Of course, for this to work, the app that is deployed on your Apache > server must have been compiled with GWT trunk so it has the proper > .nocache.js (which knows about OOPHM) and hosted.html (to load > the OOPHM plug-in instead of relying on window.external.gwtOnLoad) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: PHP & Javascript friendly bookmarks/query strings... ?#?#?#?
I don't know if this will help you, but maybe you're thinking about the problem backwards. "Javascript-enabled" is a pretty flexible environment--at least more flexible than "Javascript-disabled". Maybe the canonical URLs should be PHP-visible, and the Javascript-enabled version should somehow munge the URLs on the client side to avoid reloads. Search for "hijax" and see if it helps you come at the problem from a different angle. Ian On Sun, Jun 28, 2009 at 11:32 AM, Thomas Wrobel wrote: > > -sigh- > Well, at least thats a clear cut answer ;) > Pitty. > Guess I'll have to use a "click here to get url" button and try to > restructure any outgoing links pointing back to use a ? query for the > search engines sake. > > > 2009/6/29 Ian Bambury : >> You can't do it. The server doesn't get sent the stuff from the # onwards. >> Ian >> >> http://examples.roughian.com >> >> >> 2009/6/28 darkflame >>> >>> Ive been building a dynamic website, with the content displayed chosen >>> by the current contents of the history/bookmark token at the end of >>> the url. >>> eg. >>> /main.html#DisplayReview=220 >>> >>> This works great, as the whole site doesn't have to be refreshed, >>> hugely reducing bandwidth for me and speeding up the site for the >>> users. This is, of course,whats recommended to do. >>> >>> My site is also, so far, completely bookmarkable this way. URLs link >>> directly to the current state of the appas it should. My users >>> should be able to swap links just like any other site. >>> >>> Problem is, I want the site to happly work when javascript is disabled >>> as well. If nothing else, this is needed for search-engines to index >>> it correctly. So I needed a way for php to display the same content >>> from the same links >>> ...only to find, to my horror, php cant seem to access anything past >>> the "#"...its as good as invisible! >>> >>> HELP!!! >>> >>> Even hiding it in a query string dosnt work >>> ( /main?blah#DisplayReview=220.only the blah is detected). >>> >>> Now, I cant change my #'s links to ?'s...as dynamic query string >>> changes make the page reload, and it would completely break my history- >>> support. >>> >>> So I'm left a bit puzzled as to what I can do. >>> >>> How can I keep the sites states bookmarkable, but also have those same >>> URLs readable by php? >>> I really dont want to resort to an extra "click to get url" unless I >>> absolutely have too. (and besides, wouldnt that also mess up search >>> engine indexing? ) >>> >>> Ive got a vague idea that .htaccess voodoo might help me out. >>> >>> Maybe htaccess can itself see the # data when the user requests the >>> url, and dynamically change it to a ?. (?) >>> >>> I'm not hot with htaccess at all, so it might not be able to do >>> either, then I really am stuck. >>> >>> I know htaccess stuff isnt strictly ontopic, but I'm asking here >>> because it seems like a common problem people building gwt sites would >>> have. >>> Unfortunately googleing this stuff is useless(# and ? arnt exactly >>> mySQL-based search engine friendly querys...google dosnt seem to >>> support escaping your searchs). >>> >>> ..so I hope someone here can help. >>> >>> >>> I also hope I made myself clear. >>> >> >> >> > >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem specifying Grid's cell size
Yep. There's an in the cell so you will have to set the font size really small. You'd be better off doing all this by setting style classes and doing it in css. Ian http://examples.roughian.com 2009/6/28 hezjing > Hi > > I want to achieve a rounded corner rectangle using Grid. > > Here I create a 3x3 grid: > > Grid grid = new Grid(3, 3); > grid.setCellPadding(0); > grid.setCellSpacing(0); > // display the border for debugging > grid.setBorderWidth(1); > > > Imagine that I have a 5x5 pixel corner images, so I specify the width and > height of the top row like the following: > > CellFormatter formatter = grid.getCellFormatter(); > // top left corner > formatter.setWidth(0, 0, "5px"); > formatter.setHeight(0, 0, "5px"); > // top center > formatter.setWidth(0, 1, "100%"); > formatter.setHeight(0, 1, "5px"); > // top right corner > formatter.setWidth(0, 2, "5px"); > formatter.setHeight(0, 2, "5px"); > > > The problem is when tested in hosted mode, the cell doesn't display in the > specified height! > > Did I miss anything here? > > > Please help, thank you! > > > -- > > Hez > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: PHP & Javascript friendly bookmarks/query strings... ?#?#?#?
Thats actualy really interesting (hijax) I never thought about a site constructed like that. I think that could work for me, unfortuntely its far too late in the game for me to take that approach, not just the re-writing but the "mental shift" is a bit much at this stage. But I'll bare it in mind for future because that seems a rather elegant way to write ajax/php sites. ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) 2009/6/29 Ian Petersen : > > I don't know if this will help you, but maybe you're thinking about > the problem backwards. "Javascript-enabled" is a pretty flexible > environment--at least more flexible than "Javascript-disabled". Maybe > the canonical URLs should be PHP-visible, and the Javascript-enabled > version should somehow munge the URLs on the client side to avoid > reloads. Search for "hijax" and see if it helps you come at the > problem from a different angle. > > Ian > > On Sun, Jun 28, 2009 at 11:32 AM, Thomas Wrobel wrote: >> >> -sigh- >> Well, at least thats a clear cut answer ;) >> Pitty. >> Guess I'll have to use a "click here to get url" button and try to >> restructure any outgoing links pointing back to use a ? query for the >> search engines sake. >> >> >> 2009/6/29 Ian Bambury : >>> You can't do it. The server doesn't get sent the stuff from the # onwards. >>> Ian >>> >>> http://examples.roughian.com >>> >>> >>> 2009/6/28 darkflame Ive been building a dynamic website, with the content displayed chosen by the current contents of the history/bookmark token at the end of the url. eg. /main.html#DisplayReview=220 This works great, as the whole site doesn't have to be refreshed, hugely reducing bandwidth for me and speeding up the site for the users. This is, of course,whats recommended to do. My site is also, so far, completely bookmarkable this way. URLs link directly to the current state of the appas it should. My users should be able to swap links just like any other site. Problem is, I want the site to happly work when javascript is disabled as well. If nothing else, this is needed for search-engines to index it correctly. So I needed a way for php to display the same content from the same links ...only to find, to my horror, php cant seem to access anything past the "#"...its as good as invisible! HELP!!! Even hiding it in a query string dosnt work ( /main?blah#DisplayReview=220.only the blah is detected). Now, I cant change my #'s links to ?'s...as dynamic query string changes make the page reload, and it would completely break my history- support. So I'm left a bit puzzled as to what I can do. How can I keep the sites states bookmarkable, but also have those same URLs readable by php? I really dont want to resort to an extra "click to get url" unless I absolutely have too. (and besides, wouldnt that also mess up search engine indexing? ) Ive got a vague idea that .htaccess voodoo might help me out. Maybe htaccess can itself see the # data when the user requests the url, and dynamically change it to a ?. (?) I'm not hot with htaccess at all, so it might not be able to do either, then I really am stuck. I know htaccess stuff isnt strictly ontopic, but I'm asking here because it seems like a common problem people building gwt sites would have. Unfortunately googleing this stuff is useless(# and ? arnt exactly mySQL-based search engine friendly querys...google dosnt seem to support escaping your searchs). ..so I hope someone here can help. I also hope I made myself clear. >>> >>> >>> > >>> >> >> > >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: PHP & Javascript friendly bookmarks/query strings... ?#?#?#?
What you need is a non-js site structure which matches your gwt structure except for the ? and # Without the #stuff, the search engines will go to the index page and just recursively find all your non-js structure. The search engines display site.com/?thing=220 etc and that will be the link in the serps. Non-js users will get that non-js page. But...js users get to execute a little script which replaces the ? with a # and redirects them to the gwt site but with the right bookmark to see the right gwt page. Not absolutely ideal because visitors from the serps get an initial (albeit invisible) redirect, and any sites that cut and paste from the address bar will point search engines to the index page, and you need to structure your site in the right way to make the non-js site trivial (mine is just 3 PHP pages). But it's better than not doing it IMO. Contact me off-list if you want to see if my way of doing it could work for you Cheers, Ian http://examples.roughian.com 2009/6/28 Thomas Wrobel > > -sigh- > Well, at least thats a clear cut answer ;) > Pitty. > Guess I'll have to use a "click here to get url" button and try to > restructure any outgoing links pointing back to use a ? query for the > search engines sake. > > > 2009/6/29 Ian Bambury : > > You can't do it. The server doesn't get sent the stuff from the # > onwards. > > Ian > > > > http://examples.roughian.com > > > > > > 2009/6/28 darkflame > >> > >> Ive been building a dynamic website, with the content displayed chosen > >> by the current contents of the history/bookmark token at the end of > >> the url. > >> eg. > >> /main.html#DisplayReview=220 > >> > >> This works great, as the whole site doesn't have to be refreshed, > >> hugely reducing bandwidth for me and speeding up the site for the > >> users. This is, of course,whats recommended to do. > >> > >> My site is also, so far, completely bookmarkable this way. URLs link > >> directly to the current state of the appas it should. My users > >> should be able to swap links just like any other site. > >> > >> Problem is, I want the site to happly work when javascript is disabled > >> as well. If nothing else, this is needed for search-engines to index > >> it correctly. So I needed a way for php to display the same content > >> from the same links > >> ...only to find, to my horror, php cant seem to access anything past > >> the "#"...its as good as invisible! > >> > >> HELP!!! > >> > >> Even hiding it in a query string dosnt work > >> ( /main?blah#DisplayReview=220.only the blah is detected). > >> > >> Now, I cant change my #'s links to ?'s...as dynamic query string > >> changes make the page reload, and it would completely break my history- > >> support. > >> > >> So I'm left a bit puzzled as to what I can do. > >> > >> How can I keep the sites states bookmarkable, but also have those same > >> URLs readable by php? > >> I really dont want to resort to an extra "click to get url" unless I > >> absolutely have too. (and besides, wouldnt that also mess up search > >> engine indexing? ) > >> > >> Ive got a vague idea that .htaccess voodoo might help me out. > >> > >> Maybe htaccess can itself see the # data when the user requests the > >> url, and dynamically change it to a ?. (?) > >> > >> I'm not hot with htaccess at all, so it might not be able to do > >> either, then I really am stuck. > >> > >> I know htaccess stuff isnt strictly ontopic, but I'm asking here > >> because it seems like a common problem people building gwt sites would > >> have. > >> Unfortunately googleing this stuff is useless(# and ? arnt exactly > >> mySQL-based search engine friendly querys...google dosnt seem to > >> support escaping your searchs). > >> > >> ..so I hope someone here can help. > >> > >> > >> I also hope I made myself clear. > >> > > > > > > > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: PHP & Javascript friendly bookmarks/query strings... ?#?#?#?
That seems a fairly good approach to take. I think that will work for me. Not perfect, but it will do. My site probably needs just two php scripts..one to display a set of search results, and one to display a specific result. (+the homepage which is already a purely php-thing, Gwt parsers its html on loading). So it shouldn't take too much adjustment. I'll try to make the adjustments myself over the next few days. I'll let you know how I get on :) 2009/6/29 Ian Bambury : > What you need is a non-js site structure which matches your gwt structure > except for the ? and # > Without the #stuff, the search engines will go to the index page and just > recursively find all your non-js structure. > The search engines display site.com/?thing=220 etc and that will be the link > in the serps. Non-js users will get that non-js page. > But...js users get to execute a little script which replaces the ? with a # > and redirects them to the gwt site but with the right bookmark to see the > right gwt page. > Not absolutely ideal because visitors from the serps get an initial (albeit > invisible) redirect, and any sites that cut and paste from the address bar > will point search engines to the index page, and you need to structure your > site in the right way to make the non-js site trivial (mine is just 3 PHP > pages). > But it's better than not doing it IMO. > Contact me off-list if you want to see if my way of doing it could work for > you > Cheers, > Ian > > http://examples.roughian.com > > > 2009/6/28 Thomas Wrobel >> >> -sigh- >> Well, at least thats a clear cut answer ;) >> Pitty. >> Guess I'll have to use a "click here to get url" button and try to >> restructure any outgoing links pointing back to use a ? query for the >> search engines sake. >> >> >> 2009/6/29 Ian Bambury : >> > You can't do it. The server doesn't get sent the stuff from the # >> > onwards. >> > Ian >> > >> > http://examples.roughian.com >> > >> > >> > 2009/6/28 darkflame >> >> >> >> Ive been building a dynamic website, with the content displayed chosen >> >> by the current contents of the history/bookmark token at the end of >> >> the url. >> >> eg. >> >> /main.html#DisplayReview=220 >> >> >> >> This works great, as the whole site doesn't have to be refreshed, >> >> hugely reducing bandwidth for me and speeding up the site for the >> >> users. This is, of course,whats recommended to do. >> >> >> >> My site is also, so far, completely bookmarkable this way. URLs link >> >> directly to the current state of the appas it should. My users >> >> should be able to swap links just like any other site. >> >> >> >> Problem is, I want the site to happly work when javascript is disabled >> >> as well. If nothing else, this is needed for search-engines to index >> >> it correctly. So I needed a way for php to display the same content >> >> from the same links >> >> ...only to find, to my horror, php cant seem to access anything past >> >> the "#"...its as good as invisible! >> >> >> >> HELP!!! >> >> >> >> Even hiding it in a query string dosnt work >> >> ( /main?blah#DisplayReview=220.only the blah is detected). >> >> >> >> Now, I cant change my #'s links to ?'s...as dynamic query string >> >> changes make the page reload, and it would completely break my history- >> >> support. >> >> >> >> So I'm left a bit puzzled as to what I can do. >> >> >> >> How can I keep the sites states bookmarkable, but also have those same >> >> URLs readable by php? >> >> I really dont want to resort to an extra "click to get url" unless I >> >> absolutely have too. (and besides, wouldnt that also mess up search >> >> engine indexing? ) >> >> >> >> Ive got a vague idea that .htaccess voodoo might help me out. >> >> >> >> Maybe htaccess can itself see the # data when the user requests the >> >> url, and dynamically change it to a ?. (?) >> >> >> >> I'm not hot with htaccess at all, so it might not be able to do >> >> either, then I really am stuck. >> >> >> >> I know htaccess stuff isnt strictly ontopic, but I'm asking here >> >> because it seems like a common problem people building gwt sites would >> >> have. >> >> Unfortunately googleing this stuff is useless(# and ? arnt exactly >> >> mySQL-based search engine friendly querys...google dosnt seem to >> >> support escaping your searchs). >> >> >> >> ..so I hope someone here can help. >> >> >> >> >> >> I also hope I made myself clear. >> >> >> > >> > >> > > >> > >> >> > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem specifying Grid's cell size
Thanks Ian, the problem is resolved by setting the font size really small. Note also that we don't have to set the font size for all the cells, only setting the font size of the 1st row will do. So here is my CSS for the cells in the 1st row: .my-topLeft { background: url(images/wb-corner.png) no-repeat 0px 0px; width: 5px; height: 5px; font-size: 1px; } .my-topCenter { background: url(images/wb-hborder-top.png) repeat-x; width: 100%; height: 5px; font-size: 1px; } .my-topRight { background: url(images/wb-corner.png) no-repeat -5px 0px; width: 5px; height: 5px; font-size: 1px; } Then, I specify the above CSS into the grid to get a rounded corner effect: Grid grid = new Grid(3, 3); grid.setCellSpacing(0); grid.setText(1, 1, "My Title"); CellFormatter formatter = grid.getCellFormatter(); formatter.setStyleName(0, 0, "my-topLeft"); formatter.setStyleName(0, 1, "my-topCenter"); formatter.setStyleName(0, 2, "my-topRight"); The above code is working fine, I have my rounded corner rectangle! Here come with another question: I have to specify the cell spacing by calling grid.setCellSpacing(0) How can I move this cell spacing into the CSS? I tried to create and set the CSS like the following: .my { margin: 0px; padding: 0px; } Grid grid = new Grid(3, 3); // grid.setCellSpacing(0); grid.setStyleName("my"); But the above code doesn't work, I still have to specify the cell spacing in the Java code :-( Appreciate your advice, thank you! On Mon, Jun 29, 2009 at 3:46 AM, Ian Bambury wrote: > Yep. There's an in the cell so you will have to set the font size > really small. > You'd be better off doing all this by setting style classes and doing it in > css. > > Ian > > http://examples.roughian.com > > > 2009/6/28 hezjing > > Hi >> >> I want to achieve a rounded corner rectangle using Grid. >> >> Here I create a 3x3 grid: >> >> Grid grid = new Grid(3, 3); >> grid.setCellPadding(0); >> grid.setCellSpacing(0); >> // display the border for debugging >> grid.setBorderWidth(1); >> >> >> Imagine that I have a 5x5 pixel corner images, so I specify the width and >> height of the top row like the following: >> >> CellFormatter formatter = grid.getCellFormatter(); >> // top left corner >> formatter.setWidth(0, 0, "5px"); >> formatter.setHeight(0, 0, "5px"); >> // top center >> formatter.setWidth(0, 1, "100%"); >> formatter.setHeight(0, 1, "5px"); >> // top right corner >> formatter.setWidth(0, 2, "5px"); >> formatter.setHeight(0, 2, "5px"); >> >> >> The problem is when tested in hosted mode, the cell doesn't display in the >> specified height! >> >> Did I miss anything here? >> >> >> Please help, thank you! >> >> >> -- >> >> Hez >> >> >> > > > > -- Hez --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Newbie question re returning persisted objects via RPC to client
You would have to do it either like you suggested; create two separate classes, one "persistence" class, and then one DTO class. Or you could create just a POJO and keep the persistence info in a separate mapping file. >From what I understand, most tend to go with the first option. On 28 Juni, 14:09, Ben Daniel wrote: > Let's say I want to persist Animal objects using JDO and also want to > return these Animal objects via a GWT RPC service. From what I > understand GWT will compile a version of Animal in javascript on the > client. And I take it that any JDO persistence stuff shouldn't be > going down to the client. > > So do I have to create two separate classes for my Animal type: one > used on the server for persistence via JDO and another which the > client uses over RPC. Is this the normal thing to do? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Handling events in child widgets
Hi all This is probably not that difficult, but I´d like to hear how you would solve this problem. Let´s say I have a widget that extends composite, using a Decorator Panel as a base panel. This is my base panel where I´ll create a controller and some models. In the decorator panel I put another widget extending composite, using a Tab panel as a base panel. In this tab panel, I put (among other things) a label which holds the current time. In my controller, I have a Timer that fires every second, supposed to update the label with the current time. What would be the best way to make the model object holding the current time visible to the label actually showing the time? How it looks now (stripped down) In the main panel: AppData data = new AppData(); Controller controller = new Controller(data); MenuPanel mainPanel = new MenuPanel(controller); In the MenuPanel TabPanel basePanel = new TabPanel(); basePanel.add(new TimeWidget(controller),"Current time"); In the TimeWidget Label time = new Label("Put current time here"); Would it be a good idea to create a getData() function inside the controller, so that the TimeWidget could handle events fired from the model, or is there a better solution? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: whats wrong with getNodeValue()
Thomas, Thanks a lot for your help. On Jun 26, 5:09 pm, Thomas Broyer wrote: > On 26 juin, 16:16, G wrote: > > > n is a text node, I reverified by getNodeType() which returns 3 > > representing it's a TEXT_NODE. > > I have no clue as to why it's still returning null. > > Re. your previous sample code, note that Text::toString() uses getData > (), so if you know you're facing a Text (which you should if you want > getNodeValue() to have any meaning), maybe you should use getData() > instead. > > http://code.google.com/p/google-web-toolkit/source/browse/releases/1 > > Note that (AFAICT from reading the GWT code) getNodeValue() returns > nodeValue straight from JS for all browsers; so maybe the browser > you're using has a bug and returns 'null' instead the text value. If > it is the case, then you should file a bug to the browser vendor (and > to GWT so a workaround can be found in the mean time). > > Not being parsing XML on the browser (I believe JSON or some specific > text format are far better suited), I can't help you more. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Why does HorizontalPanel cells defaults to "vertical-align: top"?
panel.setCellVerticalAlignment(textbox, HasVerticalAlignment.ALIGN_BOTTOM); On 27 Jun., 21:59, max3000 wrote: > Hi, > > I'm trying to align an image and a textbox in a HorizontalPanel using > only CSS. I want the textbox to be aligned at the bottom. > > Doing the following works: > panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM); > > However, no amount of CSS at the panel level works. It figures because > GWT inserts an automatic "vertical-align: top", like this: > > > > > > Why is that so? Am I missing something or is there no way to align > cell content at the bottom using CSS? > > Thanks, > Max --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to load a url in a panel?
... or use an iframe. On 27 Jun., 15:43, bmorsh wrote: > You need to use RequestBuilder and make an actual ajax call to GET the > contents of the URL. > > On Jun 24, 2:23 am, Sow wrote: > > > Hi, > > > I have two hmls in my module. How do I load one html content into a > > panel of another html? > > panel.load("First.html") doesnt work for me. > > > Please help. > > --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Smipple - Social Code Snippets
Hi all, I just wanted to let everyone know about a site I created for sharing code snippets in a social way. You can check it out at http://www.smipple.net/. Smipple allows you to save, organize, and share snippets with others easily. The best part though is that you can follow other people who have interesting snippets and see the snippets that users you are following in one place. You can also favorite any snippet that you find interesting so you can retrieve it easily later. Smipple is implemented using Google Appengine, Django, and appengine-patch but that shouldn't stop anyone from contributing any kind of snippets that they want. We'd love it if Ruby, PHP, Java, JavaScript or Perl developers would use the site as well! What kind of social sharing site would it be if there were only certain types of developers using it after all! Happy Coding, Ian --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---