Re: com.google.gwt.i18n.client.DateTimeFormat parseStrict problem

2012-02-03 Thread Tong123123
So is this a bug? Sent from my iPhone On 2012/2/4, at 上午7:41, Patrick Tucker wrote: > Interesting, "MM" should also not be happy about "Jan"... > > On Feb 3, 4:12 am, tong123123 wrote: >> the code is as follow: >> >> DateTimeFormat df = DateTimeFormat.getFormat("/MM/dd hh:mm:ss >> a"

Re: To any Editors Gurus: I could use some ListEditor use help for the GWT demo I've made...

2012-02-03 Thread Brandon Donnelson
I sent the context into the list editor. AddItem or adding an item (element) works good now. Would be nice if it took care of adding an element on its own. Seems it carries request factory context in the editors chain. http://code.google.com/p/gwt-examples/source/browse/trunk_2012/DemoGwtEdito

Re: To any Editors Gurus: I could use some ListEditor use help for the GWT demo I've made...

2012-02-03 Thread Brandon Donnelson
I committed the working code that will load the ListEditor items and flush list will not fail. Works quite nice. I added some data on the server side to figure that out. I'm wondering what the best method to* add an item* to the list is. Typically I would need a reference to the context, but i

Re: com.google.gwt.i18n.client.DateTimeFormat parseStrict problem

2012-02-03 Thread Patrick Tucker
Interesting, "MM" should also not be happy about "Jan"... On Feb 3, 4:12 am, tong123123 wrote: > the code is as follow: > >     DateTimeFormat df = DateTimeFormat.getFormat("/MM/dd hh:mm:ss > a"); >     try{ >       df.parseStrict("2010/Jan/20 13:10:59 AM"); >     }catch{IllegalArgumentExcept

Can't add css class to CellTable Header

2012-02-03 Thread Vova
Hello, I have an issue setting css class to the CellTable header. After initiating all columns and their headers I'am trying to mannually add css class. I'am doing this in scheduler in order to have all elements attached into DOM. This code works perfectly in Google Chrome, but fails in Mozilla, h

Re: To any Editors Gurus: I could use some ListEditor use help for the GWT demo I've made...

2012-02-03 Thread Brandon Donnelson
Wahoo!! I just solved the issue. This got the ListEditor.setValue(T value) to work correctly and then rendered the items. Awesome! I'll disclose the results later. I had forgotten to annote the owned collection in PeopleData: @Persistent(defaultFetchGroup = "true", dependentElement = "true") h

Re: To any Editors Gurus: I could use some ListEditor use help for the GWT demo I've made...

2012-02-03 Thread Brandon Donnelson
Thanks Patrick for checking into this. I really appreciate the help. :) I added getPaths to the context. Although I'm still puzzled by why the ListEditor list is null on flush. http://code.google.com/p/gwt-examples/source/browse/trunk_2012/DemoGwtEditor/src/com/gonevertical/client/views/peoplee

Re: How do i add an image link with uibinder?

2012-02-03 Thread Philippe Lhoste
On 03/02/2012 00:19, chstrong wrote: How can I add an image with a surrounding link within uibinder? I have an image resource and around that I need a link.

Re: RequestFactory with Use of Locator

2012-02-03 Thread MagusDrk
Hi hkopp Right now I'm facing the argument type mismatch error, but i'm unable to find the cause. I guess you were able to do it since there were no more comments. How did you found the cause? how did you solved? thanks a lot. -- You received this message because you are subscribed to the Goog

Sharing @eval between CSS resources

2012-02-03 Thread KevMo
I was hoping to implement some simple customizable themes for my project. Nothing fancy, just pretty much changing color schemes. Based on the wiki for CssResource I was planning on using @eval to determine colors and things at runtime like so: @eval userBackground com.module.UserPreferences.getU

Re: To any Editors Gurus: I could use some ListEditor use help for the GWT demo I've made...

2012-02-03 Thread Patrick Julien
On Friday, February 3, 2012 11:58:16 AM UTC-5, Brandon Donnelson wrote: > > Thanks for the comments and looking at my code! :) > > I may be getting close to the solution. I have forgotten .with("todos") in > the request factory request so they aren't being loaded in the initial > request. Not s

