Help me! How can i access a service in tapestry5 .

2010-07-18 Thread micheal822
There is a project i have being doing recently. And now I have a big problem, hope you help me,thanks. I have to draw bar chart in a html page, the situation is that the bar chart is drawed by javascript, and the javascript code is produced by an action listener. I want that when i

Re: Help me! How can i access a service in tapestry5 .

2010-07-18 Thread Josh Canfield
I want that when i click the bar, i want to go to another tapestry page with parameters. Check out PageRenderLinkSource http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/PageRenderLinkSource.html#createPageRenderLinkWithContext(java.lang.String,%20java.lang.Object...)

RE: t:grid, inPlace and rowIndex

2010-07-18 Thread Ville Virtanen
Hi, you can calculate the exact index of the row by injecting the grid to the page and calculating it by using methods (getRowsPerPage() x getCurrentPage()) + index. (http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/corelib/components/Grid.html) The index of course changes when

Re: Ok, really dumb questions about ioc scopes...

2010-07-18 Thread Thiago H. de Paula Figueiredo
On Fri, 16 Jul 2010 22:35:03 -0300, Christian Gruber christianedwardgru...@gmail.com wrote: (that last message came out a little cattier than I meant, Thiago. Sorry) No problem, Christian. :) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant,

RE: t:grid, inPlace and rowIndex

2010-07-18 Thread Jim O'Callaghan
Thanks Ville, that's very helpful. I think I'll just stick with my known object ref as the key and do a match on the list through iteration - saves some messing about. Ideally what I wanted from the grid is an index / ref that survives sorting (though has predictable behavior for additions /

Re: t:grid, inPlace and rowIndex

2010-07-18 Thread Thiago H. de Paula Figueiredo
On Sun, 18 Jul 2010 18:58:34 -0300, Jim O'Callaghan jc1000...@yahoo.co.uk wrote: Ideally what I wanted from the grid is an index / ref that survives sorting (though has predictable behavior for additions / deletions) so it can be used for a get(index) on the source list - In this case,

[GSOC 2010] GMaps Component

2010-07-18 Thread Pablo dos Reis
Hi everyone, I intend to create components that encapsulate some features of Maps Javascript API v3 The goal is allow the user have facilities to use maps like this [0]. I intend implement the features: - Geocoding - Markers - MapType - Add/Remove Controls - Size - Route