Re: Driver Best Practices with CheckBox and RadioButtons

2010-11-14 Thread Craigo
I'm also confused as to why ListBox wasn't updated to work with the Editor. I can't see how ValueListBox would ever be able to take g:item, or anything else, as it doesn't have a zero arg constructor, so it needs @UiField(provided=true). The only way I've managed to give it values is in code, by

Re: Driver Best Practices with CheckBox and RadioButtons

2010-11-14 Thread Craigo
FYI: I'm using Geraldo solution above (minus the @Override statements), as it is much easier to integrate it with the UIBinder then the ValueListBox. Thanks Geraldo! On Nov 15, 10:51 am, Craigo craig...@gmail.com wrote: I'm also confused as to why ListBox wasn't updated to work

Re: Help: Development of large App with GWT

2010-10-04 Thread Craigo
AJAX! Make a whole bunch of client / server calls, and tell people you didn't write a single line of JavaScript. It was all generated! On Oct 3, 11:37 pm, Noor baken...@gmail.com wrote: Thanks Craigo, what u said is true. However, I need some features which I can place in my applications

Re: Help: Development of large App with GWT

2010-10-03 Thread Craigo
This sums it up nicely: http://code.google.com/webtoolkit/overview.html ...with an emphasis on not needing to know JavaScript (in particular AJAX). GWT = Awesome! On Oct 3, 11:10 am, Noor baken...@gmail.com wrote: Hi to all, I want some help from u. Many times, I have posted this topic on

Re: GWT Rocks!

2010-07-29 Thread Craigo
With 6 developers, we used GWT to develop on online lending application. GWT was used as the front end, and it seamlessly plugged into the back end software via Spring. The developers were already skilled in Java, so the uptake of GWT was painless. Development was completed within a few weeks,

Re: Mouse Over Image

2010-07-22 Thread Craigo
The PopupPanel.showRelativeTo(UIObject) method is handy for this. On Jul 22, 3:10 pm, abhiram wuntakal abhir...@gmail.com wrote: Hi,   I had implemented a very similar functionality, where I had to display a label as soon as there is a mouse-over on the image and where there a mouse-out, the

Re: How to vertically center content inside an HTMLPanel

2010-07-22 Thread Craigo
http://lmgtfy.com/?q=vertical+align+page :-) On Jul 22, 2:01 pm, David Vree david.h.v...@gmail.com wrote: Newbie here -- struggling to get my HTML text and button to be vertically centered within my HTMLPanel.  I am using UI binder and tried applying a style: vertical-align: middle; But

How to adding a MenuItemSeparator in the UiBinder

2010-07-20 Thread Craigo
Hi all, Want to add a Menu Item Separator to a Menu Bar using the UiBinder? Here is a workaround. It is not possible to do this: g:MenuBar vertical=true g:MenuItemFirst Menu Bar Item/g:MenuItem g:MenuItemSeparator/g:MenuItemSeparator g:MenuItemLast Menu Bar Item/g:MenuItem /g:MenuBar As

How to add a MenuItemSeparator using the UiBinder

2010-07-20 Thread Craigo
Hi all, Only MenuItems are allowed in the MenuBar, so it is not possible to do this: g:MenuBar vertical=true g:MenuItemFirst Menu Bar Item/g:MenuItem g:MenuItemSeparator/g:MenuItemSeparator g:MenuItemLast Menu Bar Item/g:MenuItem /g:MenuBar However, a cheeky workaround is to make a

Re: How to add a MenuItemSeparator using the UiBinder

2010-07-20 Thread Craigo
FYI: The GWT menus don't seem to work on Android phones (and possibly others). Probably better to go with standard CSS menus like these ones: http://www.lwis.net/free-css-drop-down-menu/ On Jul 21, 10:14 am, Craigo craig...@gmail.com wrote: Hi all, Only MenuItems are allowed in the MenuBar

Re: Synchronous Calls with RPC??

2010-06-09 Thread Craigo
+1. When the user presses load / submit / ... on my app, I enable the glass pane, and they have to wait until the submit has completed successfully. I see nothing wrong with this approach: PopupPanel loadingDialog = new PopupPanel(); loadingDialog.setWidget(loadingImageAnimation);

Re: Table Row Gaps

2010-05-23 Thread Craigo
/Images,_Tables,_and_Mysterious_Gaps is what you're experience, On May 20, 11:14 pm, Craigo craig...@gmail.com wrote: When creating a Grid, FlexTable, VerticalPanel, or any other type of table, I couldn't get rid of the gaps in the rows.  The gaps would only appear in Chrome and FF

Table Row Gaps

2010-05-20 Thread Craigo
When creating a Grid, FlexTable, VerticalPanel, or any other type of table, I couldn't get rid of the gaps in the rows. The gaps would only appear in Chrome and FF, but not in IE6. They were very small gaps (about 3 pixels high). Nothing seemed to work, setCellPadding, setCellSpacing, css with

