cast JavaScriptObject to gwt widget

2011-01-16 Thread asianCoolz
may i know how to cast JavascriptObject get from JSNI into gwt as gwt CUstomWidget CustomWiget widget = (CustomWidget) javascriptObjectFromJSNI; //doesnt work -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send

Re: how to wrap an image inside a Hyperlink ?

2011-01-16 Thread ailinykh
This is what I do @UiField Hyperlink imageLink; ... String imgStr=img src='+url+'/; imageLink.setHTML(imgStr); Andrey On Jan 15, 4:25 pm, zixzigma zixzi...@gmail.com wrote: g:InlineHyperLink, g:HyperLink and g:Anchor cannot contain an element if I'm correct. do you know how we can then

Exception falling through catch() in JSNI

2011-01-16 Thread George Georgovassilis
I've been toying with Maps Api v3 and markerclusterer and run into a strange constellation with the following setup: IE 8 (64 bit) both hosted and production mode, GWT 2.1.1 Markercluster apparently does something to the Map, so that the map cannot be operated upon immediately when running IE8,

Re: Exception falling through catch() in JSNI

2011-01-16 Thread Sanjiv Jivan
It is probably triggering window.onerror in IE. See gwt-log's setErrorHandler method in the class below if you'd like to register a handler for it in GWT. http://code.google.com/p/gwt-log/source/browse/trunk/Log/src/com/allen_sauer/gwt/log/client/impl/LogImplBase.java On Sun, Jan 16, 2011 at

Re: Celltree Refresh question

2011-01-16 Thread Saket
did you find any solution to this problem? On Dec 7 2010, 12:50 pm, metalhammer29a metalhammer...@gmail.com wrote: I have the same problem : ( -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

GWT Session Handling - user HTTP Session or own solution?

2011-01-16 Thread Johannes Stein
Hello, im thinking about how to handle user-sessions. As i can remember there is the possibility to use HTTPSession (Servlet). Is this recommendable? Or is it a better idea to use an own solution? Im thinking about storing the session-id in a NoSQL database named redis. The session id will be

Re: Problem trying to use JSNI to eval() a JSON string

2011-01-16 Thread Y2i
Not sure if Message can be an abstract class and can implement Serializable. -- 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-toolkit@googlegroups.com. To unsubscribe from this group, send

Re: Celltree Refresh question

2011-01-16 Thread Y2i
How do you add nodes in the first place? If you use TreeModel's AbstractNodeInfo, then you pass AbstractDataProvider to the AbstractNodeInfo's constructor. You can call updateRowCount() and updateRowData() on the data provider to add more nodes. -- You received this message because you are

Re: Problem trying to use JSNI to eval() a JSON string

2011-01-16 Thread Glenn Simon
Yeah, that makes sense. And this is only client side anyway. But I have tried with and without the Serializable implementation and get the same result. Do I somehow need to convert the string to a JSON object before passing it to eval()? -- You received this message because you are subscribed

Re: GWT documentation for UiBinder typo ? Spriter or Sprite ?

2011-01-16 Thread Thomas Broyer
See http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#What_options_can_be_passed_to_development_mode (hint: -gen), and same for the compiler. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this

Re: Security in GWT 2.1

2011-01-16 Thread Thomas Broyer
On Sunday, January 16, 2011 8:47:12 AM UTC+1, agi wrote: @Thomas I was thinking about using all those new 2.1 classes like UserInformation etc... but I have read that in gwt 2.1.1 some classes used to support some simple authentication will be deleted ( or already are), as mentioned

Re: GWT + DB Connection -- Failure when deployed!

2011-01-16 Thread Ashar Lohmar
as far as I know jdbc connection is not allowed when deployed to the cloud/appengine.google.com. all you could do if you want to use your own database server would be to implement a service on your DB Server to provide the data in json or XML. and in your application to parse that data. i hope my

Re: Problem trying to use JSNI to eval() a JSON string

2011-01-16 Thread Thomas Broyer
IIRC, eval()-ing a literal object will throw because the braces are seen as opening a block of code, and not an object literal; that's why most uses of eval() for JSON parsing enclose the string within parens. But really, you should use com.google.gwt.core.client.JsonUtils instead, which takes

Re: what cleanup is necessary if a widget creates multiple child elements

2011-01-16 Thread Joe Hudson
Thank you Thomas. You are, as always, extremely helpful! Regards, Joe -- 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to

Re: how to wrap an image inside a Hyperlink ?

2011-01-16 Thread zixzigma
Thank You, do you know if its possible to use GWT Image type with your approach ? in other words, the image itself is not coming from a URL, it is a GWT Image object. http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/Image.html On Jan 16, 6:03 am, ailinykh

Re: how to wrap an image inside a Hyperlink ?

2011-01-16 Thread zixzigma
to clarify, the Image is coming from ImageSource in ClientBundle. public interface Resources extends ClientBundle { @Source(icon.png) ImageResource icon(); } then in Java code backing UiBinder Resources res; Image image = new Image(res.icon()); On Jan 16, 11:30 am, zixzigma

Re: how to wrap an image inside a Hyperlink ?

2011-01-16 Thread Thomas Broyer
Use AbstractImagePrototype.create(res.icon()).getHTML() instead of an Image widget. -- 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-toolkit@googlegroups.com. To unsubscribe from this group,

Re: Security in GWT 2.1

2011-01-16 Thread Thomas Lefort
wow this is good, thanks for the link, I should check teh repository more often On Jan 15, 12:27 am, Thomas Broyer t.bro...@gmail.com wrote: Have a look at how the Expenses sample uses Google AppEngine's UserService to authenticate users with

Re: how to wrap an image inside a Hyperlink ?

2011-01-16 Thread zixzigma
I used Image#getUrl() and it just worked !!! Thank You very much, I had seen many solutions, and yours by far was the cleanest, simplest decent one. Thank You ! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send

Re: how to wrap an image inside a Hyperlink ?

2011-01-16 Thread Thomas Broyer
On Sunday, January 16, 2011 8:59:28 PM UTC+1, zixzigma wrote: I used Image#getUrl() and it just worked !!! Make sure to test in IE6/7 ! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: Problem trying to use JSNI to eval() a JSON string

2011-01-16 Thread Y2i
Thomas is absolutely right about JsonUtils. In addition you may consider JsonpRequestBuilder if you are planing to use JSON services Regarding this particular example, I have some old code that uses plain eval(): it works, but I don't use quotes around field names (*type* and * timeleft*). --

Re: how to wrap an image inside a Hyperlink ?

2011-01-16 Thread zixzigma
Thank You Thomas : ) I was so excited I forgot. -- 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to

