Re: UiHandler and how to do it right?

2011-09-08 Thread Ben Munge
Do you have a corresponding field in your UIBinder ui.xml with the same ui:field property? For example, in your ui.xml you should have: g:Button ui:field=buttonClick Me/g:Button In the corresponding Java class you should have: @UiField Button button; @UiHandler(button) void

Re: is there a Naming conventions of gwt?

2011-09-08 Thread Ben Munge
Could you be more specific? GWT does utilize convention over configuration in several aspects. This is especially apparent in the UIBinder model where naming conventions allow you to easily associate Java elements and methods with the defined elements in your ui.xml. On Sep 8, 5:26 am, wahaha

Re: Is there a GWT book covering version = 2.1.1?

2011-09-08 Thread Ben Munge
There does seem to be a lack of valuable GWT books covering some of the newer aspects of the language. Have you gone through all the tutorials on the main site? I found the large scale application development and MVP pattern w/ UIBinder tutorial extremely valuable when learning the framework:

Re: Conditional CSS Updates

2011-09-08 Thread Ben Munge
I don't think you can do this with conditional styles. I think you'd be better off firing an event on the event bus when they orientation changes and just change class/style through an event handler. On Aug 29, 12:39 am, rth rthol...@gmail.com wrote: Hi, I have a Conditional CSS block that

Re: Is there a GWT book covering version = 2.1.1?

2011-09-08 Thread Ben Munge
Thanks for the tip BM! On Sep 8, 9:57 am, BM bhushan.ma...@gmail.com wrote: Have you checked the Manning's GWT in Action Second Edition book? They have it on MEAP program. This book is awesome. They cover the latest 2.3 version with extensive coverage on UIBinder, RPC, MVP, Activities and

Re: RequestFactory Best Practices: How to share object between client and server

2011-08-04 Thread Ben Munge
You create a Proxy object on the client for your corresponding server object. http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html On Aug 4, 5:46 am, br22 g22...@gmail.com wrote: Sometimes you want the same Java code to run on the client and server. With RPC it is easy to

Re: RequestFactory Best Practices: How to share object between client and server

2011-08-04 Thread Ben Munge
assistance. On Aug 4, 11:24 am, br22 g22...@gmail.com wrote: Great, but how you make the SAME Java code (that runs both on the client and the server) share the SAME object (not 2 objects like Obj1 and Obj1Proxy)? On Aug 4, 11:34 am, Ben Munge ben.mu...@gmail.com wrote: You create a Proxy

Re: Does GWT has any framework or class or something for accessibility (especially for client side )

2011-08-02 Thread Ben Munge
I'm not sure what you mean exactly. Accessibility is driven much more by the content and construction of your pages. A framework cannot make assumptions about accessibility because it doesn't know what your site is trying to express. If you follow the UI Binder approach, just construct your

Dynamically convert between TextBox and PasswordTextBox

2011-07-29 Thread Ben Munge
I have a requirement to turn some financial fields into masked fields and I wanted to use the password input type to simplify the logic. I need to be able to change a TextBox to a PasswordTextBox and have it change the value in the box to circles without affecting the value or style of the

Re: Dynamically convert between TextBox and PasswordTextBox

2011-07-29 Thread Ben Munge
: From a code and css points of view they are exactly the same. You should be able to change from TextBox to PasswordTextBox without changing anything. On Fri, Jul 29, 2011 at 5:05 PM, Ben Munge ben.mu...@gmail.com wrote: I have a requirement to turn some financial fields into masked

Re: HTML ids for widgets generated in a celltable

2011-06-22 Thread Ben Munge
Just curious, but why do you need ID's? Xelibrety's solution should work but you should be able to add any behavior you want to the objects through GWT without the need for an ID. If you have JavaScript that needs IDs to access them, you might as well just port Xelibrety's code over the JavaScript

Re: Unable to load module entry point class

2011-06-21 Thread Ben Munge
Can you post your code for WelcomePage? On Jun 20, 11:42 am, SCK guyedj...@gmail.com wrote: Hi, I'm new developer in GWT. I try somthing and when I want to Run the application, I get error Failed to load Module. See error in below: [ERROR] Unable to load module entry point class

Re: No source code is available for type java.lang.NoSuchFieldError

2011-06-21 Thread Ben Munge
In your GWT console double click the individual errors and you should get a more detailed stack trace. It likely is something wrong with your code rather then a missing import/resource. I've gotten a similar error in the past and it's not overly intuitive. On Jun 20, 1:59 pm, Nathan Klatt

Re: GMail like selection combobox

2011-06-21 Thread Ben Munge
It's a pretty simple Widget. The checkbox itself is simply a standard check box. The event would check all if clicked and unchecked all if unchecked. The box around it is simply a div styled as a button with a click event. The click event shows the dropdown which is simply another collection of