Re: To any Editors Gurus: I could use some ListEditor use help for the GWT demo I've made...

2012-02-03 Thread Brandon Donnelson
Thomas thanks for putting so much work into the GWT codebase! :) Amazing! Can I ask if the having the ListEditor as a sub editor if driver should call the context.edit or context.create (for TodoDataProxy in list) for list creation or editing? I'm puzzled that on save the flush, the ListEditor

Re: Custom widget with custom UiBinder markup

2012-02-03 Thread Paul Stockley
Add two methods @UiChild public void addLeft(Widget w) {...} @UiChild public void addRight(Widget w) {..} Then make sure you widget implements HasWidgets or similar. In your uibinder you can now use -- You received this message because you are subscribed to the Google Group

Re: Custom widget with custom UiBinder markup

2012-02-03 Thread dparish
I take that back. UiChild should do it perfect. Good example here: http://stackoverflow.com/questions/8375480/gwt-custom-widget-with-child-elements-configuration-in-uibinder-like-custombutt On Feb 3, 8:09 am, Jens wrote: > You can use @UiChild, see: > > http://google-web-toolkit.googlecode.com/

Re: Custom widget with custom UiBinder markup

2012-02-03 Thread dparish
That will work. I'd still prefer to use descriptive xml like DocLayoutPanel. From what I see of @UiChild it just enforces the types of children it does not allow for quite what I was looking for. (but probably good enough) -Dave On Feb 3, 8:09 am, Jens wrote: > You can use @UiChild, see: > > ht

Re: To any Editors Gurus: I could use some ListEditor use help for the GWT demo I've made...

2012-02-03 Thread Brandon Donnelson
Thanks for the comments and looking at my code! :) I may be getting close to the solution. I have forgotten .with("todos") in the request factory request so they aren't being loaded in the initial request. Not sure if this triggers the correct backing. But all the chaining and list editor stuff

CSSResource Classname Obfuscation

2012-02-03 Thread Clint Checketts
Last night I was tying to turn off CSSResource class obfuscation by reading the docs: http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#Selector_obfuscation It talks about using * *that still changed the class names (adding prefixes) and I eventually had to dig into the code t

Node.isSameNode removed in Firefox 10 (GWT 1.4)

2012-02-03 Thread Nathan Williams
For anyone still (*sigh*) dependent on GWT 1.4, the removal of the isSameNode function in Firefox 10 will likely result in JavaScript errors in your compiled modules. https://bugzilla.mozilla.org/show_bug.cgi?id=687400 https://developer.mozilla.org/en/Firefox_10_for_developers https://developer.mo

Re: To any Editors Gurus: I could use some ListEditor use help for the GWT demo I've made...

2012-02-03 Thread Thomas Broyer
On Friday, February 3, 2012 3:06:29 PM UTC+1, Patrick Julien wrote: > > Start by checking your paths. > > > PeopleDataProxy has a field called "todos" but PersonEditor has @UiField > called todosEditor with no custom path > Yes, but that's how it's supposed to be: in the absence of @Path annot

Re: use i18n

2012-02-03 Thread Luke
Illegal child in a text-only context. Perhaps you are trying to use unescaped HTML where text is required, as in a HasText widget? Element (:83) -- 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

Re: use i18n

2012-02-03 Thread Luke
somevalue i tried above, and not working -- 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, se

Re: Custom widget with custom UiBinder markup

2012-02-03 Thread Jens
You can use @UiChild, see: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/uibinder/client/UiChild.html -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://gr

Re: use i18n

2012-02-03 Thread Patrick Julien
http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinderI18n.html -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aWLqgmI4oKsJ. To post to

use i18n

2012-02-03 Thread Luke
how to use i18n for list box's item ? -- 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-tool

Re: To any Editors Gurus: I could use some ListEditor use help for the GWT demo I've made...

2012-02-03 Thread Patrick Julien
Start by checking your paths. PeopleDataProxy has a field called "todos" but PersonEditor has @UiField called todosEditor with no custom path -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit ht

how should i read my styles applied

