Re: Help me to understand the source of Grid

2012-12-13 Thread antalk
The onAction event will trigger a page-reload, as the currentpage parameter is passed from the Grid to the Pager: @Component(parameters = { "source=dataSource", "rowsPerPage=rowsPerPage", "currentPage=currentPage", "zone=zone" }) private GridPager pager; It will also be 'reflected back

Re: How to build both .tml, .java page using ant build

2012-12-13 Thread karthi
Thanks for your reply... In my application .tml pages also in src/main/resources -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-build-both-tml-java-page-using-ant-build-tp5718711p5718713.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: How to build both .tml, .java page using ant build

2012-12-13 Thread Rural Hunter
Not familiar with ant but in maven I have to put the tml files in src/main/resources instead of src/main/java. I guess ant behaves similarily. 于 2012/12/14 14:13, karthi 写道: Hi, I have developed an application in tapestry & it normally runs in tomcat7. Also when export manually as war file & d

How to build both .tml, .java page using ant build

2012-12-13 Thread karthi
Hi, I have developed an application in tapestry & it normally runs in tomcat7. Also when export manually as war file & deployed it in tomcat7 application runs without issues. But when using ant build, compile, package as a war file - Faced error in running the application. Compile build:

Help me to understand the source of Grid

2012-12-13 Thread Rural Hunter
Hello, I want to customize the grid and the pager. I'm trying to read the source of Grid and GridPager now. I just met one thing I can not understand. The links on pager pass the selected page number into GridPager component by triggering the onAction of GridPager. But in the onAction of the

Re: [5.3.6] A homepage instead of "Index"

2012-12-13 Thread Muhammad Gelbana
Ah ! It's clear now what you did mean, thank you :) On Thu, Dec 13, 2012 at 9:34 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 13 Dec 2012 17:21:55 -0200, Muhammad Gelbana > wrote: > > I'm sorry but how can I utilize the *LinkTransformer* service if it has >> only 2 me

Re: Component that displays additional "containing Page" markup

2012-12-13 Thread mailingl...@j-b-s.de
We use GridDataSource for paging large sets too. getAvailableRows is the total number of entries prepare tells you the slice to be rendered depending on grids "rows per page" setting. Simply load the whole slice in prepare and return the single row entity by getRowValue Jens Sent from m

Re: [5.3.6] A homepage instead of "Index"

2012-12-13 Thread Thiago H de Paula Figueiredo
On Thu, 13 Dec 2012 17:21:55 -0200, Muhammad Gelbana wrote: I'm sorry but how can I utilize the *LinkTransformer* service if it has only 2 methods, one that needs a *Request*, which you suggested that I don't need, That's not what I said at all. I said you don't need a Request at contribu

Re: Component that displays additional "containing Page" markup

2012-12-13 Thread Thiago H de Paula Figueiredo
On Thu, 13 Dec 2012 16:37:46 -0200, bogdan_cm wrote: The other limiting thing I remember about the Grid component was that I could only display one "Object' per row. I could not do: Object1.Name Object2.NameObject3.NameObject4.Name Object5.Name Object6.NameObject7.Name

Re: [5.3.6] A homepage instead of "Index"

2012-12-13 Thread Muhammad Gelbana
I'm sorry but how can I utilize the *LinkTransformer* service if it has only 2 methods, one that needs a *Request*, which you suggested that I don't need, and the other needs a *Link* and a * ComponentEventRequestParameters* ? On Thu, Dec 13, 2012 at 11:45 AM, Thiago H de Paula Figueiredo < thiag

[5.3.6] GridDataSource provided row index to getRowValue(int)

2012-12-13 Thread Muhammad Gelbana
As far as I can tell, the provided row index is based on the page and not the currently displayed list of items. Meaning if I have 3 pages and each page is displaying 5 elements, on the second page, the first element's index is 5 rather than 0. But when *prepare()* is called, the start index and e

Re: Component that displays additional "containing Page" markup

2012-12-13 Thread bogdan_cm
The other limiting thing I remember about the Grid component was that I could only display one "Object' per row. I could not do: Object1.Name Object2.NameObject3.NameObject4.Name Object5.Name Object6.NameObject7.NameObject8.Name As you can tell, I did not look at the Gri

Re: Component that displays additional "containing Page" markup

2012-12-13 Thread Thiago H de Paula Figueiredo
On Thu, 13 Dec 2012 16:12:57 -0200, bogdan_cm wrote: I will have a closer look at the Grid component. Thanks very much for the reply. Actually, you need to take a look at the GridDataSource interface. ;) -- Thiago H. de Paula Figueiredo

Re: Component that displays additional "containing Page" markup

2012-12-13 Thread bogdan_cm
I will have a closer look at the Grid component. Thanks very much for the reply. Bogdan. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Component-that-displays-additional-containing-Page-markup-tp5718622p5718688.html Sent from the Tapestry - User mailing list archive

Re: Sharing the Registry instance between web applications (deployed in the same container)

