On 12 oct. 2010, at 22:10, nrg-b wrote:

> 
> Hi Qooxdoo Chefs, 
> 
Hi,

> What's cookin' ? (Sorry - all puns intended).
> 
> Although I can only spare a few hours of week on my mini qx project to put a
> prototype qx gui to front our financial trading system I think I'm making
> reasonable yet pleasing results.

Welcome to qooxdoo !

> 
> I am using the qx Rpc class to communicate to a back-end java-servlet
> (RpcServlet) which returns JSON data. I have plugged the returned json data
> into multi-valued widgets like SelectBox and Table. 
> 
> 1. When I tried to call a member function, myfunc(), in the rpc handler I
> got a "myfunc() is not defined" error message. If I called the member
> function by qualifying as "this.myfunc()" then I get "this.myfunc is not a
> function". I noted that when adding a listener, there is an option to pass
> in 'this' in order to set the function's context. Please can you tell me
> what is the value 'this' in an Rpc handler function? The only way I could
> get round the issue about was to make the function a static one.
> 
Using rpc, you have to provide the fully qualified Java class name : 
a.b.c.Class.
This is case sensitive.
Then the method name and then an array for the parameters.
The class called act like a controller and thus will be a singleton manage 
automatically by the rpcservlet.
You don't have to worry about that controller instance yourself as it will be 
generically instanciated on Java side by servlet.

> 2. The json data returned is an array of nested maps (ie array of
> composites). In SelectBox a property chain (ie dot-notation path) can be
> used to bind the displayed labels to a value deep within a nested object
> structure. I wanted to do the same thing for tables. Please may I ask if
> this is part of your roadmap then when do you think its likely this feature
> will be released? I am using qx version 1.2. In the meantime, I've written
> some bespoke code to create the rowdata (2d array) for a Simple tablemodel
> from the json data and an array of property-paths.
> 
we started before bind and are not using it, can't help here.

> 3. I have some hidden table columns. AFAIK, table column visibility is set
> via the column model eg: mytable.getTableColumnModel().setColumnVisible(0,
> false); // make 1st col invisible
> 
> But this only happens after the table model is set which could briefly show
> all cols before the desired ones are made invisible. Is it possible to set
> the column visibility when configuring the table model ie before the table
> model is set into a table?
> 
Set the model to the table before adding the table to any container. the table 
won't be visible until you set all you want, including visible column.

> Sorry for the long post and hope I don't sound too whiny. You guys are doing
> an excellent job!
> 
> Cheers,
> 
> Bharat
> 
> 
> 
> -- 
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/A-few-questions-about-Rpc-other-stuff-tp5628328p5628328.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to