Re: Digest for google-web-toolkit@googlegroups.com - 1 update in 1 topic

2022-12-05 Thread Tom Van Eetvelde
Yes Op zo 4 dec. 2022 14:01 schreef : > google-web-toolkit@googlegroups.com > > Google > Groups > >

Re: Running locally in Dev mode with Eclipse

2020-11-20 Thread Tom Van Eetvelde
ven by default. You can even run maven builds in eclipse. If you go the maven way, your project is immediately ready to be taken up in some automatic build system. Hope this helps. Greets, Tom. Op donderdag 19 november 2020 om 23:56:47 UTC+1 schreef ronaldob...@gmail.com: > Hello all, >

Just saying thanks

2020-10-19 Thread Tom Van Eetvelde
Hi, I just wanted to say that I have been using GWT since 2009 and I never thought about sharing how much fun GWT has brought to my developer life. So I am doing it now :-) To be honest, there are some libraries/toolkits out there that rise above the others. They have this intrinsic quality,

Re: Client to client communication

2018-03-06 Thread Tom Davies
A GWT client is a web page in a browser, which can't talk to another browser instance, because a browser can't listen on a socket, as far as I'm aware. So clients don't really have 'port numbers'. I think that the right way to do what you want to do would be to have clients send messages to a

gwt-maven-plugin: how can I chnage the Jetty port?

2017-02-23 Thread Tom Pijl
I am using the gwt-maven-plug of Thomas Broyer. I would like to change the Jetty server port from (default) to e.g. 4200 when running mvn gwt:devmode. Any pointers on how to configure that? -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To

Re: GWT RPC in GWT 3.0+

2016-02-06 Thread Tom Davies
I'm not actively using GWt at present, unfortunately, but I second the importance of GWT-RPC. For me the ability to statically type the interfaces is very important, and the tooling support that Intellij IDEA provides makes it easy to use. Are there any statically typed alternatives? It's a

Re: GWT RPC in GWT 3.0+

2016-02-06 Thread Tom Davies
I didn't realise that RestyGWT did the server side too -- thanks for getting me to look at it again! -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: GWT RPC in GWT 3.0+

2016-02-06 Thread Tom Davies
On Sunday, 7 February 2016 18:07:12 UTC+11, Vassilis Virvilis wrote: > > AFAIK RestyGWT does not include a server component. You have to rely on > another jax-rs server-side stack in order to serve RestyGWT requests. > > Here is a list of java implementations although nobody forces to stay on

Re: How to make your GWT app loading fast by using gzip in .htaccess file?

2015-01-12 Thread Tom
file. Apache Tomcat won't honor it. The expected name is also .htaccess, not 1.htaccess. On Monday, January 12, 2015 at 5:16:59 AM UTC+1, Tom wrote: My GWT app got a problem . That is the Initial downloading file is quite big. So I want to make it smaller. SO I heard that we can put the gzip

How to add back the “loading” Element after removed it from Parent?