2012-12-13 Thread Lenny Primak
You cannot use approach #2. Two separate web apps cannot call each other directly. This is like having two processes on separate machines in separate JVMs. The only way they can communicate is through remote calls I.e. RPC rest or web services. On Dec 13, 2012, at 12:54 PM, Martin Nagl wrote

Re: Sharing the Registry instance between web applications (deployed in the same container)

2012-12-13 Thread Josh Canfield
You're running into a problem with with the way classloaders work in an application server. You might be able to make this work by putting the tapestry jars + dependencies in the shared lib for jetty, they would then be loaded from the same classloader. I haven't tried this and I'm not sure it's go

Sharing the Registry instance between web applications (deployed in the same container)

2012-12-13 Thread Martin Nagl
Hi all, I am considering my options for building a combo of T5 web application + Jersey REST interface for this application. I am thinking about: Step 1: Implementing a T5 application with my business logic (DB access, computations) placed in Tapestry IOC services, because I like how the IOC and

Re: Component that displays additional "containing Page" markup

2012-12-13 Thread Lance Java
As Thiago has said, the Grid component actually accepts a parameter of type GridDataSource so does not require the entire list in memory at once. Tapestry provides a coercion from List to GridDataSource so you can also pass a List to the Grid. http://tapestry.apache.org/typecoercer-service.html#Ty

Re: Component that displays additional "containing Page" markup

2012-12-13 Thread Thiago H de Paula Figueiredo
On Thu, 13 Dec 2012 14:19:22 -0200, bogdan_cm wrote: Pagination is the reason for not using the Grid component. I want to paginate my results without holding anything in memory (session). For Grid I will select the entire set, @Persist it and then display portions on the page. What I am doi

Re: Component that displays additional "containing Page" markup

2012-12-13 Thread bogdan_cm
Pagination is the reason for not using the Grid component. I want to paginate my results without holding anything in memory (session). For Grid I will select the entire set, @Persist it and then display portions on the page. What I am doing is a bit different. I always select the (number of tokens

Re: [BUG?] UnclaimedFieldWorker

2012-12-13 Thread Thiago H de Paula Figueiredo
On Thu, 13 Dec 2012 14:01:25 -0200, antalk wrote: But in theory: Can it be overwritten by multiple threads accessing the class concurrently ? Yes. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr..

Re: [BUG?] UnclaimedFieldWorker

2012-12-13 Thread antalk
But in theory: Can it be overwritten by multiple threads accessing the class concurrently ? -- View this message in context: http://tapestry.1045711.n5.nabble.com/BUG-UnclaimedFieldWorker-tp5718537p5718680.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Upgrading selenium version

2012-12-13 Thread George Christman
Strange, my phone must of sent a blank email. Anyhow thanks Lance, I didn't realize maven worked like that. I'm now running the latest version of selenium, "2.28.0" which appears to work without issue plus fixed my bug. I was having an issue trying to assertText() using xpath= namespace in the lo

Re: Upgrading selenium version

2012-12-13 Thread George Christman
-George - Reply message - From: "Lance Java [via Tapestry]" Date: Thu, Dec 13, 2012 3:19 am Subject: Upgrading selenium version To: "George Christman" -- View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-selenium-version-tp5718653p5718678.html Sent fro

Re: How to sort Association column in Grid?

2012-12-13 Thread Martin Nagl
Have a look at class JPAGridDataSource from Tynamo: http://svn.codehaus.org/tynamo/trunk/tapestry-jpa-module/tapestry-jpa/src/main/java/org/tynamo/jpa/internal/JPAGridDataSource.java

Re: custom edit page not possible

2012-12-13 Thread Thiago H de Paula Figueiredo
On Thu, 13 Dec 2012 04:59:44 -0200, Ken in Nashua wrote: The problem with my webapp is it keeps going into my resources dir for templates instead of the webapp context dir for templates. There has been some back and forth about this in the past and I am not sure what the canonical way is

Re: [5.3.6] A homepage instead of "Index"

2012-12-13 Thread Thiago H de Paula Figueiredo
On Wed, 12 Dec 2012 23:45:19 -0200, Muhammad Gelbana wrote: I'm contributing a url to the default start page: public static void contributeApplicationDefaults(MappedConfiguration configuration) { configuration.add(SymbolConstants.START_PAGE_NAME, "my/page"); } How can I have a reque

Re: Component that displays additional "containing Page" markup

2012-12-13 Thread Lance Java
I've written a simple gallery component which displays a list of items in a grid with "prev" and "next" links to go through pages. You pass it a block to display each item. Code: https://github.com/uklance/tapestry-stitch/blob/master/src/main/java/org/lazan/t5/stitch/components/Gallery.java https:

Re: Upgrading selenium version

2012-12-13 Thread Lance Java
In maven, the "nearest definition" wins. http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html So if you declare a version in your pom.xml, it will override the version declared in any of your dependencies (ie tapestry). -- View this message in context: http://t