Sorting with AsyncDataProvider - how to lshow several columns with sorticon

2013-10-03 Thread Manuel
Hi everyone, does anyone know, how to set the sorticon on several column? Actually only 1 column shows his (asc/desc) sorting Icon (a arrow) at a time. But I want to show the icon on all columns that are in the sort-criteria. I already know about the getColumnSortList(). But only the first col

Re: XMLDocument implementation

2013-10-03 Thread asif . tmcp
Hi Jens, Thanks for that tip. Works like a charm. Really appreciate your helping hand. Regards On Thursday, October 3, 2013 5:05:11 PM UTC-4, Jens wrote: > > Use composition + forwarding instead of inheritance, e.g. > > class MyXMLDocument implements Document { > > private Document doc = XMLP

Re: RequestFactory cannot set a Ref argument on EntityProxy (Objectify)

2013-10-03 Thread Manu Botija
Thanks, you are right, it was a NPE on one of the setters. I got confused thinking that the RF automatic validation would kick-in before the setters so I was not doing any checks... but I now realize that does not make sense. By the way, I set the breakpoint as suggested. I could see it was a N

Re: RequestFactory cannot set a Ref argument on EntityProxy (Objectify)

2013-10-03 Thread Thomas Broyer
On Thursday, October 3, 2013 9:50:17 PM UTC+2, Manu Botija wrote: > > Hi, > > Please let me know if this is not the place for this kind of questions... > > I am using *Objectify* with *RequestFactory*. I have an objectify > *Entity*called > *Entry* with an attribute of type Ref**. Following > *

Re: Passing Object Literal to Javascript method ?

2013-10-03 Thread Ed Bras
@Jens: btw, do you know how to tell Eclipse to "not" format the native java methods ? (CTR+SHIFT+ F) I noticed @Thomas mentioning on SO that it's probably done by the JS formatter in Eclipse. But I wasn't able to disable it. The only way I got it disabled by using the Eclipse tags: @formatter:off a

Re: Passing Object Literal to Javascript method ?

2013-10-03 Thread Ed Bras
Thanks @Jens, I was just playing with it and it was driving me crazy as it didn't work and because of your example I noticed that the "dot" before the @ was missing :(... I hate this cryptic JS errors :(... Anyway, I ended up with this method added to the PropertyBuilder that works: private stati

Re: Is there another way to style CellTables in GWT, other than using ClientBundle?

2013-10-03 Thread Thomas Broyer
On Thursday, October 3, 2013 7:16:24 PM UTC+2, Saad S wrote: > > I just posted this on question on > SO, > > though asking here may be more appropriate and fruitful. > > 1) Nothing aga

Re: XMLDocument implementation

2013-10-03 Thread Jens
Use composition + forwarding instead of inheritance, e.g. class MyXMLDocument implements Document { private Document doc = XMLParser.createDocument(); // delegate Document methods to this.doc. // implement your app specific methods } -- J. -- You received this message because you are

Re: Passing Object Literal to Javascript method ?

2013-10-03 Thread Jens
Add a Callback parameter to your JSNI method and call it from a pure JavaScript callback function. public native CssHolder perform(Element e, int duration, JavaScriptObject options, Callback callback) /*-{ options.onComplete = function() { callback.@::onComplete()(); // maybe cleanup

RequestFactory cannot set a Ref argument on EntityProxy (Objectify)

2013-10-03 Thread Manu Botija
Hi, Please let me know if this is not the place for this kind of questions... I am using *Objectify* with *RequestFactory*. I have an objectify *Entity*called *Entry* with an attribute of type Ref**. Following *Objectify*recommendations, I declare the getter and setter for that kind of argume

Re: Verificar dados existentes no bando de dados

2013-10-03 Thread Mitcho Betão
Thais vc está conseguindo acessar o banco de dados corretamente ? Já fez testes de leitura e escrita no banco ? Em 2 de outubro de 2013 10:54, Tata escreveu: > Olá galera, estou desenvolvendo meu primeiro projeito usando GWT, é o > seguinte .. > Já estou com a tela de login e senha criadas,

Re: Passing Object Literal to Javascript method ?

2013-10-03 Thread Ed
Next challenge: how to provde a callback function as property? In Javascript you have something like: CssMod.perform(element, 1.5, {width:100, onComplete:myFunction}); function myFunction() { console.log("finished"); } But how can I do this in GWT Java code :( ? That is: specify a "link" to a

XMLDocument implementation

2013-10-03 Thread asif . tmcp
Hi, I needed to extend the XML Document Object Model so as to have an in-memory XML document object model representation ( in the client side). My requirement is to have the normal Document functions like - getElementById, getElementByTagName etc as well as to implement application specific me

Re: Passing Object Literal to Javascript method ?

2013-10-03 Thread Ed Bras
To Wrap it up: I ended up having a PropertiesBuilder interface: public interface PropertiesBuilder extends Builder { PropertiesBuilder set(String key, T value); } and a Js version: public final class JsPropertyBuilder implements PropertiesBuilder, IsJavaScriptObject { private final JavaScriptObjec

Re: Best solution for client-side graphing in GWT?

2013-10-03 Thread Nathan Dunn
Sorry for the late reply. Flash is definitely a deal-breaker for a multitude of reasons. It looks like your library maps flotr (which looks pretty nice), but extends VML. I definitely want something that extends the native Canvas or SVG (I'm currently using the SVG library). The visualiz

Is there another way to style CellTables in GWT, other than using ClientBundle?

2013-10-03 Thread Saad S
I just posted this on question on SO, though asking here may be more appropriate and fruitful. 1) Nothing against ClientBundle

Re: Load on demand - table \ grid

2013-10-03 Thread Jens
Sounds like you want to check out DataGrid + AsyncDataProvider + SimplePager. http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwDataGrid -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this gro

Load on demand - table \ grid

2013-10-03 Thread Nir Avital
Hi, We're examining GWT for our next generation project. We would like to create a simple table \ grid that will represent a database table. What we want to do is to populate this table\grid with our database data. Our tables are very big (~2 Million rows) and therefore our requirements from the

Re: Passing Object Literal to Javascript method ?

2013-10-03 Thread Ed Bras
Fluent api, niceeThanks for your ideas. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to thi

Re: Passing Object Literal to Javascript method ?

2013-10-03 Thread Jens
I would build it like: Mutable version: class Options extends JavaScriptObject { public native Options with(String option, String value) /*-{ this[option] = value; return this; }-*/; } Options options = Options.createObject() .with("opacity", "0.5") .with("width", "100"

Re: Passing Object Literal to Javascript method ?

2013-10-03 Thread Ed Bras
Played some more and I create a literal Js Object, or some called Option Js object, like this: private JavaScriptObject createOptions(final String name, final String value) { return addOptions(JavaScriptObject.createObject(), name, value); } private native JavaScriptObject addOptions(final JavaS

Re: Passing Object Literal to Javascript method ?

2013-10-03 Thread Ed Bras
@Jens: thanks, I am going for the latter options, that seems to work well and safe. The builder pattern was exactly why I want the above construction ;) (using the GWT css classes for the naming) I am just considering if directly creating a JavascriptObject through a Builder class wouldn't be bet

Re: DateBox DatePicker popup is not showing up!

2013-10-03 Thread Sandeep Shukla
Thanks a ton !! This was a life saver :) On Monday, June 1, 2009 1:10:35 AM UTC+5:30, John_Idol wrote: > > my BAD --> had a look with firebug and it was there behind the rest of > the stuff, I just had to define the following css class: > > .dateBoxPopup { > z-index: 100; > }