Bookmarklet to open page for OOPHM debug
My working practice is to develop in eclipse on one machine but to debug in the browser on another. This means that when I have started the app in debug mode, I then have to copy and paste the URL. Since for many various GWT projects the URL is the same apart from the initial name of the html page (which is the project name) I have created a bookmarklet for my firefox browser which prompts for the name then opens a page with the properly constructed URL. I don't know if others work this way or would find this useful but here is the bookmarklet code: javascript:var%20pb=prompt('Enter%20GWT%20Name','?');if(pb!=null) {document.location='http://192.168.1.10:/'+pb+'.html? gwt.hosted=192.168.1.10:9997';} obviously the ip addresses will have to be set for your own use. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2 gotcha in DatePicker
In migrating an app from 1.7 to 2.0 I found that one thing didn't work. My app holds data based on a Date which can be retrieved by clicking on a date in the DatePicker. In 2.0 the data was not being retrieved. Turns out I was keying based on a Date object and the difference in 2.0 is that the time is set to 12 noon whereas before it was midnight. So glad GWT is open source! Quick look at the source found the change in CalendarUtil. I guess the real lesson was I should have been more careful about how I checked dates, but there you go. Just thought this may be of use for others. Thanks for gwt - and all the hard work that goes behind 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.
Re: How to prepend?
On Dec 14, 11:08 pm, Dennis Madsen den...@demaweb.dk wrote: Thanks for your reply! I cannot find a way to implement what do write. I'm doing something like: HTML widget = new HTML(div class='entry'myDiv/div); RootPanel.get(entries).getElement().insertFirst(widget); But the insertFirst takes a node instead of a HTML widget. Any suggestions? I haven't tried this yet, but from the API perhaps you could do: Rootpanel.get(entries).insert(mylabel, i); where i is an (int) index. -- 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.