2012-02-03 Thread karthik
i have a css where i placed my styles,and i wanted to read the styles from my program,is there any way to read them. thanks in advance -- 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@

Spring Security Integration with 2.4

2012-02-03 Thread bendg25
Hi Is there an officially documented way on integrating GWT with Spring Security. There are numerous blog entries around, all specifying different methods. 'Surely', there must be an official line on how to secure your app ? I don't think this is good enough: http://code.google.com/webtoolkit/

Custom widget with custom UiBinder markup

2012-02-03 Thread dparish
I have a widget that would benefit from custom UiBinder markup (like DockLayoutPanel) I've looked through the docs, the source and the web and not found an example of how this is implemented. Has anyone done this? I'm looking to do something like this -- You received this message beca

JSNI error when using GWT canvas

2012-02-03 Thread Karel
Hey guys, I am getting quite random internal GWT errors when I am using the GWT canvas widget in complex cases. Sometimes, seemingly random, JSNI errors are fired such as: com.google.gwt.dev.shell.HostedModeException: Something other than an int was returned from JSNI method '@com.google.gwt.dom.

raphael4gwt - a new porting to raphaeljs vector graphics library to GWT

2012-02-03 Thread Sebastian Gurin
Hi all I would like to present you my new GWT library, raphael4gwt : http://code.google.com/p/raphael4gwt/. Raphaeljs is an easy to use api for vector drawing that support all browsers, inclusive old versions of internet explorer Unlike the project raphaelgwt, raphael4gwt implements 100% of

Re: MVP framework

2012-02-03 Thread Drew Spencer
I had this problem for ages. I think for a beginner you are best learning to do it from scratch as described here: http://code.google.com/webtoolkit/articles/mvp-architecture.html It's a lot to get your head around, it took me weeks and weeks to really get what was going on. Everyone has thei

Re: Using the Force.com App Engine connector to pass data to the client side

2012-02-03 Thread Drew Spencer
Just thought I'd post an update here as I solved this problem The problem was not at all that I couldn't pass data to the client side. You can indeed create a regular RPC Service which makes calls to the Force.com api instead of the datastore, then pass this data to the client as a list or whate

Re: Synchronise view "loading" and activity start in MVP

2012-02-03 Thread Thomas Broyer
Simply wait for all your code to be "loaded" (could be required scripts, or RPC/RequestFactory calls to the server) before "pushing" your view into the AcceptsOneWidget passed to the Activity#start() method. -- You received this message because you are subscribed to the Google Groups "Google W

Re: in Firefox9, when i press enter key, enent.getCharCode() is 0.

2012-02-03 Thread Thomas Broyer
See http://code.google.com/p/google-web-toolkit/issues/detail?id=5003 -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/NYr_Z190Tl8J. To post to t

Re: in Firefox9, when i press enter key, enent.getCharCode() is 0.

2012-02-03 Thread Juan Pablo Gardella
Use event.getNativeCode (or simillar) El 3 de febrero de 2012 00:14, yl chen escribió: > newSymbolTextBox = new TextBox(); >newSymbolTextBox.addKeyPressHandler(new KeyPressHandler() { >public void onKeyPress(KeyPressEvent even

MVP framework

2012-02-03 Thread saurabh saurabh
Hi everyone, there are lots of MVP frameworks out there like MVP4G, Guit etc and also google's official 'Places and Activities'. I wanted to know which is most popular framework or way of MVP implementation in industry working with GWT. Thanks in advance -- You received this me

Synchronise view "loading" and activity start in MVP

2012-02-03 Thread Thomas Lefort
Hi, Let's say you have a view that needs to load a library, eg the google maps library. Some of the method offered by the view should only be called by the activity when the map is fully loaded otherwise resulting in errors. I need a way to hold off any UI call from the activity until the view is

com.google.gwt.i18n.client.DateTimeFormat parseStrict problem

2012-02-03 Thread tong123123
the code is as follow: DateTimeFormat df = DateTimeFormat.getFormat("/MM/dd hh:mm:ss a"); try{ df.parseStrict("2010/Jan/20 13:10:59 AM"); }catch{IllegalArgumentException iae){ System.out.println("error"); } As the datetimeformat is using hh, so according to a