How can I move position of tab headers ?

2011-01-16 Thread Boris Lenzinger
Hello, I would like to display the tab header more on the right. Currently they are fixed on the left side with a css attribute left that is set to 0. The code that is generated by GWT is the following : div class=gwt-TabLayoutPanelTabs style=left: 0px; right: 0px; bottom: 0px; inside this,

Re: How can I move position of tab headers ?

2011-01-16 Thread Y2i
This recent discussion may help https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/c1zlxMRD4gM -- 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-toolkit@googlegroups.com. To

Re: What does this message means - Error in Generated.....FieldSerializer.java

2011-01-16 Thread Alex Nederlof
I had that error once after renaming one of my modules. I found out both the old and new module where still in my war directory. Try deleting the modules (and other compiled files) and re-compiling GWT. You'll then see which modules are generated and thus which modules are configured correctly.

Re: 2.1.1 Documentation Please

2011-01-16 Thread Lisa D
Hi David, Any update on the documentation? ServiceLayerDecorators are a hook to support advanced customization of RequestFactory like hooking in Spring as a Locator locator, but are not required to use RequestFactory. Thanks for your questions--I'll make sure they're answered in the forthcoming

Re: Styling rows in CellTable

2011-01-16 Thread frank
Thanks, I´ll try both methods Frank -- 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to

is there a UiBinder equivalent for ImageResource ?

2011-01-16 Thread zixzigma
is there a UiBinder equivalent for ImageResource ? we have this g:Image resource= / but this is of type Image, not ImageResource. is it possible to get use ImageResource in UiBinder ? for example use a variablel in place of resource attribute ? in ui.xml g:Image resource=varX/ in .java

Re: what cleanup is necessary if a widget creates multiple child elements

2011-01-16 Thread Jeff Schwartz
If your widgets are adding event handlers to the event bus (SimpleEventBus, for example) then they would 'probably' need to clean themselves up at some point by removing the handlers. When they should do this is really specific to the life-cycle of your widgets. If they are singletons with an