Re: Hide/Show Table Row with UIBinder

2010-05-11 Thread Craigo
Thanks Bufferings. UIObject.setVisible works a treat! Cheers. On May 9, 1:33 am, bufferings bufferi...@gmail.com wrote: hi Craigo I think the following is better. // show UIObject.setVisible(myTableRow, true); // hide UIObject.setVisible(myTableRow, false); This is what UIObjects

Re: Hide/Show Table Row with UIBinder

2010-05-07 Thread Craigo
Some browsers don't like: myTableRow.getStyle().setDisplay(Style.Display.BLOCK); This seems to work much better: myTableRow.getStyle().setProperty(display, ); Strange there isn't a constant value in Style.Display for blank. O'well. On May 7, 12:23 pm, Craigo craig...@gmail.com wrote: Couldn't

Re: Mixing Projects

2010-04-10 Thread Craigo
Not sure if this is helpful, but if you don't want to put your testharness in with your main project (for build reasons or whatever), you will need to run multiple instances of GWT. When you do this, you need to give them different ports. Eg: In the program arguments add: -codeServerPort 9998

Re: UiBinder with background-image and ImageResource

2010-03-16 Thread Craigo
wrote: Hi Craigo - does the @url work within a ui:style section? As I said: I know it works if your DataResoruce is created with a ui:data, I don't know when it comes from a separate ClientBundle imported with ui:with... -- You received this message because you are subscribed to the Google

Re: UiBinder with background-image and ImageResource

2010-03-15 Thread Craigo
Just like to reiterate what Thomas Broyer said: Use DataResource with @url. It works a treat and, IMO, is a much easier solution. http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#References_to_Data_Resources On Mar 15, 3:33 pm, davidroe roe.da...@gmail.com wrote: yes,

Re: UiBinder with background-image and ImageResource

2010-03-15 Thread Craigo
; width: 149px; height: 39px; background: menuButtonUrl 0 0 no-repeat; text-align: left; cursor: pointer; border: none; } On Mar 16, 10:27 am, Michael Guyver michael.guy...@gmail.com wrote: Hi Craigo - does the @url work within a ui:style section? On 15

Re: How to cache DTD in Eclipse for GWT 2.0

2010-01-10 Thread Craigo
Thanks Olivier. I downloaded the xsd files and added them into Preferences XML XML Catalog. Eclipse no longer hangs when trying to d/l the xsd files, and editing the ui.xml files is now super fast. On Jan 9, 2:46 am, olivier nouguier olivier.nougu...@gmail.com wrote: In eclipses:

Re: GWT 2.0 Eclipse Breakpoint Not Working

2009-12-09 Thread Craigo
I had this problem too. It only asked for the Firefox plugin after I deleted my projects compiled javascript under the war directory. Also, after the FireFox plugin did get installed, I then restarted everything, and Firefox froze and asked me if I wanted to terminate the current script. I said

Window.open to include gwt.codesvr parameter

2009-12-09 Thread Craigo
When Window.open(url, _blank, ); is called, it opens a new window without the gwt.codesvr parameter. Is there an option to tell it to include the gwt.codesvr parameter if running in debug mode? It is possible to code around it with something like this: String devMode =

Re: GWT 2.0.0 RC2 sample errors

2009-12-09 Thread Craigo
I got this error as soon as I tried to use the UiBinder on Java 5, WinXP. When I switched to Java 6, it all worked (or if I removed the UiBinder). On Dec 10, 6:40 am, Chris Ramsdale cramsd...@google.com wrote: While we are in the process of determining what exactly within the Mail sample

Re: GWT 2.0.0 RC2 sample errors

2009-12-09 Thread Craigo
A little more information: I am able to compile using Java 5 (with the UiBinder code) and run it on Tomcat running on Java 6 (Tomcat running on Java 5 throws the error). On Dec 10, 4:01 pm, Craigo craig...@gmail.com wrote: I got this error as soon as I tried to use the UiBinder on Java 5

Re: UiBinder and FlexTable or Grid

2009-12-09 Thread Craigo
I was trying to do this also. Then I slapped myself in the head and realised, with the UiBinder, we can now just use plain html. So we can do stuff like this: g:HTMLPanel table trtdInfo:/tdtdg:TextBox ui:field=infoTextBox// td/tr /table /g:HTMLPanel ...there maybe a good reason

DatePicker Custom MonthSelector CSS

2009-11-11 Thread Craigo
Hello, I wanted to add year selection to my date picker, so I extended MonthSelector and added the extra buttons. Everything worked great. ...except the setStyleName. I wanted to do this: yearBack.setStyleName(css().previousButton()); However, the method css() returns a class

Code to change the DateBox to be day / month / year

2009-10-29 Thread Craigo
Just some code to switch the DateBox from a U.S. date into a dd/mm/ format (for countries like Australia). Set the format in the date box: myDateBox.setFormat(new AustralianDateFormat()); --- And here is the formatter --- import java.util.Date; import