views:

97

answers:

1

how can i implement jquery expression if($("[name='abc']:checked").length > 1) in GWT??

A: 

Well, one way to do this would be by using JSNI (http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html). In other words you could write pure javascript functions, include jquery lib (one way would be to include jquery in your html page), and you would be able to use jquery expressions in those native functions.

The other alternative is GWT query which is basically a wrapper around jquery so that jquery functions can be called from GWT java code.

One other think I would like to mention is that, if I were you, I would go with only things that GWT provides. GWT compiler produces small, obfuscated and optimized js and I don't believe that introducing one more library would give you an output better then that.

markovuksanovic