2015-01-12 Thread Tom
Ok, in war/MyProject.html, I have: body div id=loading div id=waitingForLoading/div BR/ img src=../images/loading.gif / /div ... /body in MyProject.java public class OfflineMatching implements EntryPoint { @Override public void onModuleLoad() {

How to make your GWT app loading fast by using gzip in .htaccess file?

2015-01-11 Thread Tom
My GWT app got a problem . That is the Initial downloading file is quite big. So I want to make it smaller. SO I heard that we can put the gzip configuration into .htaccess file in ROOT folder and then all the .cache.html files will be zipped when downloaded from Server to user personal

how to correctly remove element in gwt (both `DOM.isOrHasChild` `DOM.removeChild` were deprecated)?

2015-01-02 Thread Tom
Ok, this code works if(DOM.isOrHasChild(RootPanel.getBodyElement(), DOM.getElementById(loading))){ DOM.removeChild(RootPanel.getBodyElement(), DOM.getElementById(loading)); } However, both DOM.isOrHasChild DOM.removeChild were deprecated. Then, the question is: What are the

Re: GWT 2.7.0 is here

2014-11-20 Thread Tom Legrand
Great news! We're going to switch to 2.7 in our next sprint Great to see it compiles even faster in the super dev mode On Thursday, November 20, 2014 11:59:06 AM UTC+1, Daniel Kurka wrote: Today we are excited to announce the GWT 2.7.0 release. Thanks to everyone who contributed to this

How to config so that the Server can see the image location of GWT app when the app was not put into ROOT folder of Tomcat?

2014-10-06 Thread Tom
Ok, I built an GWT app. It has images folder located inside war folder. In my UiBinder I have something likje this g:Image url=/images/oLogo.png/ I compiled my project and bring all the compiled files into Root folder of tomcat then all imagea are fine as I can see them But if I copy the

Where to call an Action when user remove an uploaded image in GWTUpload?

2014-09-30 Thread Tom
I am using GWTUpload , the library is in here https://code.google.com/p/gwtupload/ The Example code at client side found on that website has this structure: // Attach an image to the pictures viewer private OnLoadPreloadedImageHandler showImage = new OnLoadPreloadedImageHandler() {

How to calculate ages correctly in GWT?

2014-09-29 Thread Tom
This is what I did, but it did not take into account the leap years public static int calculateAge(String MMddBirthDate){ DateTimeFormat fmt = DateTimeFormat.getFormat(-MM-dd); Date birthDateDate = fmt.parse(MMddBirthDate); Date nowDate=new Date(); long

How to effectively add Constants values into a ListBox in GWT?

2014-09-27 Thread Tom
Ok, say I have a Label and a ListBox in UiBinder g:Label ui:field=countryLabel / g:ListBox ui:field='countryListBox' visibleItemCount='1' / In MyConstants.properties file country=Country england=England america=America japan=Japan in Presenter or View

Re: How to effectively add Constants values into a ListBox in GWT?

2014-09-27 Thread Tom
, September 27, 2014 10:37:31 PM UTC+10, Tom wrote: Ok, say I have a Label and a ListBox in UiBinder g:Label ui:field=countryLabel / g:ListBox ui:field='countryListBox' visibleItemCount='1' / In MyConstants.properties file country=Country england=England america=America japan=Japan

Confusing about Single Quote of MyMessages and MyConstants properties file Do and DONT need escape in different GWT versions

2014-09-27 Thread Tom
Ok, let say, I got MyMesssages.peroperties file that has: myText=I don''t Ok, I used to run my app under GWT 2.5 and it required me to escape the Single Quote, ie i have to type 2 Single Quote otherwise I will have a RunTime error. Now I using GWT2.6 I don't need to escape just 1 Single

How to change the Size of the ListBox of the datePicker in GWT?

2014-09-24 Thread Tom
I am building a mobile website and thus I have a need to many all GWT Gui to become bigger. For example, my css in my gwt mobile app is like this: .myNormalMobileFont{ font-size: 500%; } .myNormalLargeFont{ font-size: 700%; } And Here is Css code of DateBox and DatePicker

How to simply add more years into DatePicker in GWT and use the format to DD-MM-YYYY when a date was selected?

2014-09-23 Thread Tom
Look at this code, DateBox myDateBox=new DateBox(); myDateBox.getDatePicker().setYearAndMonthDropdownVisible(true); DateTimeFormat dateFormat = DateTimeFormat.getFormat(DD-MM-); myDateBox.setFormat(new DateBox.DefaultFormat(dateFormat)); Ok, when I clicked on the DateBox the DatePicker

Can we build GWT app that does not have Captcha function but is still able to prevent spam?

2014-09-22 Thread Tom
I am building Gwt site for mobile devices. The screen size of the mobile devices is very small, so I think if i require users to enter Captcha when they register then it could be quite cumbersome. I heard that we can use some Javascript technique to prevent the Spam without needing to use

Which GWT Layout Panel is perfect for building Mobile Friendly Website?

2014-09-21 Thread Tom
Ok, A Mobile Friendly Website should be very short and focus on the task, so it wont need to show the headers as in Desktop Website. Here is What I want to design. When user open mydomain.com in Mobile devices like Smartphone or Tablet. They Will see Email: Pass: Login Registration

Re: How to let Hermes to switch to other properties file rather the default one?

2014-08-06 Thread Tom
I did use ur code, but it didn't work as it still pick the default ID (id=1245) On Wednesday, August 6, 2014 5:21:31 PM UTC+10, Fabien Dumay wrote: Hi Tom, Did you think to enable the i18n permutations? To to setup the german permutation, you have to add few lines in gwt module file

Re: How to let Hermes to switch to other properties file rather the default one?

2014-08-06 Thread Tom
(); //will print id=4545 MyConstants myConstants = Hermes.get(MyConstants.class, de); myConstants.id(); //will print id=2121 On Wednesday, August 6, 2014 12:35:52 PM UTC+10, Tom wrote: Ok, I am building GWT app and I am using Hermes to manage the constants at Server side. Here is what I did

How to let Hermes to switch to other properties file rather the default one?

2014-08-05 Thread Tom
Ok, I am building GWT app and I am using Hermes to manage the constants at Server side. Here is what I did: I created MyConstantsWithLookup.properties (default English version) MyConstantsWithLookup_de.properties (German version) MyConstantsWithLookup.java in client package

How to make Div and Image flow inline in GWT?

2014-07-30 Thread Tom
There is following code in UiBinder div class={style.flowInline} div class={style.flowInline} ui:field=text1Div / g:Image ui:field=image1 addStyleNames={res.css.flowInline} / div class={style.flowInline} ui:field=text2Div / g:Image ui:field=image2 addStyleNames={res.css.flowInline}

Why Cookies will not be stored if setting Timeout = 30 days in GWT?

2014-07-30 Thread Tom
This is very weird. Ok, the below code works fine public void setCookie(String cookiesName, String cookiesValue){ final int COOKIE_TIMEOUT = 1000 * 60 * 60 * 24;//1 days Date expires = new Date((new Date()).getTime() + COOKIE_TIMEOUT); Cookies.setCookie(cookiesName, cookiesValue,

How to access “locale” value (of an Internationalization App) in server side in GWT?

2014-07-29 Thread Tom
Ok, I am developing an app that supports Internationalization. I am using Static String Internationalization method for my app. Let say my app can have English German version, so -1st, I created MyMessages.java which has all message texts written in English. Then I created an

Re: How to access “locale” value (of an Internationalization App) in server side in GWT?

2014-07-29 Thread Tom
+10, Cerberus wrote: Am 29.07.2014 08:07, schrieb Tom: However, I have a need to know that my app is German |At Server Side|. That means whenever my GWT Gui in German version then my server will know that |languageCode=1| if it is in English so server will use the default language

Re: How to access “locale” value (of an Internationalization App) in server side in GWT?

2014-07-29 Thread Tom
, 2014 7:47:42 PM UTC+10, Cerberus wrote: Am 29.07.2014 11:41, schrieb Tom: The internationalization works fine if i open * http://127.0.0.1:/Ekajati.html?gwt.codesvr=127.0.0.1:9997;locale=de#!orderPage * But it doesn't work if i open * http://127.0.0.1:/Ekajati.html

Re: How to access “locale” value (of an Internationalization App) in server side in GWT?

2014-07-29 Thread Tom
On Tuesday, July 29, 2014 7:46:12 PM UTC+10, Jens wrote: The internationalization works fine if i open *http://127.0.0.1:/Ekajati.html?gwt.codesvr=127.0.0.1:9997;locale=de#!orderPage http://127.0.0.1:/Ekajati.html?gwt.codesvr=127.0.0.1:9997;locale=de#!orderPage * But it

Re: How to access “locale” value (of an Internationalization App) in server side in GWT?

2014-07-29 Thread Tom
); On Tuesday, July 29, 2014 4:07:47 PM UTC+10, Tom wrote: Ok, I am developing an app that supports Internationalization. I am using Static String Internationalization method for my app. Let say my app can have English German version, so -1st, I created MyMessages.java which has all message

How to get the Url string before after “#” that works both in eClipse Development in deployed real domain name in GWT?

2014-07-29 Thread Tom
Ok, I am deveoping a GWT app using eClipse, Everytime I run my app in eClipse the it return this format of url http://127.0.0.1:/MyProject.html?gwt.codesvr=127.0.0.1:9997#!getOrder Ok, if I deploy my app into a real domain then it will be like this http://dm.com#!getOrder I have no ide

Re: How to get the Url string before after “#” that works both in eClipse Development in deployed real domain name in GWT?

2014-07-29 Thread Tom
Thank you very much Jen, this is exactly what I need as it change thes current url not remove the name token other params of the current url. On Tuesday, July 29, 2014 10:31:37 PM UTC+10, Jens wrote: String newUrl = Window.Location.createUrlBuilder().setParameter(locale, listbox

Re: How to get the Total of current tabs in TabLayoutPanel?

2014-07-26 Thread Tom
Awesome, it works Thax u very much On Saturday, July 26, 2014 9:27:46 PM UTC+10, Jens wrote: TabLayoutPanel.getWidgetCount() -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving

How to get the Total of current tabs in TabLayoutPanel?

2014-07-25 Thread Tom
We have tabLayoutPanel.selectTab(1) to select the the 2nd tab of the tabLayoutPanel However, we need to make sure that the tabLayoutPanel must currently have 2 tabs otherwise it will have out of bound error. And if it has out of bound error the rest of the code will not be implemented.

Can we have both ClickableTextCell and ButtonCell on the same column in GWT?

2014-07-21 Thread Tom
Ok, I have an IndexedColumn public class IndexedColumn extends ColumnListString, String{ public IndexedColumn(int index){ super(new ClickableTextCell()); // by default it is ClickableTextCell } } When creating column IndexedColumn objectColumn=new IndexedColumn(6){

How to create the Horizontal ScrollBar at the bottom of DataGrid as in GWT CellSampler example?

2014-07-17 Thread Tom
I like DataGrid since it has fixed header so wen user scrolldown they are still be able to see the column header. However, if there are too many columns then the DataGrid will manage to fit all columns within the Fixed Width of the widget that contain it. For example, if a 30 column

Re: How to create the Horizontal ScrollBar at the bottom of DataGrid as in GWT CellSampler example?

2014-07-17 Thread Tom
cell is 1 then the column width should contain the whole word ID which is the longest data in the column. On Friday, July 18, 2014 2:03:00 PM UTC+10, Tom wrote: I like DataGrid since it has fixed header so wen user scrolldown they are still be able to see the column header. However

Re: The First-Time loading issue of a deployed GWT app?

2014-07-15 Thread Tom
am not sure if i put the that *js script../script* inside the *body*, then will that cause any later problem? On Tuesday, July 15, 2014 1:34:29 PM UTC+10, Tom wrote: I deployed my app and I got this issue. The first time the app got loaded, it will show a blank white page for 5-7 second

Re: The First-Time loading issue of a deployed GWT app?

2014-07-15 Thread Tom
Or do I need to do the *Code Splitting *in the *EntryPoint* ? or using CSS loading indicator? On Tuesday, July 15, 2014 1:34:29 PM UTC+10, Tom wrote: I deployed my app and I got this issue. The first time the app got loaded, it will show a blank white page for 5-7 second which is pretty

Re: The First-Time loading issue of a deployed GWT app?

2014-07-15 Thread Tom
, Thomas Broyer wrote: On Tuesday, July 15, 2014 6:05:13 PM UTC+2, Tom wrote: Someone told me to put the *script type=text/javascript language=javascript src=myproject.nocache.js/script* inside the *body* tag rather than inside the *head *tag. After doing that it seem that it had loaded

The First-Time loading issue of a deployed GWT app?

2014-07-14 Thread Tom
I deployed my app and I got this issue. The first time the app got loaded, it will show a blank white page for 5-7 second which is pretty long for a good user-experience. But after that, the page show really really fast since it got cached. The problem is that when i advertised my site in

What is the best solution to hide the ugly Gwt Crawlable Url (the one use hashbang)?

2014-07-12 Thread Tom
I just discovered that google adword does not allow the hash bang (#) in the destination url of Adword Ads. If the url contains # then u can't advertise ur page in Google. So we need a way to hide the hash bang (#) in the url but still be able to let the the spider to know that our app is

How to clear all the current params of a current request (not to create a new request) in GWTP?

2014-07-12 Thread Tom
I am using GWT for my web app. Here is the problem. I have a currentRequest=new PlaceRequest(NameTokens.cust).with(ID, custID).with(name,name); now I want to clear all the existing params of currentRequest, ie I want to remove ID name params in currentRequest. If I don't remove them,

Scrollpanel doesn't scroll automatically when dragging an item over the borderzone

2014-07-07 Thread Tom
) Regards Tom -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google

Want to convert a couple of Java Applets

2014-07-01 Thread Tom Adams
I have a couple of Java Applets deployed on the web that I would like to convert away from deploying Java Applets, due to the apparent failure/decline of Java Applets as a web technology. There are at www.poologic.com. they are the Poologic Calculator and ROI Calculator. Seems I can use GWT

is there any way to trigger a method when users mouse over the Title of a column in GWT-CellTable?

2014-06-12 Thread Tom
Ok, I have a CellTable CellTableListString table = new CellTableListString(); a nameColumn IndexedColumn nameColumn=new IndexedColumn(0) then table.addColumn(nameColumn, Name); I want that when user mouseOver the title of nameColumn it will trigger methodX The table.addCellPreviewHandler

Re: is there any way to trigger a method when users mouse over the Title of a column in GWT-CellTable?

2014-06-12 Thread Tom
if(mouseout.equals(event.getType())){ meaningMessagesPopup.hide(); } } }; table.addColumn(nameColumn, nameColumnHeader); But seem Gwt did not recognize *mouseover.equals(event.getType())* On Friday, June 13, 2014 12:51:03 AM UTC+10, Tom wrote: Ok, I have a CellTable

Re: is there any way to trigger a method when users mouse over the Title of a column in GWT-CellTable?

2014-06-12 Thread Tom
Thank you Jens for your hint. I couldn't see any getConsumedEvents() so I used onBrowserEvent and it working ok. private class HeaderCell extends AbstractCellString { private String text; public HeaderCell(String text) { /* * Let the

How to change this design so that when the ScrollBar of a ScrollPanel got scrolled it will always show the 3rd panel in GWT?

2014-06-09 Thread Tom
Ok, here is my current design, I have 3 panels inside a Grid the Grid is inside a ScrollPanel. I want that when the ScrollBar of the ScrollPanel got scrolled it will always show the 3rd panel. Grid myGrid=new Grid(1,3); myGrid.getCellFormatter().setVerticalAlignment(0, 0,

Re: How to change this design so that when the ScrollBar of a ScrollPanel got scrolled it will always show the 3rd panel in GWT?

2014-06-09 Thread Tom
Thax you for ur hint, so I won't ensureVisible(panel3) Instead, I put panel3 outside ScrollPanel,now the panel3 stand independently from scrollpanel On Tuesday, June 10, 2014 2:33:24 AM UTC+10, Jens wrote: You don't want to call ensureVisible() inside an onScroll callback...that looks

So GWT 2.6 fixed the bug When clicking on an item in a tree, it makes the vertical scroll bar jump up in GWT 2.5, did it?

2014-06-07 Thread Tom
Ok, about 8 months ago, I used Gwt 2.5 got this problem. The problem is that when I click on an item in a tree that is located inside a scrollpanel, it makes the vertical scroll bar jump up. See my question

Re: In order to make the url bookmarkable, sometimes we need long parameters but IE max url length is only about 2000, How to deal with it?

2014-06-06 Thread Tom
find a soluution that we don't need to store into DB but still can handle that situation since it is not the most critical function so we should not put too much resource for it? On Friday, June 6, 2014 7:29:51 PM UTC+10, Thomas Broyer wrote: On Friday, June 6, 2014 6:16:23 AM UTC+2, Tom

Re: In order to make the url bookmarkable, sometimes we need long parameters but IE max url length is only about 2000, How to deal with it?

2014-06-06 Thread Tom
into the param strings. If we can have an encoding system like that then it could be a better choice than storing params in DB? On Friday, June 6, 2014 7:29:51 PM UTC+10, Thomas Broyer wrote: On Friday, June 6, 2014 6:16:23 AM UTC+2, Tom wrote: we need a lot of parameter for our gwt app

Re: In order to make the url bookmarkable, sometimes we need long parameters but IE max url length is only about 2000, How to deal with it?

2014-06-06 Thread Tom
the checkbox info is not too important to a level that I need to store them into DB. For example, 3 checkboxes were checked to show the last revenues in 3 years... If the check boxes were not checked then user can still figure out can check by themselves. But if the url can tell exactly which

Why br tag was not parsed inside custom HTMLColumn in GWT?

2014-06-06 Thread Tom
Ok, I have a HTML column which should parse any textcell that contain html tag into HTML value: public class HTMLColumn extends ColumnListString, String{ public HTMLColumn(){ super(new ClickableTextCell(){ public void render(Context context,

Re: Why br tag was not parsed inside custom HTMLColumn in GWT?

2014-06-06 Thread Tom
Thax you Jens, it's fase data only vip can input html On Friday, June 6, 2014 9:15:14 PM UTC+10, Jens wrote: SafeHtml.asString() escapes HTML entities to secure you from XSS attacks, thats the point of using it. In your example, if your br should not be escaped you must create a SafeHtml

In order to make the url bookmarkable, sometimes we need long parameters but IE max url length is only about 2000, How to deal with it?

2014-06-05 Thread Tom
This is serious problem. In GWT, making your url bookmarkable is important. Thus we may have a very long parameter in the url, but IE can only handle url length that is about 2000 characters or less. So a url can work ok in Chrome but when ran under IE it got chopped off thus will corrupt

Re: In order to make the url bookmarkable, sometimes we need long parameters but IE max url length is only about 2000, How to deal with it?

2014-06-05 Thread Tom
-03:00 Tom henr...@gmail.com javascript:: This is serious problem. In GWT, making your url bookmarkable is important. Thus we may have a very long parameter in the url, but IE can only handle url length that is about 2000 characters or less. So a url can work ok in Chrome but when ran under

How to fix the conflict between mySuggestBox.addKeyDownHandler mySuggestBox.addSelectionHandler in GWT?

2014-06-04 Thread Tom
I have a SuggestBox. I want 2 things: -1st, when user Type in a word if the SuggestOracle suggest any word then if i select that word by hitting the Enter key on the selected word or clicking on that word it will call a methodX -2st, suppose I typed a word into a suggest SuggestOracle

Re: How to fire an event when Cookies has just expired in GWT?

2014-05-31 Thread Tom
().getPasswordBox().setText(); Utility.removeUserInfoCookies(); } }; showLoginPanelTimer.schedule(Utility.COOKIE_TIMEOUT); On Saturday, May 31, 2014 3:20:14 PM UTC+10, Tom wrote: Ok, here is the requirement. I want to build a system look like this: - Header

How to fire an event when Cookies has just expired in GWT?

2014-05-30 Thread Tom
Ok, here is the requirement. I want to build a system look like this: - Header: have a PleaseLoginPanel and SuccessfulLoginPanel - Content Page just contains content communicate with header via EventBuss - HeaderPresenter is the parent presenter ContentPresenter is nested inside the Header

Why GWT app didn't fire when users click on the href link that have the domain that is the same as host domain?

2014-05-28 Thread Tom
I am using GWTP Here is the problem I have a customer page like this http://127.0.0.1:/MyProject.html?gwt.codesvr=127.0.0.1:9997#!cust;custID=1 Suppose I have this code: InlineHTML myLink=new InlineHTML(a href=\http://car.com; car /a ); When clicking on car link it went to car page.

Re: Why GWT app didn't fire when users click on the href link that have the domain that is the same as host domain?

2014-05-28 Thread Tom
you use? On Wed, May 28, 2014 at 9:08 AM, Tom henr...@gmail.com javascript:wrote: I am using GWTP Here is the problem I have a customer page like this http://127.0.0.1:/MyProject.html?gwt.codesvr=127.0.0.1:9997#!cust;custID=1 Suppose I have this code: InlineHTML myLink=new

Re: Hi Ajax experts, can Google spider read the content of Ajax app (that does not have any code to to make it Crawlable) by itself?

2014-05-21 Thread Tom
Thank you very much for your answer. This is quite new, I will test it. On Wednesday, May 21, 2014 12:17:44 PM UTC+10, Joseph Lust wrote: I misspoke, *Fetch As Google *will show you the HTML and request headers, what I was thinking of was *Labs Instant Previews* In the example below

Re: Hi Ajax experts, can Google spider read the content of Ajax app (that does not have any code to to make it Crawlable) by itself?

2014-05-19 Thread Tom
i did use web master tool, but seem Google can not index gwtp page. They can index the home page, ie i can see text in home page when searching site:mydomain.com but it didn't show other sub pages. On Monday, May 19, 2014 10:14:21 PM UTC+10, Joseph Lust wrote: Tom, To assuage your healthy

Re: Hi Ajax experts, can Google spider read the content of Ajax app (that does not have any code to to make it Crawlable) by itself?

2014-05-19 Thread Tom
, May 19, 2014 10:14:21 PM UTC+10, Joseph Lust wrote: Tom, To assuage your healthy skepticism, get a Googlw Webmaster Tools account, add your site, and then use the* Crawl Fetch as Google option*. I am able to feed it my GWT home page and sub pages (based on history tokens in the URL

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-17 Thread Tom
did u see the text after HtmlUnit rendered the page? or u just see javascript code only? Can you post your code? On Sunday, May 18, 2014 4:47:11 AM UTC+10, Joseph Lust wrote: FWIW, I've had Google crawling my GWTP based sites without a problem, and I've added no such servlet. I think

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-17 Thread Tom
So u mean u don't even need to HtmlUnit to do that? can u show me your rela life website ? On Sunday, May 18, 2014 4:47:11 AM UTC+10, Joseph Lust wrote: FWIW, I've had Google crawling my GWTP based sites without a problem, and I've added no such servlet. I think they've figured out how to do

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-17 Thread Tom
Man, seem you are right. On Sunday, May 18, 2014 4:47:11 AM UTC+10, Joseph Lust wrote: FWIW, I've had Google crawling my GWTP based sites without a problem, and I've added no such servlet. I think they've figured out how to do the JS evaluation on their side. Using Googles Web Developer

Hi Ajax experts, can Google spider read the content of Ajax app (that does not have any code to to make it Crawlable) by itself?

2014-05-17 Thread Tom
I remembered that about 1 or 2 years ago, I read an article in which it said that in the future, Google Spider will be able to read the text in any Ajax app. That mean we don't even need to make our GWT App crawlable. Google did it for us. (1) But, before the above thing (1) happened, to

How to program at client side to get Html Snapshot (or to capture all texts) of entire GWT page?

2014-05-17 Thread Tom
To let you understand what I want, please read this: Suppose you have a GWT page (mydomain.com#!article). That page contain many widgets and data downloaded from DB. The DB data the widgets are mixed into each other, for example a label can hold Customer Name (customer name came from DB).

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-17 Thread Tom
seem they can read only static data, not dynamic data taken from DB. Ex, in your GWTP page, if u have *label.setText(my text);* then Google can read *my text*. However, if you do like this, String text=getDataFromDB(); // getDataFromDB() uses RPC call, //suppose getDataFromDB() return my

Re: The crawler escapes “mydomain#!article” into “mydomain?_escaped_fragment_=article”, how to retrieve back the original url?

2014-05-16 Thread Tom
is it ok to do like this originalUrl=java.net.URLDecoder.decode(originalUrl, UTF-8); Which one do we have to use UTF-8 or ASCII ? So when the crawler escape the url, does it use URL.encode()? if it does then which one it uses UTF-8 or ASCII? On Friday, May 16, 2014 2:49:45 PM UTC+10, Tom

Re: Why do I have java.util.EmptyStackException when using HTMLUnit to render the page via Filter?

2014-05-16 Thread Tom
it couldn't parse the article page. WHy does that happen? On Friday, May 16, 2014 3:52:50 PM UTC+10, Tom wrote: i found this link http://htmlunit.10904.n7.nabble.com/htmlunit-Bugs-1728761-java-util-EmptyStackException-in-webclient-td4900.html Maybe this causing the problem: !stack.empy

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-16 Thread Tom
If i open that url in IE then it ask me to provide Plugin, but if I run in Chrome, it shows the page like this This XML file does not appear to have any style information associated with it. The document tree is shown below. html .. iframe src=javascript:'' id=ekajati

Why HtmlUnit only show the host page of GWT app?

2014-05-16 Thread Tom
Here is the full code public class CrawlServlet implements Filter{ public static String getFullURL(HttpServletRequest request) { StringBuffer requestURL = request.getRequestURL(); String queryString = request.getQueryString(); if (queryString == null) { return

Why HTMLUnit always shows the HostPage no matter what url I type in (Crawlable GWT APP)?

2014-05-16 Thread Tom
Here is the full code public class CrawlServlet implements Filter{ public static String getFullURL(HttpServletRequest request) { StringBuffer requestURL = request.getRequestURL(); String queryString = request.getQueryString(); if (queryString == null) { return

Why HTMLUnit always shows the HostPage no matter what url I type in (Crawlable GWT APP)?

2014-05-16 Thread Tom
Here is the full code public class CrawlServlet implements Filter{ public static String getFullURL(HttpServletRequest request) { StringBuffer requestURL = request.getRequestURL(); String queryString = request.getQueryString(); if (queryString == null) { return

Re: Why HTMLUnit always shows the HostPage no matter what url I type in (Crawlable GWT APP)?

2014-05-16 Thread Tom
i compiled I got the same problem. On Friday, May 16, 2014 10:13:28 PM UTC+10, Jens wrote: I already said that you have to compile your app because HtmlUnit does not have a GWT DevMode browser plugin. HtmlUnit can only execute your app if it is fully compiled to JavaScript. Open

Re: Why HTMLUnit always shows the HostPage no matter what url I type in (Crawlable GWT APP)?

2014-05-16 Thread Tom
I also tried the gwtplatform Craw solution, very simple Just add these lines into DispatchServletModule in .server.guice *bindConstant().annotatedWith(CachedPageTimeoutSec.class).to(3600);* * bindConstant().annotatedWith(ServiceKey.class).to(123456);* *

Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-15 Thread Tom
Making your GWT app to be indexed by Search Engine is very important, but very very little info to tell you Step-By-Step Guidelines of How to make GWT app Crawlable dynamically. Ok, Here is what I understood but I am not sure 100% I am correct or not. SO please correct me if you can. To

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-15 Thread Tom
about this ex https://groups.google.com/forum/#!topic/google-web-toolkit/Syi04ArKl4k so Google use server-side technology to create Html snapshot? or they use HtmlUnit? On Friday, May 16, 2014 12:06:24 AM UTC+10, Jens wrote: HtmlUnit is bundles as jar file so you can put it (and all its

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-15 Thread Tom
am not very experienced in changing url request. Here is what i understand, but not sure. Ok, we already have our url myDomain.com#!article;articleID=1 showing correct article. In my server package, I have public class GetArticleActionHandler implements ActionHandlerGetArticle,

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-15 Thread Tom
ok, here is what I am trying. I created a class called CrawlServlet import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-15 Thread Tom
I done 70%, but still have some error. Ok, here is what i did, I downloaded htmlunit-2.14 unzip it copy these jar files into my lib folder *htmlunit-2.14* *commons-codec* *commons-collections* *commons-io* *commons-logging* *cssparser* *htmlunit-core-js* *nekohtml* *commons-lang3*

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-15 Thread Tom
Ok, here is the problem of HTMLUnit. I have this code url_with_hash_fragment= http://127.0.0.1:/Myproject.html?gwt.codesvr=127.0.0.1:9997#!home;; // use the headless browser to obtain an HTML snapshot final WebClient webClient = new WebClient(); HtmlPage page =

Why do I have java.util.EmptyStackException when using HTMLUnit to render the page via Filter?

2014-05-15 Thread Tom
Ok, I have a Filter public class CrawlServlet implements Filter{ @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest) request;

The crawler escapes “mydomain#!article” into “mydomain?_escaped_fragment_=article”, how to retrieve back the original url?

2014-05-15 Thread Tom
Ok, here is what Google said ( https://developers.google.com/webmasters/ajax-crawling/docs/getting-started ). When a crawler sees a url like this www.example.com/ajax.html#!key=value, it will temporarily convert that url into www.example.com/ajax.html?_escaped_fragment_=key=value However,

Re: Why do I have java.util.EmptyStackException when using HTMLUnit to render the page via Filter?

2014-05-15 Thread Tom
!empty(), another thread has already consumed the data due to JVM memory model. May be we need to do in sych?? Do you think so, if it is the problem, then how to fix it. On Friday, May 16, 2014 1:52:52 PM UTC+10, Tom wrote: Ok, I have a Filter public class CrawlServlet implements Filter

Image Debug IDs gone in 2.6.1

2014-05-14 Thread Tom
Hi I just moved our project on from 2.5.0 to 2.6.1. Many of our automated tests have failed because the debug IDs have disappeared from images. We use debugId=blah in UI Binder templates on Image widgets. This used to result in id=gwt-debug-blah in the resulting img elements in the DOM. Now

Re: Image Debug IDs gone in 2.6.1

2014-05-14 Thread Tom
before, and restoring it after, the above call. On Thursday, 15 May 2014 09:47:26 UTC+12, Tom wrote: Hi I just moved our project on from 2.5.0 to 2.6.1. Many of our automated tests have failed because the debug IDs have disappeared from images. We use debugId=blah in UI Binder templates

How to count total lines of code of a GWT project?

2014-05-13 Thread Tom
Does GWT 2.5 provide a tool to count total lines of code of a GWT project? I installed GWT2.5 in eClipse Juno, in Client package I have about 191 java files, in Server package I have about 41 java files. Some java files have 12000 lines of code some only have 1 or 2000 lines. But there are

Re: How to count total lines of code of a GWT project?

2014-05-13 Thread Tom
://metrics.sourceforge.net/ I think this will do exactly what you want. On Tuesday, 13 May 2014 08:37:33 UTC+1, Tom wrote: Does GWT 2.5 provide a tool to count total lines of code of a GWT project? I installed GWT2.5 in eClipse Juno, in Client package I have about 191 java files, in Server package I have about

Re: How to count total lines of code of a GWT project?

2014-05-13 Thread Tom
exactly what you want. On Tuesday, 13 May 2014 08:37:33 UTC+1, Tom wrote: Does GWT 2.5 provide a tool to count total lines of code of a GWT project? I installed GWT2.5 in eClipse Juno, in Client package I have about 191 java files, in Server package I have about 41 java files. Some java

Re: How to count total lines of code of a GWT project?

2014-05-13 Thread Tom
My Godness, I put *http://metrics.sourceforge.net/update now G symbol disapppeared?? * *Why, it's terrible now Why all the Gui structure gone???* *Why Could not create the view: com.android.ide.eclipse.ddms.views.LogCatView?* On Tuesday, May 13, 2014 8:42:44 PM UTC+10, Tom wrote: Can we

Re: How to count total lines of code of a GWT project?

2014-05-13 Thread Tom
of eclipse if the GUI is getting all messed up like that after a very simple plugin is installed. I've never had any such problems. Maybe if you post more information about what is going on someone can help you. Drew On Tuesday, 13 May 2014 11:54:08 UTC+1, Tom wrote: My Godness, I put *http

Re: How to count total lines of code of a GWT project?

2014-05-13 Thread Tom
wrote: Yes, 1.6, that's what it tells you. And you need 1.7. Also, this is the version of Java used to run Eclipse, not necessarily the one selected for your Eclipse project. On Tuesday, May 13, 2014 1:25:41 PM UTC+2, Tom wrote: Ok, I installed again Google Plugin but this time after relaunched

  1   2   3   4   >