Re: GWT Indexing for search
You can get Google to index a GWT site using this specification: http://code.google.com/web/ajaxcrawling/docs/getting-started.html -R On Dec 6, 3:27 pm, ravi ranjaabhis...@gmail.com wrote: Hi, I read in a blog that GWT websites are not shown in search results as they are not indexed by search engines.Is this true as i am planning to use GWT to develop a site for my business. Regards, Abhishek Ranjan -- 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: Entire Site in GWT?
Hi Mike, I was considering using Flash to build my site (http:// www.yournextpresent.com), but i'm really glad I chose GWT in the end! I was able to get all the animations I required working using the GWTFX library (http://code.google.com/p/gwt-fx/) and even got google crawling my site using the 'Making GWT crawlable' documentation which has already been linked to. I have a PHP/MySQL backend and have had no problems communicating with GWT via REST. Overall, definitely go for GWT! -RPB On Nov 8, 4:49 pm, mike.cann mike.c...@gmail.com wrote: Hi Guys, First post on this list. I have searched for this question before posting. The only answer I could come up with was from a post in 2008 (http://groups.google.com/group/google-web-toolkit/browse_thread/ thread/c852ff3491f4d128/4b1d9c08a91e25ab?lnk=gstq=suitable+for+entire +site#4b1d9c08a91e25ab) so I thought I would ask it again in case anything has changed. As a Flash / Flex developer new to web-dev im loving the extra structure and type safety offered by GWT so im really keen to use it exclusively for a new project. So my questions are: Is GWT suitable for writing an entire website? Specifically im looking to write a site that may sit within a Facebook iframe. Has the GWT isnt web-crawlable issue been solved now? Is the script for every page on your site downloaded at the start or is it downloaded as you click a link (as in a traditional site)? Are there any other barriers to making an entire site in GWT? Cheers, Mike -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Showing facebook like button using GWT code
Hi Aditya, The problem is that you can't call a script src=.../script widget tag inside of an existing script/script enclosure (i.e. the GWT generated js code). See this thread for more details: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/9a81056219c54470/dbf4fd62e9ed41ef?lnk=gstq=tag+referencing+the+tweetgrid+widget+in+your+host+#dbf4fd62e9ed41ef Firefox must have implemented a workaround, but the other browsers still have this problem. To get xfbml working you can either use injection as described here: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/f8a77c93d55aabf2 Or use a wrapper such as gwtfb: http://www.gwtfb.com/#home Good luck, Rob On Nov 3, 7:10 am, Aditya 007aditya.b...@gmail.com wrote: hello, i m trying to embed facbook's like button on page. it works completely fine in Firefox but it is not shown in Google chrome and IE 6 and above. In chrome i tried to dig using inspect element feature so there i found exactly same set statement from firefox. i am embedding it in FlextTable,setting html of one cell using fxtMainTbl.setHTML(script src=\http://connect.facebook.net/en_US/ all.js#xfbml=1\/script + fb:like href=\http://www.demositeurl.com/\; width= \328\/fb:like); how i should make it work in chrome and IE too. regards, Aditya -- 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: SEO Question.
Hi Subhro, You can just change Meonholiday.html to a PHP file. Then you can do as I describe above, i.e. if(isset($_GET['_escaped_fragment_'])) { echo Static Version of my page ; } else { echo MeonHoliday HTML; //echo out the contents of your html file here } So when the crawler goes to your page you echo static data, otherwise your website loads as normal. -Rob On Oct 27, 5:46 pm, Subhrajyoti Moitra subhrajyo...@gmail.com wrote: Thanks Rob and farmazone for the response. In the app, there is no php script first being hit.. let me please explain.. A url like this.. http://109.123.108.234/war/Meeonholiday.html#!showHomePage for google crawler it will become http://109.123.108.234/war/Meeonholiday.html?_escaped_fragment=showHo... a url like this http://109.123.108.234/war/Meeonholiday.html#!showProdDetails?pid=13;... for the crawler becomes,http://109.123.108.234/war/Meeonholiday.html?_escaped_fragment=showPr... think param part gets url encoded) The first entity to come to know that these urls being accessed is apache http. The 2nd entity is the html file itself (no php script) and consequently, the app starts up (onMOduleLoad etc...). After the app load up, i then access the PHP backend (RequestBuilder..) for data. The backend only gives data. no markup. JSON data. thats all. So its not like i am hitting a PHP script first on the server, which will detect the _escaped_fragment in the request and take steps. Do i need to do something at the Apache httpd conf to reroute the _escape_fragment urls to a html snapshot generator? OR GWT onModuleLoad can help someway? Please help. Thanks, Subhro. On Wed, Oct 27, 2010 at 7:04 PM, farmazone farmaz...@gmail.com wrote: here are examples of something similar http://www.asual.com/jquery/address/ On Oct 27, 11:43 am, RPB robbol...@gmail.com wrote: Hi Subhro, You need to create a PHP page which will serve static information if it detects _escaped_fragment_= or just the normal GWT page otherwise. Something like this: if(isset($_GET['_escaped_fragment_'])) { echo Static Version of my page} else { echo script type=\text/javascript\ language=\javascript\ src= \../gwtProj/getProj.nocache.js\/script; //or whatever you have in your current index file } Here are some other threads which may be useful: http://groups.google.com/group/google-web-toolkit/browse_thread/threa .. Good luck, Rob On Oct 26, 5:10 pm, Subhrajyoti Moitra subhrajyo...@gmail.com wrote: Hello, I have to build an application which has a PHP backend and GWT client. How do we make it crawlable? The urls follows Google, ajax url format of #!. How do we take HTMLsnapshots using PHP or GWT? I know HTMLUnit does the job, but the backend is PHP and not java. Please help. Thanks, Subhro. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SEO Question.
Hi Subhro, You need to create a PHP page which will serve static information if it detects _escaped_fragment_= or just the normal GWT page otherwise. Something like this: if(isset($_GET['_escaped_fragment_'])) { echo Static Version of my page } else { echo script type=\text/javascript\ language=\javascript\ src= \../gwtProj/getProj.nocache.js\/script; //or whatever you have in your current index file } Here are some other threads which may be useful: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/7a43e81e58b02182/befb2965091ad81c#befb2965091ad81c http://groups.google.com/group/google-web-toolkit/browse_thread/thread/61126c07df21e2d7/bdaaca1deef925fd#bdaaca1deef925fd Good luck, Rob On Oct 26, 5:10 pm, Subhrajyoti Moitra subhrajyo...@gmail.com wrote: Hello, I have to build an application which has a PHP backend and GWT client. How do we make it crawlable? The urls follows Google, ajax url format of #!. How do we take HTMLsnapshots using PHP or GWT? I know HTMLUnit does the job, but the backend is PHP and not java. Please help. Thanks, Subhro. -- 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: Advice for site design
Here is my site, similar to what you describe, built with a PHP backend and GWT frontend: http://www.yournextfilm.com Haven't had any problems building in this way. GWT deals with cross browser compatibility and communicates with PHP (-MySQL) via REST. I wouldn't use pure PHP with no GWT at all! You're site won't look as good and just won't be able to do as much :) Good luck, RPB On Oct 5, 10:45 pm, nick kov nickko...@gmail.com wrote: I'm creating a site which will have a sign up screen, a login system, and then interaction with the site once you login. My question is, can I mix GWT with PHP in a healthy manner? I don't know how well GWT handles client-server interactions. But should I stick to pure GWT for ease and cross browser compatibility, a mix with PHP, or just pure PHP ? 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: SimplePanel can only contain one child widget
On first inspection, the code seems ok. Perhaps the problem is in the TNSInformationPanel UIBinder file? Can you post that? Also, as an aside, you might consider using FlowPanel instead of VerticalPanel to prevent future layout problems: http://dobesland.wordpress.com/2007/07/29/tip-in-gwt-verticalpanel-could-be-replaced-with-flowpanel/ http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#Standards -R On Aug 25, 3:13 pm, Jose Luis Estrella Campaña jlecamp...@gmail.com wrote: Howdi ! How are you all today ? fine. I hope. Dear all, I'm having this annoying problem that has already taken 18 hours from me. I have this Widget that used to be working, then I just added a new Panel correctly nested (informationPanel) in my .ui.xml file. Now when I click on a button to do what the Widget used to do, I get the following error, only visible through FireBug... java.lang.IllegalStateException: SimplePanel can only contain one child widget Here's the file where the problem is supposed to be. !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui xmlns:tns=urn:import:com.techandsolve.bonificacionesc.web.client.base.widg ets ui:style /ui:style g:VerticalPanel ui:field=container tns:TNSInformationPanel ui:field=informationPanel/ g:HorizontalPanel styleName=tns-ButtonsBarHolder g:HorizontalPanel styleName=tns-ButtonsBar g:Label styleName=tns-ButtonsBarSpacer[nbsp;/g:Label tns:TNSButton ui:field=assignButton / g:Label styleName=tns-ButtonsBarSpacernbsp;|nbsp;/g:Label tns:TNSButton ui:field=calculateButton / g:Label styleName=tns-ButtonsBarSpacernbsp;|nbsp;/g:Label tns:TNSButton ui:field=saveAsButton / g:Label styleName=tns-ButtonsBarSpacernbsp;]/g:Label /g:HorizontalPanel /g:HorizontalPanel g:Label styleName=tns-PanelTitle ui:field=sucursalLabel / g:Label styleName=tns-HelpText Seleccione una plantilla de asignacion o una de las opciones a continuacion /g:Label g:Label styleName=tns-DottedLinenbsp;/g:Label g:HorizontalPanel g:Label ui:field=pointsLabel / tns:TNSTextBox ui:field=pointsToAsignTextBox/tns:TNSTextBox /g:HorizontalPanel g:HTMLPanel styleName={style.html-panel} ui:field=employeesPanel table tr td g:Label styleName=tns-Label ui:field=templateLabel / /td td tns:TNSListBox ui:field=templatesList / /td /tr /table /g:HTMLPanel g:Label styleName=tns-PanelTitle ui:field=employeesLabel / g:Label styleName=tns-HelpTextEl siguiente formulario permite asignar puntos a las entidades que tiene a cargo/g:Label g:Label styleName=tns-DottedLinenbsp;/g:Label g:HTMLPanel g:Grid ui:field=orgsGrid / g:Grid ui:field=employeesGrid / /g:HTMLPanel /g:VerticalPanel /ui:UiBinder Could somebody please help me visualize what I'm possibly missing or doing wrong ? I'm blind here, and I think I'm not even using a Panel that extends from SimplePanel. Help Me ! Sincerely, Jose -- 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: A little help
Just start with the google tutorials and go from there: http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html If you can write Java, you'll be surprised how far you can go! -Rob Diego Venuzka wrote: Hello guys! I'm going to do a work for my course, and i will use GWT+Ajax on Eclipse Helios. I never used GWT, and i need build a system to control a machine shop. My question is, somebody have a template, or guide to use GWT/Ajax on Eclipse? I saw a site that use GWT and Ajax: http://www.geoleite.com.br/site/index.html (i like so much this template :D) If anybody can help me, i really thank :D Thank all! -- Diego Venuzka -- 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 app looks ugly in IE6
To any who might be interested, these statistics on browser usage are normally kept quite up to date: http://www.w3schools.com/browsers/browsers_stats.asp On Jul 22, 8:32 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, I would not spend the time. IE6 is primary used by companies using old software not willing to upgrade. It is a pain to support IE6 and such customer do not pay for service. Your customers are rather private. You could expect from them to download a modern browser like FF or Chrome. (If not already done) Stefan Bachert http::/gwtworld.de Inquiries for professional GWT support are welcome. I am sorry, I won't do free personal support. On 21 Jul., 18:11, Magnus alpineblas...@googlemail.com wrote: Hi, my GWT app works great under current browsers, but it looks ugly under IE6:http://www.lfstad-chess-club.de:8080/ics/ Should I spent effort in finding out the reasons or isn't it worth the work? Thanks Magnus -- 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: Password Strength Widget?
Here is the code I use, you can tweak it to fit with your standards. public class ValidationUtils { private final static String EMAIL_VALIDATION_REGEX = [a-zA-Z0-9!#$ %'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%'*+/=?^_`{|}~-]+)*@(?:[a-zA- Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a- zA-Z0-9])?; private static final int PASSWORD_LEVEL_VERYWEAK = 0; private static final int PASSWORD_LEVEL_WEAK = 1; private static final int PASSWORD_LEVEL_MEDIOCRE = 2; private static final int PASSWORD_LEVEL_STRONG = 3; private static final int PASSWORD_LEVEL_VERYSTRONG = 4; public ValidationUtils(){ } public static boolean validateEmail(String text) { if (text.matches(EMAIL_VALIDATION_REGEX)) { return true; } else return false; } public static int CheckPasswordStrength(String passwd) { boolean upper = false, lower = false, numbers = false, special = false; int intScore = 0, length = 0; if (passwd == null) return PASSWORD_LEVEL_VERYWEAK; // PASSWORD LENGTH length = passwd.length(); if (length 5) // length 4 or less { intScore = (intScore + 3); } else if (length 4 passwd.length() 8) // length between 5 and 7 { intScore = (intScore + 6); } else if ( length 7 passwd.length() 16) // length between 8 and 15 { intScore = (intScore + 12); } else if (length 15) // length 16 or more { intScore = (intScore + 18); } // LETTERS if (passwd.matches(.*[a-z]+.*)) { intScore = (intScore + 1); lower=true; } if (passwd.matches(.*[A-Z]+.*)) { intScore = (intScore + 5); upper=true; } // NUMBERS if (passwd.matches(.*[0-9]+.*)) { intScore = (intScore + 5); numbers=true; } if (passwd.matches(.*[0-9].*[0-9].*[0-9].*)) intScore = (intScore + 3); // SPECIAL CHAR if (passwd.matches(.*[:,!,@,#,$,%,^,,*,?,_,~]+.*)) { intScore = (intScore + 5); special=true; } if (passwd.matches(.*[:,!,@,#,$,%,^,,*,?,_,~].*[:,!,@,#, $,%,^,,*,?,_,~].*)) intScore = (intScore + 3); // COMBOS if (upper lower ) // [verified] both upper and lower case { intScore = (intScore + 2); } if ((upper || lower ) numbers ) // [verified] both letters and numbers { intScore = (intScore + 2); } if ((upper || lower ) numbers special) // [verified] letters, numbers, and special characters { intScore = (intScore + 2); } if (upper lower numbers special ) // [verified] upper, lower, numbers, and special characters { intScore = (intScore + 2); } //System.out.println(Mdp: +passwd+ Score : +intScore); if (intScore 16) return PASSWORD_LEVEL_VERYWEAK; else if (intScore 15 intScore 25) return PASSWORD_LEVEL_WEAK; else if (intScore 24 intScore 35) return PASSWORD_LEVEL_MEDIOCRE; else if (intScore 34 intScore 45) return PASSWORD_LEVEL_STRONG; else return PASSWORD_LEVEL_VERYSTRONG; } } On Jul 20, 12:30 pm, omsrobert omsrob...@gmail.com wrote: Anyone have a password strength widget for either GWT or GXT? Client side or better client w/server side validation would be great. -- 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: A couple of (probably) simple questions about using _escaped_fragment_ / ajax crawl-able.
I always use the #!meep syntax, which when the google crawler sees it interprets as ?_escape_fragment. I seem to recall reading in the google documentation that this is the correct way to do it. -Rob On Jul 17, 8:12 pm, darkflame darkfl...@gmail.com wrote: Thanks for both your help I'm almost there now. The $param= $_GET['_escaped_fragment_']; worked fine, now the rest of my php works. One other query, however; What should the links generated by this php file return? If my normal code set history to something like #meep (which would now be #!meep) should the static page have that link set to #meep #!meep ?meep or even ?_escape_fragment_ I assume I could use #! that googles crawler would automatically change to ?_escape_fragment_ but wouldn't it be better to give it directly? or would that not associate the links correctly? Of course, if I stuck to just using ? then it would make the site browsable for people with JavaScript turned of too. -Thomas On Jul 14, 10:05 am, RPB robbol...@gmail.com wrote: Hi darkflame, Not sure I fully understand your second question, but you should be able to just use $param= $_GET['_escaped_fragment_']; and then process the code as normal. Also, the 'Fetch with googlebot' tool in Webmaster tools is very helpful, showing you exactly what google will actually be crawling. Cheers, Robwww.yournextread.com On Jul 11, 12:07 am, darkflame darkfl...@gmail.com wrote: a) As my server doesn't support server-side java, I'll be using php to generate the static/snapshot pages. How close do they have to be to the proper/GWT ones? Is it good enough if the text and links are exactly samebut not the images/layout? I dont want to be accused of spoofing, but replicating the layout exact will prove a lot of work. b) Is there an easy way to parse the new urls? I used to use just GET in PHP to retrieve each expected key/value, but this doesnt work now that _escaped_fragment_ has been added at the start. Is there a recommended method? or do I just code my own parser? -- 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: $_POST is empty when request made using RequestBuilder
Apologies if this is a double-post, the thread didn't seem to update the first time. I don't see anything in particular that is wrong with your code, but the following works for me if you want to give it a try: public void postPHPRequest(String url, String postData){ url = URL.encode(url); RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url); try { builder.setHeader(Content-Type, application/x-www-form- urlencoded); @SuppressWarnings(unused) Request req = builder.sendRequest(postData, new RequestCallback() { public void onError(Request request, Throwable exception) { fireErrorEvent(Failed to send the request: + exception.getMessage()); } public void onResponseReceived(Request request, Response response) { String output = response.getText(); } }); } catch (RequestException e) { fireErrorEvent(Failed to send the request: + e.getMessage()); } } You can look at 'output' which should display any echos you have in your PHP. Hopefully this will help you debug out what is happening. If this doesn't work check that you are not violating the SOP (same origin policy). There are other threads on this forum with more info on this. Good luck, Rob On Jul 18, 1:44 pm, malrawi musab.alr...@gmail.com wrote: Hi, I am really new to GWT, I tried searching the net for hours to get an answer to my problem with no luck. Here is what I am doing: I am creating a simple EntryPoint which shows some text fields, when the user clicks on a button I want to send a POST request to a php page. The PHP page says that my request parameters are not set. Right before I send the request I display the request data and they look right. As the code shows, I am setting the content type, I am appending the parameters properly, I don't know what is wrong. I didn't want to use FormPanel because it seemed like I wouldn't be able to send a request asynchronously (correct me if I am wrong, my conclusion was based on Javadoc's examples also some examples on the net) Here is the code: RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url); builder.setHeader(Content-type, application/x-www-form- urlencoded); StringBuffer requestData = new StringBuffer(); // parameters is a HashMap if (parameters != null ){ requestData.append(?); SetString keys = parameters.keySet(); for (String key : keys ){ requestData.append(URL.encode(key)); requestData.append(=); requestData.append(URL.encode(parameters.get(key))); requestData.append(); } } try { Window.alert(requestData.toString()); builder.sendRequest(requestData.toString(), handler);} catch ( Exception e){ Window.alert(e.getMessage()); } 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-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: $_POST is empty when request made using RequestBuilder
Although I can't see anything obviously incorrect with your code, the following code snippet successfully sends a POST request in my code: public void postPHPRequest(String url, String postData){ url = URL.encode(url); RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url); try { builder.setHeader(Content-Type, application/x-www-form- urlencoded); @SuppressWarnings(unused) Request req = builder.sendRequest(postData, new RequestCallback() { public void onError(Request request, Throwable exception) { fireErrorEvent(Failed to send the request: + exception.getMessage()); } public void onResponseReceived(Request request, Response response) { String output = response.getText(); } }); } catch (RequestException e) { fireErrorEvent(Failed to send the request: + e.getMessage()); } } You can look at the content of 'output', which should display any echo's in your php code. If you still have no luck, check that you are not violating the rules of the SOP. Good luck, Rob On Jul 18, 1:44 pm, malrawi musab.alr...@gmail.com wrote: Hi, I am really new to GWT, I tried searching the net for hours to get an answer to my problem with no luck. Here is what I am doing: I am creating a simple EntryPoint which shows some text fields, when the user clicks on a button I want to send a POST request to a php page. The PHP page says that my request parameters are not set. Right before I send the request I display the request data and they look right. As the code shows, I am setting the content type, I am appending the parameters properly, I don't know what is wrong. I didn't want to use FormPanel because it seemed like I wouldn't be able to send a request asynchronously (correct me if I am wrong, my conclusion was based on Javadoc's examples also some examples on the net) Here is the code: RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url); builder.setHeader(Content-type, application/x-www-form- urlencoded); StringBuffer requestData = new StringBuffer(); // parameters is a HashMap if (parameters != null ){ requestData.append(?); SetString keys = parameters.keySet(); for (String key : keys ){ requestData.append(URL.encode(key)); requestData.append(=); requestData.append(URL.encode(parameters.get(key))); requestData.append(); } } try { Window.alert(requestData.toString()); builder.sendRequest(requestData.toString(), handler);} catch ( Exception e){ Window.alert(e.getMessage()); } 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-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: A couple of (probably) simple questions about using _escaped_fragment_ / ajax crawl-able.
Hi darkflame, Not sure I fully understand your second question, but you should be able to just use $param= $_GET['_escaped_fragment_']; and then process the code as normal. Also, the 'Fetch with googlebot' tool in Webmaster tools is very helpful, showing you exactly what google will actually be crawling. Cheers, Rob www.yournextread.com On Jul 11, 12:07 am, darkflame darkfl...@gmail.com wrote: a) As my server doesn't support server-side java, I'll be using php to generate the static/snapshot pages. How close do they have to be to the proper/GWT ones? Is it good enough if the text and links are exactly samebut not the images/layout? I dont want to be accused of spoofing, but replicating the layout exact will prove a lot of work. b) Is there an easy way to parse the new urls? I used to use just GET in PHP to retrieve each expected key/value, but this doesnt work now that _escaped_fragment_ has been added at the start. Is there a recommended method? or do I just code my own parser? -- 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 Popup is not centered
I see the exact same behaviour in my application, and would appreciate any ideas with this issue. The popup is not centered for the first time only, and afterwards popup.center() works fine. I am using GWT 2.0.3. Here is some sample code: public class LoginForm extends PopupPanel { public LoginForm(){ this.setStyleName(bwPopupPanel); this.setGlassEnabled(true); this.add(new LoginFields()); this.center(); } } //..Different class.. private void showLoginPopUp() { @SuppressWarnings(unused) LoginForm loginPanel = new LoginForm(); } Any thoughts? On Jun 27, 9:06 pm, Ricardo.M ricardo.mar...@gmail.com wrote: Hi, I use gwtpopupto show some messages, but it isnotdisplayed in thecenterof the display event if i callpopup.center(). Actually it isnotcentered only the first time, if i close it and open it again every thing is ok, butnotthe first time. How to fix that? I tried using .setPopupPosition(350, 250); but thepopupisnot centered only the first time. Regards. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Bikeshed project
Hi Karel, I haven't heard of the BikeShed project, but if you're just looking for examples of GWT in action, have a look at the GWT gallery: http://gwtgallery.appspot.com/ or, if you're just looking to see what widgets are available, the showcase may be more appropriate: http://gwt.google.com/samples/Showcase/Showcase.html Cheers, -Rob www.yournextread.com (built in GWT 2.0.3) On May 26, 2:11 pm, Karel karel.brez...@gmail.com wrote: Hi, I'd like to see the latest changes in GWT in a running app. I've found out that there is a project called Bikeshad which might provide some interesting examples. Source repository is located athttp://code.google.com/p/google-web-toolkit/source/browse/trunk/bikes What is needed to run it? Is there any description? Is there any other project that shows new features in GWT 2.1 or best practices in developing a GWT business app? Thanks. Karel -- 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: Possible to set style for ScrollPanel?
Have a look at this thread: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/cad105fb7b33c745/3ae25f73b841777e#3ae25f73b841777e The scrollbar CSS will only work in Internet Explorer. There is no support for the other browsers. -Rob On Mar 24, 5:46 am, jayalakshmi jahagirdar jayalakshmi.jahagir...@gmail.com wrote: Hi,U can use the below css. body { SCROLLBAR-FACE-COLOR: #abc;; SCROLLBAR-HIGHLIGHT-COLOR: abc; SCROLLBAR-SHADOW-COLOR: #abc; SCROLLBAR-ARROW-COLOR: abc; SCROLLBAR-TRACK-COLOR: #abc; SCROLLBAR-DARKSHADOW-COLOR: #abc;} regards Jayalakshmi On Wed, Mar 24, 2010 at 11:08 AM, Sekhar sek...@allurefx.com wrote: Is there a way (ideally with CSS) to customize the scrollbar for ScrollPanel? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text - - Show quoted text - -- 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: Sending HTTP GET request not working!
You'll have to copy GWTWPS.html (and probably GWTWPS.css) to your localhost before it will work I would expect the URL to look something like this when you're debugging (if localhost was 127.0.0.1 and port was 8080): http://127.0.0.1:8080/GWTWPS.html?gwt.codesvr=127.0.0.1:9997 The gwt.codesvr bit ensures the code runs from your eclipse, but you're right, it won't work until you explicitly copy the html and css files because otherwise tomcat doesn't know where to start. -Rob On Mar 19, 2:58 pm, Jon Britton mankillseveryth...@googlemail.com wrote: Hi Rob, Thanks for the response. I'm not sure I understand you correctly - If I disable the built in server, how exactly does the project run? If Tomcat is running on 8080 and I change the GWT port to 8080 then I just get a 404 error saying it can't find /GWTWPS.html, obviously be Tomcat doesn't know anything about it! Cheers, Jon On 18 March 2010 22:16, RPB robbol...@gmail.com wrote: If you're using GWT 2.0: -Open 'Debug configurations' in eclipse -Uncheck 'Run built-in server' -Set the port number to your localhost port -Run Also, GWT.getModuleBaseURL is useful to use if you need to reference the URL from your java code (as you ensure you are using the exact same URL so are less likely to run into the SOP) -Rob On Mar 18, 3:55 pm, Jon Britton mankillseveryth...@googlemail.com wrote: When I compile my GWT project and host it in Tomcat everything works fine, but is there a way of making it work when I run it as a web application through eclipse? On Mar 18, 3:34 pm, Jon Britton mankillseveryth...@googlemail.com wrote: And a 0 status code? If that is the case, it would mean that your code do violate the SOP. Yes, I still get 0 status code. Switch to URL references without scheme, host and port, or make sure they are the same as the one from Window.Location. How should I go about doing this? This is all new to me - I was just basing my code on the example in the docs. Thanks, Jon -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text - - Show quoted text - -- 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: Sending HTTP GET request not working!
I might not be understanding the problem correctly. Let me give you an example of what my site does (which sounds vaguely similar to what you want to do): -GWT sends a GET request to my server -My server sends a request to Amazon (or equivalent), which sends back information in XML format -My server returns the XML to GWT -GWT processes XML and does stuff with it I am able to debug it in GWT so I know the above is possible. I'm not sure if it's possible to make GET requests to remote servers (I suspect not due to SOP). If you can get the remote info onto your local webserver, then gwt should be able to request it from there. I hope this helps - I'm no expert either, just know what I have worked out so far. -Rob On Mar 19, 3:53 pm, Jon Britton mankillseveryth...@googlemail.com wrote: Yes, that's clearer. But when I run my GWT project it isn't hosted in the same place as my server so it won't work. Also, I want to be able to receive XML from remote servers - I guess this isn't possible using this method, but I've read that is IS possible (although I don't know how to do it). I'm trying to create a web-based application for running WebProcessingService (WPS) processes (web services for processing geospatial data). These can be accessed via HTTP GET. I wanted to allow the user to input the URL of a WPS they know of (wherever it's located) and view the available processes. This takes the form of a request like : *wpsurl*?Request=GetCapabilitiesService=WPS Which returns an XML document listing available processes. Is this even possible? As you can see, I'm a complete amateur at browser-based programming. Cheers, Jon On 19 March 2010 15:44, Thomas Broyer t.bro...@gmail.com wrote: On Mar 18, 4:34 pm, Jon Britton mankillseveryth...@googlemail.com wrote: And a 0 status code? If that is the case, it would mean that your code do violate the SOP. Yes, I still get 0 status code. Switch to URL references without scheme, host and port, or make sure they are the same as the one from Window.Location. How should I go about doing this? This is all new to me - I was just basing my code on the example in the docs. Actually, the question is: how do you get the URL you pass to RequestBuilder? (in other words: what is the code?) From the snippet you gave, it seems you're typing it into a TextBox. Then try omitting the http://host:port part and only give something like /path/to?serv=let Is it any clearer? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Sending HTTP GET request not working!
If you're using GWT 2.0: -Open 'Debug configurations' in eclipse -Uncheck 'Run built-in server' -Set the port number to your localhost port -Run Also, GWT.getModuleBaseURL is useful to use if you need to reference the URL from your java code (as you ensure you are using the exact same URL so are less likely to run into the SOP) -Rob On Mar 18, 3:55 pm, Jon Britton mankillseveryth...@googlemail.com wrote: When I compile my GWT project and host it in Tomcat everything works fine, but is there a way of making it work when I run it as a web application through eclipse? On Mar 18, 3:34 pm, Jon Britton mankillseveryth...@googlemail.com wrote: And a 0 status code? If that is the case, it would mean that your code do violate the SOP. Yes, I still get 0 status code. Switch to URL references without scheme, host and port, or make sure they are the same as the one from Window.Location. How should I go about doing this? This is all new to me - I was just basing my code on the example in the docs. Thanks, Jon -- 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 Popup is not centered
Hi mariyan, Did you manage to resolve this issue? I see the exact same behaviour on my application - the popup is not centered for the first time only, and afterwards popup.center() works fine. I am using GWT 2.0.3. Here is some sample code - I really can't see why this is happening. Thanks in advance. public class LoginForm extends PopupPanel { public LoginForm(){ this.setStyleName(bwPopupPanel); this.setGlassEnabled(true); this.add(new LoginFields()); //LoginFields is a class defined using UIBinder to position the layout contained in the popup this.center(); } } //..Different class.. private void showLoginPopUp() { @SuppressWarnings(unused) LoginForm loginPanel = new LoginForm(); } On Mar 12, 5:07 pm, Jim Douglas jdoug...@basis.com wrote: Have you reviewed the sample -- with detailed comments -- near the top of the javadoc page? http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... On Mar 12, 7:13 am, mariyan nenchev nenchev.mari...@gmail.com wrote: Well i am setting pixel size on the Panel inside the popup -- 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: Supported Browsers
Here is a useful link which is kept reasonably up to date: http://www.w3schools.com/browsers/browsers_stats.asp My GWT site works all of these browsers except IE6, which gives me some problems. Hope this helps, Rob www.bookwhack.com On Mar 7, 4:28 am, Ken evotur...@gmail.com wrote: I know this was posted over a month ago, but I would like to revive the thread. I'm writing a proposal and I'm suggesting using GWT to implement the client's front end. I would like to be able to tell him exactly which browsers are supported and which aren't and if possible tell him exactly what market share of the browsers are supported. I can't find this information anywhere. If I could just get the names and versions I can calculate the market share myself. This is the first job I've proposed using GWT on and I would really like to get it, but just saying all the popular browsers are supported, probably isn't good enough. Is there a list somewhere? On Feb 1, 9:55 am, R.Domingo raym...@domingo.nl wrote: Hello, Is there any documentation available about whichbrowsersare supported by gwt 2.0 ? If so, could you please inform me where to find it. thnx, Raymond- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Can't add to GWT Appspot Gallery
Hello, My colleague tried to add our site to the appspot gallery a couple of days ago, and was given the following link to the submission: http://gwtgallery.appspot.com/about_app?app_id=101004 However, when I go to that link, it just takes me to the homepage - i'm unable to see the submission. Is there an approval process this has to go through, or should we just try re-submitting? Thanks, RPB www.bookwhack.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: Can't add to GWT Appspot Gallery
Yep, I can see it now, thanks for the help. -R On Mar 5, 2:30 pm, Chris Ramsdale cramsd...@google.com wrote: Check again, it should be up now. On Mar 5, 2010 5:12 AM, RPB robbol...@gmail.com wrote: Hello, My colleague tried to add our site to the appspot gallery a couple of days ago, and was given the following link to the submission:http://gwtgallery.appspot.com/about_app?app_id=101004 However, when I go to that link, it just takes me to the homepage - i'm unable to see the submission. Is there an approval process this has to go through, or should we just try re-submitting? Thanks, RPBwww.bookwhack.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: requestbuilder xml response - empty document
I don't see anything obviously wrong with your code, but here is a snippet of my code which does the same thing and works fine. Note I use RequestBuilder.GET and have a couple of extra error checks - might help point to a problem. == url = URL.encode(url); RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url); try { @SuppressWarnings(unused) Request request = builder.sendRequest(, new RequestCallback() { public void onError(Request request, Throwable exception) { fireErrorEvent(Couldn't retrieve info); } public void onResponseReceived(Request request, Response response) { if (200 == response.getStatusCode()) { //200 means all ok, so do something with response.getText() } else if (0 == response.getStatusCode()){ fireErrorEvent(response.getText()); } else { fireErrorEvent(Couldn't retrieve data ( + response.getStatusText() + response.getStatusCode() + )); } } }); } catch (RequestException e) { fireErrorEvent(Couldn't retrieve info); } == On Mar 1, 1:11 pm, mibtar bim.pangili...@gmail.com wrote: hi, i'm using requestbuilder to communicate with php. i used a XMLWriter to place the sql result in xml: $writer = new XMLWriter(); $writer-openMemory(); $writer-startDocument('1.0', 'UTF-8'); $writer-setIndent(4); $writer-startElement(result); for($row = 0; $rowdata = mysql_fetch_array($result); $row++){ $writer-startElement(row); $writer-writeAttribute(index, $row); for($col = 0; $col count($rowdata)/2; $col++){ $writer-startElement(column); $writer-writeAttribute(index, $col); $writer-text($rowdata[$col]); $writer-endElement(); } $writer-endElement(); } $writer-endElement(); $writer-endDocument(); echo $writer-outputMemory(); when i view it in a browser it perfectly fine, this is the page source content: ?xml version=1.0 encoding=UTF-8? result row index=0 column index=01/column column index=1abc/column column index=2123/column /row row index=1 column index=02/column column index=1def/column column index=2456/column /row row index=2 column index=03/column column index=1ghi/column column index=2789/column /row /result it looks fine. but when i try to get the data using request builder and use Window.alert: RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, script); builder.setHeader(Content-Type, application/x-www-form- urlencoded); builder.sendRequest(, new RequestCallback() { public void onResponseReceived(Request request, Response response) { Window.alert(response.getText()); } public void onError(Request request, Throwable exception) { Window.alert(Error: + exception.toString()); } }); the output i get is: ?xml version=1.0 encoding=UTF-8? result/ any idea what happened to the content of the document? i even tried to make the script simple: $output = ; $output = $output . '?xml version=1.0 encoding=UTF-8?'; $output = $output . 'result'; for($row = 0; $rowdata = mysql_fetch_array($result); $row++){ $output = $output . 'row index=' . $row .''; for($col = 0; $col count($rowdata)/2; $col++){ $output = $output . 'column index=' . $col .''; $output = $output . $rowdata[$col]; $output = $output . '/column'; } $output = $output . '/row'; } $output = $output . '/result'; echo $output; i get the correct output in php but i still get the same empty document in the response -- 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: A Sexy/Slick GWT Application?
Hi Andy, My GWT site uses animation: http://www.bookwhack.com/ and I like to think it's sexy/slick too! It's built in GWT 2.0 and uses the GWT-FX library http://code.google.com/p/gwt-fx/ If anyone's interested I can post further details (without giving the whole game away :) -Rob www.bookwhack.com On Feb 2, 1:13 am, Andy antonvonpil...@gmail.com wrote: I've been looking at a lot of the demos for the 3rd partyGWTplugins; for example, SmartGWT, and read the various postings on this forum about who's actually usingGWT, but I was wondering if anyone knows of a reallysexy/slickGWTapplicationthat not only has a great design, but uses animation in a meaningful way (rather than for the sake of it), and even has custom widgets that are more than a collection of assets arranged in a nice way. I'm thinking of something along the lines of the Roambi iPhone app (http://www.roambi.com) or theCappuccino-based Almost.as app (http// almost.at) (in particular the timeline widget at the bottom of the screen). -- 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 xml response - empty document
It could be the SOP problem. Is the php running on a different server to GWT? If so, your messages aren't getting through because of SOP. You can fix this by going to debug configurations in eclipse- unchecking 'Run built in server' and matching the port number to your localhost. -Rob www.bookwhack.com On Mar 1, 4:53 pm, mibtar bim.pangili...@gmail.com wrote: i tried another thing, i tried to echo without the database result: $test = '?xml version=1.0 encoding=UTF-8?'; $test = $test . 'result'; $test = $test . 'row'; $test = $test . 'col'; $test = $test . 'Data 1'; $test = $test . '/col'; $test = $test . '/row'; $test = $test . 'row'; $test = $test . 'col'; $test = $test . 'Data 2'; $test = $test . '/col'; $test = $test . '/row'; $test = $test . '/result'; echo $test; and it was fine. it seems the problem before was that the text inside the loop was not included. this is really strange. i tried compiling, but pretty much the same. -- 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: Help with GWT FlowPanel and other Panel Styles!
UiBinder is GWT's new way of laying out your webpage - released in GWT 2.0. It's a more natural way of laying out your webpage and also makes it easy to apply CSS rules to specific widgets. See this link for further details: http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html It does take a little getting used to, but if you're already using GWT 2.0, I would encourage using UiBinder. On Feb 23, 2:33 am, Tan Jia Bao jayjia...@gmail.com wrote: Hi, Once again thank you for your reply. I finally solved the problem, turns out I forgot to import the CSS file in my HTML and your suggestion worked out well. I didn't want to use HorizontalPanel because I'm doing an e-Commerce site so i want it to flow well. I'm not using UiBinder though, any advantages in using that? Thank you! On Sat, Feb 20, 2010 at 5:00 PM, RPB robbol...@gmail.com wrote: You need to apply the CSS to the children of the FlowPanel (i.e. what you are adding to the panel) rather than the FlowPanel itself. Out of interest, are you using UiBinder or not? Any particular reason you don't want to use HorizontalPanel? On Feb 20, 3:57 am, Tan Jia Bao jayjia...@gmail.com wrote: Hi, thank you for your reply. I've done what you said and attached a CSS style to that flowpanel but it still wouldn't work, though I'm not sure whether is my css file in the correct folder but it works for my regular webpage. However, when I attach a style to some GWT generated text, it doesn't work. What am I probably doing wrong? Thanks again! On Fri, Feb 19, 2010 at 8:40 PM, RPB robbol...@gmail.com wrote: A FlowPanel will act like a vertical panel (since block-level elements will naturally stack up vertically) unless you change the CSS property of it's children to float:left; Have a look at this for further info: http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html On Feb 19, 6:17 am, Tan Jia Bao jayjia...@gmail.com wrote: Hi, I'm currently making an e-commerce site using GWT and DnD. Basically everything is well and in order except for the displaying of the panels is done correctly. I'm using GWT RPC to retrieve the data from my DAO, in my main GWT RPC Client side, the data are used to create a new Widget where stuffs such as the Product name and Image are used in. In that Widget's constructor, I put all the Labels, Image into a Vertical Panel, the constructor is created with UsageExample client side file, in that client file, I have a FlowPanel which adds the widget into itself. Then my mainentrypoint calls and retrieves that FlowPanel and placing it into the mainPanel to display on the webpage. Thing is, the FlowPanel doesn't display like a FlowPanel, but rather like a VerticalPanel, I tried changing it to horizontalPanel and it works, everything else works except for the FlowPanel. Can anyone help on what I'm doing wrong? 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.-Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text - - Show quoted text - -- 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: Help with GWT FlowPanel and other Panel Styles!
You need to apply the CSS to the children of the FlowPanel (i.e. what you are adding to the panel) rather than the FlowPanel itself. Out of interest, are you using UiBinder or not? Any particular reason you don't want to use HorizontalPanel? On Feb 20, 3:57 am, Tan Jia Bao jayjia...@gmail.com wrote: Hi, thank you for your reply. I've done what you said and attached a CSS style to that flowpanel but it still wouldn't work, though I'm not sure whether is my css file in the correct folder but it works for my regular webpage. However, when I attach a style to some GWT generated text, it doesn't work. What am I probably doing wrong? Thanks again! On Fri, Feb 19, 2010 at 8:40 PM, RPB robbol...@gmail.com wrote: A FlowPanel will act like a vertical panel (since block-level elements will naturally stack up vertically) unless you change the CSS property of it's children to float:left; Have a look at this for further info: http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html On Feb 19, 6:17 am, Tan Jia Bao jayjia...@gmail.com wrote: Hi, I'm currently making an e-commerce site using GWT and DnD. Basically everything is well and in order except for the displaying of the panels is done correctly. I'm using GWT RPC to retrieve the data from my DAO, in my main GWT RPC Client side, the data are used to create a new Widget where stuffs such as the Product name and Image are used in. In that Widget's constructor, I put all the Labels, Image into a Vertical Panel, the constructor is created with UsageExample client side file, in that client file, I have a FlowPanel which adds the widget into itself. Then my mainentrypoint calls and retrieves that FlowPanel and placing it into the mainPanel to display on the webpage. Thing is, the FlowPanel doesn't display like a FlowPanel, but rather like a VerticalPanel, I tried changing it to horizontalPanel and it works, everything else works except for the FlowPanel. Can anyone help on what I'm doing wrong? 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text - - Show quoted text - -- 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: Help with GWT FlowPanel and other Panel Styles!
A FlowPanel will act like a vertical panel (since block-level elements will naturally stack up vertically) unless you change the CSS property of it's children to float:left; Have a look at this for further info: http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html On Feb 19, 6:17 am, Tan Jia Bao jayjia...@gmail.com wrote: Hi, I'm currently making an e-commerce site using GWT and DnD. Basically everything is well and in order except for the displaying of the panels is done correctly. I'm using GWT RPC to retrieve the data from my DAO, in my main GWT RPC Client side, the data are used to create a new Widget where stuffs such as the Product name and Image are used in. In that Widget's constructor, I put all the Labels, Image into a Vertical Panel, the constructor is created with UsageExample client side file, in that client file, I have a FlowPanel which adds the widget into itself. Then my mainentrypoint calls and retrieves that FlowPanel and placing it into the mainPanel to display on the webpage. Thing is, the FlowPanel doesn't display like a FlowPanel, but rather like a VerticalPanel, I tried changing it to horizontalPanel and it works, everything else works except for the FlowPanel. Can anyone help on what I'm doing wrong? 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.
ScrollPanel (scrollbar) CSS
Hello, Does anyone know how to change the scrollpanel CSS (specifically I want to make the scrollbar a different colour). Any example CSS or tips would be much appreciated (it's not in the GWT showcase). 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: ScrollPanel (scrollbar) CSS
Thanks for the suggestion, but ScrollPanel doesn't exist in standard.css (or if i've missed it, could you please post the google css here?) I've been trying a couple of things. The most successful is the below which works on IE but not Firefox or Chrome. Any other ideas? . .scroll{ scrollbar-3dlight-color:#FFD700; scrollbar-arrow-color:#00; scrollbar-base-color:#FF6347; scrollbar-darkshadow-color:#FFA500; scrollbar-face-color:#008080; scrollbar-highlight-color:#FF69B4; scrollbar-shadow-color:#FF00FF; } .. g:ScrollPanel styleName='{style.scroll}' On Feb 12, 4:42 pm, Christian Goudreau goudreau.christ...@gmail.com wrote: Simply copy the ScrollPanel css from the google css file. Change de gwt-ScrollPanel name to whatever you want, but only change the primary name. Then, you have to call setStylePrimaryName on your scrollbar. Finally, you change the css as you wish. Christian On Fri, Feb 12, 2010 at 11:38 AM, RPB robbol...@gmail.com wrote: Hello, Does anyone know how to change the scrollpanel CSS (specifically I want to make the scrollbar a different colour). Any example CSS or tips would be much appreciated (it's not in the GWT showcase). 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: I need SOP disabled in GWT 2.0 built-in web server.
This works for me in GWT 2.0: -Open 'Debug configurations' in eclipse -Uncheck 'Run built-in server' -Set the port number to your localhost port -Run Good luck, Rob On Feb 7, 4:51 am, Tatchan tatcha...@gmail.com wrote: Hi all, I have to make http request (but not RPC) to a service which runs in a different port on the local host in development mode, which is fortunately possible with GWT 1.7 and IE 8 (but not with Firefox 3.5 - bad). But now with GWT 2.0 this convenience has gone. Things got really complicated and inefficient in terms of development, since I have to use an external Apache server with proper proxy configuration to make it work. Stuffs have to be deployed to the server usually - really bad. And, to be frank, I still have problems now, and I wish I had my convenience back. I need a simple way to bypass SOP for locally development. Could anyone help me please? Thanks alot, ~Tatchan -- 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: Overriding DecoratedTabPanel CSS does not seem to change the look of the Tabs
Thanks for the tip, but I'm not quite ready to switch to standards mode (required for TabLayoutPanel) as it will involve a rework of some of the other elements on my website. I found that I am able to apply custom stylings if I first specifically remove the defaults : tp.getDeckPanel().removeStyleName(gwt-TabPanelBottom); tp.getTabBar().removeStyleName(gwt-DecoratedTabBar ); Not sure why this is necessary, but seems to do the trick. On Dec 28 2009, 12:45 pm, mariyan nenchev nenchev.mari...@gmail.com wrote: Use the new TablayoutPanel it is easer to customize it. -- 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.
Overriding DecoratedTabPanel CSS does not seem to change the look of the Tabs
Hi all, I am seeing a strange problem when trying to alter the CSS for a DecoratedTabPanel. I don't have the problem for any other widgets, which change as I would expect. Here is what I have tried so far: a) Copy all of the CSS from the GWT showcase tabPanel example (http:// gwt.google.com/samples/Showcase/Showcase.html#CwTabPanel) into my CSS file. Overwrite all of the background colours to black b) Directly copied the alternate showcase CSS styles (shown by clicking the buttons in the top corner) into my CSS file c) Tried changing the style to something else completely e.g. myTabPanel.setStylePrimaryName(gwt-HTML) However the panel still looks the same in all cases. The only thing I've been able to change is the background colour of the tabbar and the tabpanel but what I really want to alter is the colours of the tabs and border. Has anyone seen this problem before? Or can anyone show me a code snippet, if you have overriden the default CSS for tabpanel, so i can see if i'm missing something obvious? Many 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: RequestBuilder returning empty argument result?
Could you be running into the SOP (same origin policy) problem? If your GWT and CGI script are running on different hosts the GET/POST requests won't work. See: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=FAQ_SOP http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=GettingStartedJSON (scroll down to the SOP section for potential workarounds). Hope this helps. On Nov 9, 7:47 pm, dk dean.kar...@gmail.com wrote: Hi, This is about GWT 1.7.1 on a RedHat EL 5.4 system. I have been messing with GWT for a while now. I am not an expert and am really still a java newbie. I have the following code snippet in an application I am writing. There is an existing CGI app and I am replacing the GUI with GWT and using the existing CGI scripts for the data operations. I am setting up a RequestBuilder call to retrieve data from a CGI script. That script generates data and sends it as a JSON string back to this routine. The issue is that I am receiving an: empty argument message that is generated by the JSONParser. The message comes through the catch clause that holds the LOG(getInfo:onResponseReceived:e2: line. I *know* the CGI script is doing its thing. I can run it from the command line and visit its URL and I get JSON'd data that looks OK to my eye. The code section looks like: public void getInfo() { RequestBuilder req; LOG(getInfo:a); req = new RequestBuilder(RequestBuilder.GET, URL.encode(baseURL + archive.cgi)); LOG(getInfo:b:+req.getUrl()); try { req.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable e) { Window.alert(getInfo failed: + e.toString()); } public void onResponseReceived(Request request, Response response) { JSONObject Info; try { LOG(getInfo:onResponseReceived:a:); Info = JSONParser.parse(response.getText() ).isObject (); } catch (NullPointerException e) { LOG(getInfo:onResponseReceived:e1: + e.getMessage()); throw new RuntimeException( Failed to send JSON request); } catch(IllegalArgumentException e) { LOG(getInfo:onResponseReceived:e2: + e.getMessage()); throw new RuntimeException( Failed to send JSON request); } catch(Exception e) { LOG(getInfo:onResponseReceived:e3: + e.getMessage()); throw new RuntimeException( Failed to send JSON request); } Here is a sample JSON'd string. {searchTerm:,pending:[h2Calendar for Fall 2009/h2 \n,h3Tuesday, November 10, 2009br/MRI Stuff/h3\nh4Speaker: Andrew a href=\mailto:and...@north.com\;img src=\/images/email.jpg \ alt=\(email)\//a, Radiology and Biomedical Engineering/h4 \nh4Time: 12:00PM/h4\nh4Location: Room 5602/h4\nh4Abstract:/ h4\npTranscatheter and percutaneous liver-directed approaches are widely used for the treatment of ... procedures./p\n,h3Tuesday, November 17, 2009br/Title Forthcoming/h3\nh4Speaker: Chas Conway/h4\nh4Time: 12:00PM/h4\nh4Location: /h4 \nh4Abstract:/h4\npAbstract Forthcoming/p\n,h3Tuesday, November 24, 2009\nbr/No Forum - Thanksgiving Vacation/h3 \n,h3Tuesday, December 1, 2009br/Title Forthcoming/h3 \nh4Speaker: Yi Lu, Professor/h4\nh4Time: 12:00PM/h4 \nh4Location: /h4\nh4Abstract:/h4\npAbstract Forthcoming/p \n,h3Tuesday, December 8, 2009br/Title Forthcoming/h3 \nh4Speaker: /h4\nh4Time: 12:00PM/h4\nh4Location: /h4 \nh4Abstract:/h4\n\n,h32009-12-09br/Fall Semester Ends/h3 \n]} This was produced from a Perl cgi script using CGI.pm and JSON::XS FireFox/FireBug shows the request call and the headers but the result is missing. This code is not really different than other working code and the CGI is not really all that different either. I have tried using a POST method and setting req.setHeader(Content-Type, application/x-www-form- urlencoded); though I am not sending any data to the script. I have tried setting req.sendRequest(null, new RequestCallback() { req.sendRequest(, new RequestCallback() { req.sendRequest(dummy=value, new RequestCallback() { and it is still happening. It must be something very trivial that I am not seeing. Can you
XMLParser cannot parse the £ symbol
Hello, I am retrieving XML data from the Amazon UK api which returns XML including a £ (GBP) sign. I found that XMLParser.parse(xmlText) will throw an exception (com.google.gwt.xml.client.impl.DOMParseException: Failed to parse ) unless i remove the £ signs from the XML. I am hoping someone can explain why this happens? It doesn't seem to make sense to me to have to pre-process the XML by removing the £ signs or adding CDATA sections - please let me know if there is a better way. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: XMLParser cannot parse the £ symbol
Thanks Bill, this was a great help - i've tracked down the problem now. As you say it was nothing to do with the gwt XMLParser, but rather the encoding of one of the stages along the way. I checked the steps between the generation of the XML file and the parsing, and the problem was that my PHP file wasn't UTF-8 encoded. Fixing this fixed the problem. I will keep in mind these factors in the future. Cheers, Rob On Nov 10, 3:04 pm, Bill Michell bill.mich...@googlemail.com wrote: On 9 Nov 2009, at 17:00, RPB wrote: Hello, I am retrieving XML data from the Amazon UK api which returns XML including a £ (GBP) sign. I found that XMLParser.parse(xmlText) will throw an exception (com.google.gwt.xml.client.impl.DOMParseException: Failed to parse ) unless i remove the £ signs from the XML. The £ sign is not part of the 7-bit US-ASCII character set. That means that character encoding issues become critical, if you don't want corrupted data. If your file was encoded in ISO 8859-1 (Latin 1) but you were treating it as though it was encoded in UTF-8, or some similar mismatched pair, you'd see problems of this kind - in fact, be thankful that an exception was thrown - in some cases, you'd just get silent data corruption! I am hoping someone can explain why this happens? It doesn't seem to make sense to me to have to pre-process the XML by removing the £ signs or adding CDATA sections - please let me know if there is a better way. Take steps to preserve character encoding information at the various stages, or else find a single one that will work through all stages of the chain. UTF-8 is becoming a de-facto standard, but nevertheless not all systems support it yet... Thanks! -- Bill Michell billmich...@gmail.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 -~--~~~~--~~--~--~---