Re: is there a UiBinder equivalent for ImageResource ?

2011-01-16 Thread Thomas Broyer
ui:image ? (and there's ui:data for DataResource-s) http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Hello_Stylish_World -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: is there a UiBinder equivalent for ImageResource ?

2011-01-16 Thread Jeff Schwartz
Yes, there is: ui:with field='res' type='com.me.client.MyResources' / The above's type points to your resource budle. Then: g:Image resource={res.myimage} / The above, res is the field name defined in with. myimage is some image resource defined in you resource bundle. It is now typesafe and

Re: is there a UiBinder equivalent for ImageResource ?

2011-01-16 Thread Jeff Schwartz
I meant to say ClientBundle, not ResourceBundle. On Sun, Jan 16, 2011 at 7:27 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Yes, there is: ui:with field='res' type='com.me.client.MyResources' / The above's type points to your resource budle. Then: g:Image resource={res.myimage} /

Re: what cleanup is necessary if a widget creates multiple child elements

2011-01-16 Thread Jeff Schwartz
BTW handlers can also ignore events while unattached. Lot of choices here. On Sun, Jan 16, 2011 at 7:18 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: If your widgets are adding event handlers to the event bus (SimpleEventBus, for example) then they would 'probably' need to clean themselves

is it possible to create a custom widget in UiBinder that can contain unknown number of child elements

2011-01-16 Thread zixzigma
is it possible to create a custom widget in UiBinder that can contain unknown number of child elements ? similar to FlowPanel and HTMLPanel. for example, how to create a MyContainer, that can contain One or More Hyperlinks ? my:MyContainer g;HyperLink ui:field=a / g;HyperLink ui:field=b /

Re: is it possible to create a custom widget in UiBinder that can contain unknown number of child elements

2011-01-16 Thread zixzigma
public class MyContainer extends Composite { } MyContainer.ui.xml g:FlowPanel /g:FlowPanel -- 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-toolkit@googlegroups.com. To unsubscribe from

Re: is it possible to create a custom widget in UiBinder that can contain unknown number of child elements

2011-01-16 Thread zixzigma
public class MyContainer extends Composite { } MyContainer.ui.xml g:FlowPanel g:FlowPanel ui:field=list/ /g:FlowPanel I want to use this MyContainer as I described in previous post. I want to get hold of all those child links, and add them to the inner FlowPanel (ui:fiel=list) is it

Code Splitting Code Bloat

2011-01-16 Thread Casey
Has anyone experienced an issue where code splitting has actually increased the size of their application by a significant amount? Before I introduced code splitting my application weighed in at around 109KB. While that' not gigantic considering there is logic for over 10 screens I thought that

Re: Is GWT2.1 + Roo 1.1.1 production ready?

2011-01-16 Thread JosephLi
hi Joao, You might want to take a look at the questions posts in the Roo forum (http://forum.springsource.org/forumdisplay.php?f=67) to decide for yourself. But form my limited experience with it so far on my testing project, I would not want to plan on using Roo+GWT on real projects yet.

Re: locale translation

2011-01-16 Thread Tej Sarup
I spent some time on the locale translations.. there are 2 ways which I have seen being adopted. 1. Create a constants class which has its associated property files. The property files can be for each locale 2. If you are using UIBinder you can read up on the Internationalization for UIBinder

Re: Google's CellTree documentation - CellTreeExample2.java won't compile !

2011-01-16 Thread Tej Sarup
thanks -- 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more

[gwt-contrib] Re: Optimizations for server-side invocations of CustomFieldSerializers. (issue1273801)

2011-01-16 Thread mchaston
http://gwt-code-reviews.appspot.com/1273801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Optimizations for server-side invocations of CustomFieldSerializers. (issue1273801)

2011-01-16 Thread mchaston
http://gwt-code-reviews.appspot.com/1273801/diff/1/2 File user/src/com/google/gwt/user/client/rpc/CustomFieldSerializer.java (right): http://gwt-code-reviews.appspot.com/1273801/diff/1/2#newcode19 user/src/com/google/gwt/user/client/rpc/CustomFieldSerializer.java:19: * An interface that may be

[gwt-contrib] Re: Move the TCK report task to user/build.xml and (issue1288801)

2011-01-16 Thread nchalko
http://gwt-code-reviews.appspot.com/1288801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors