Re: Import/export in tapestry

2012-08-09 Thread Alex Kotchnev
No way to do it from Tapestry (or any other web app for that matter) - where the file will be stored on your client machine when you click on a link to download it is a browser feature. If you have multiple files that you need to download, you can always zip them up (on the fly) to download all at

Re: Error on contributeMasterObjectProvider: org/apache/tapestry5/ioc/internal/util/LockSupport

2012-08-09 Thread Jaypax Ginete
Thanks. On 8/8/2012 9:03 PM, Jonathan Barker wrote: Check your class path. You likely have duplicate or mixed versions of jars introduced by Maven figuring out which artifact versions to include. On Tue, Aug 7, 2012 at 9:35 PM, Jaypax Ginete wrote: Running Tapestry5.3.4 generated from a Mave

Re: Import/export in tapestry

2012-08-09 Thread gonzalomp87
Thanks. Sorry but I dont understand that meaning of this phrase Alex Kotchnev-2 wrote > > *If you have multiple files that > you need to download, you can always zip them up (on the fly) to download > all at the same time.* > > Cheers - Alex K > > On Wed, Aug 8, 2012 at 11:12 PM, gon

Re: Import/export in tapestry

2012-08-09 Thread Alex Kotchnev
What I mean is that if you need to download multiple files at the same time, when the user clicks the "Download" button or link, you can create a zip file containing the files they need and send the zip file back to the user. Cheers, Alex K On Thu, Aug 9, 2012 at 9:19 AM, gonzalomp87 wrote: >

Problem building Tapestry 5.3.4 using Gradle

2012-08-09 Thread Shing Hing Man
 Hi,   I have checked out Tapestry 5.3.4 using   git clone https://git-wip-us.apache.org/repos/asf/tapestry-5.git I tried to generate the corresponding Eclipse projects by issuing "gradle eclipse", but got the following error. matmsh@cauchy:~/Downloads/tapestry/tmp/tapestry-5> grad

Re: Problem building Tapestry 5.3.4 using Gradle

2012-08-09 Thread Ray Nicholus
You are using gradlew, correct? If not, you should be, instead of whatever local copy of gradle you have installed. On Thu, Aug 9, 2012 at 8:51 AM, Shing Hing Man wrote: > > > Hi, > I have checked out Tapestry 5.3.4 using > git clone https://git-wip-us.apache.org/repos/asf/tapestry

Re: Problem building Tapestry 5.3.4 using Gradle

2012-08-09 Thread Shing Hing Man
The following works ! sh gradlew eclipse Thanks ! Shing From: Ray Nicholus To: Tapestry users ; Shing Hing Man Sent: Thursday, August 9, 2012 3:24 PM Subject: Re: Problem building Tapestry 5.3.4 using Gradle You are using gradlew, correct?  If not, y

Re: Tapestry get Post Data

2012-08-09 Thread Howard Lewis Ship
To clarify, onActivate() is an event handler method, and @RequestParameter is only honored for event handler methods. beginRender(), afterRender(), etc. are render phase methods, @RequestParameter would not work there. On Wed, Aug 8, 2012 at 7:03 PM, Lance Java wrote: > You can also use @RequestP

Re: T5.3 application level singleton cache with Hibernate injection

2012-08-09 Thread Daniel Jue
Thanks Kalle, that was the example I wanted to see. Is there a way to force my tapestry-hibernate module to load before my CacheModule , so I can grab it's configuration? Right now I'm spinning up a separate hibernate configuration, and then manually loading classes into that configuration. On

Re: Tree Session Management Issue

2012-08-09 Thread tapestry.kung.fu
Thanks. Yes. It has good implementation for equals and hashcode methods. Here is class. It almost seems like this has to something to do with Tapestry Tree component itself. I can't see to find a way to keep tree expanded on all pages. Any New page is opened first time, tree expansion is automati

Re: Inject all service implementations using Tapestry IoC

2012-08-09 Thread Thiago H de Paula Figueiredo
On Thu, 09 Aug 2012 14:38:25 -0300, Dmitry Gusev wrote: Hi, Hi! But I'd like to inject them all at once like this: public static WorkerManager buildWorkerManager(Collection workers) { This isn't dependency injection, it's receiving distributed configuration, hence the empty colle

Re: Tree Session Management Issue

2012-08-09 Thread Thiago H de Paula Figueiredo
On Thu, 09 Aug 2012 14:50:16 -0300, tapestry.kung.fu wrote: Thanks. Yes. It has good implementation for equals and hashcode methods. Here is class. It almost seems like this has to something to do with Tapestry Tree component itself. I can't see to find a way to keep tree expanded on a

Re: Inject all service implementations using Tapestry IoC

2012-08-09 Thread Dmitry Gusev
Yes, thanks for correction. But you get the idea? How can I fix the signature to get all the implementations? On Thu, Aug 9, 2012 at 9:52 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 09 Aug 2012 14:38:25 -0300, Dmitry Gusev > wrote: > > Hi, >> > > Hi! > > > But I'd

Re: Inject all service implementations using Tapestry IoC

2012-08-09 Thread Norman Franke
If all the workers are in the same package you could make/Google a PackageEnumerator class that uses a ClassLoader to get all of the classes in the package, and then register those. I do this with my DAOs interface and implementations to keep me from having to remember to add them to the AppModu

Re: Inject all service implementations using Tapestry IoC

2012-08-09 Thread Robert Zeigler
Hi Dimitry. What you need is to contribute your workers to the worker manager. Something like: contributeWorkerManager(Configuration conf) { conf.add(...) conf.add(...) } Now, the useful thing about this is that any module that is used in your app that has a "contributeWorkerManager" will

Re: Inject all service implementations using Tapestry IoC

2012-08-09 Thread Dmitry Gusev
Hello, Norman! Sure, I'd like to see your approach. On Thu, Aug 9, 2012 at 10:02 PM, Norman Franke wrote: > If all the workers are in the same package you could make/Google a > PackageEnumerator class that uses a ClassLoader to get all of the classes > in the package, and then register those. I

Re: Inject all service implementations using Tapestry IoC

2012-08-09 Thread Dmitry Gusev
Hello, Robert! This looks like what I need! Now I can remove bind() calls and just do: @Contribute(WorkerManager.class) public static void defineWorkers(Configuration conf) { conf.addInstance(GitPullWorker.class); conf.addInstance(GitCloneWorker.class); } And I e

Boston Visit

2012-08-09 Thread Howard Lewis Ship
Hey folks, I'm going to be in Boston from Aug 23 - Sep 7. I'm already planning on visiting iFactory ... but now is the time to plan any additional Tapestry (or just coding) related meetups while I'm in the area. Who is doing Tapestry in Boston lately? Howard -- Howard M. Lewis Ship Creator o

Re: T5.3 application level singleton cache with Hibernate injection

2012-08-09 Thread Kalle Korhonen
On Thu, Aug 9, 2012 at 10:17 AM, Daniel Jue wrote: > Thanks Kalle, that was the example I wanted to see. Is there a way to > force my tapestry-hibernate module to load before my CacheModule , so I can > grab it's configuration? Right now I'm spinning up a separate hibernate > configuration, and

ActivationRequestParameter question

2012-08-09 Thread gricker
In the java code I have : @Property @ActivationRequestParameter private Date startDate; In the .tml file I have: In url I will see something like: http://localhost:8080/c//startDate=Thu%20Aug%2009%2000:00:00%20EDT%202012 If I reload the page I will get org.apache.tapestry5.ioc.int

Re: Boston Visit

2012-08-09 Thread gricker
Hi, Myself and a few others are using Tapestry a bit north of Boston, in Portland Maine. A Boston meetup would be something I'd try and attend. Greg -- View this message in context: http://tapestry.1045711.n5.nabble.com/Boston-Visit-tp5715202p5715203.html Sent from the Tapestry - User mail

Re: Tree Session Management Issue

2012-08-09 Thread tapestry.kung.fu
Yes you are right. It almost seems that Tree component has Session-State associated with individual Page. To solve this I can only have One Page Tied to Tree component and that Page should inject required component based on condition satisfied. Although, that is not very flexible solution and not g

Re: Tree Session Management Issue

2012-08-09 Thread tapestry.kung.fu
There is one more thing... Tree Updating Zones works fine how it is explained in this example (http://stackoverflow.com/questions/10261741/tapestry5-and-selection-on-tree-component) but I can't use that technique. I need full page refresh. When I call this first time it is preparing all Tree No

Why should we specify t:id and id for the zone

2012-08-09 Thread bhorvat
Well like it says in the subject, why should we specify both normal id and the t:id. I know that the latter is for the tapestry where the first one is for the client, but why is not that set by default in tapestry if it is that important, and I take it that it is because some of my code wont work w

adding border-radius to t:grid

2012-08-09 Thread Angelo C.
Hi, I'd like the table come out from t:grid rounded, is there a way to add? I tried following, does not work: div.t-data-grid { border-radius:5px; } Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/adding-border-radius-to-t-grid-tp57152

Re: ActivationRequestParameter question

2012-08-09 Thread Howard Lewis Ship
Seems like a missing feature; Tapestry should have a built-in ValueEncoder for the Date type, to encode a Date into a more reasonable string, and decode it back when converting the parameter back into a field value. On Thu, Aug 9, 2012 at 11:46 AM, gricker wrote: > > > In the java code I have :

Re: Grid columns sort

2012-08-09 Thread Thiago H de Paula Figueiredo
On Thu, 09 Aug 2012 19:06:48 -0300, William Lopes wrote: Hi guys. Hi! So, I'm in a project where we are doing everything dynamic, forms, grid, crud, etc (and it is giving very work). It's basically a matter of understanding how adding edition and viewing blocks work, writing these blo

Re: adding border-radius to t:grid

2012-08-09 Thread Thiago H de Paula Figueiredo
On Thu, 09 Aug 2012 19:35:01 -0300, Angelo C. wrote: Hi, Hi! I'd like the table come out from t:grid rounded, is there a way to add? I tried following, does not work: div.t-data-grid { border-radius:5px; } Hi! This is a pure CSS question. -- Thiago H. de Paula Fig

Re: Grid columns sort

2012-08-09 Thread William Lopes
Thanks for answer. Yes, I want do sort by myself, could you give a example of GridDataSource implementing a Grid? 2012/8/9 Thiago H de Paula Figueiredo > On Thu, 09 Aug 2012 19:06:48 -0300, William Lopes < > williamlopes@gmail.com> wrote: > > Hi guys. >> > > Hi! > > > So, I'm in a project

Re: Grid columns sort

2012-08-09 Thread Pavel Vodenski
I recently had to do just this and ended up copying CollectionGridDataSource and changing some of the #prepare(int, int, List) method. If you'd prefer to avoid copying, you can write a wrapper that implements GridDataSource, delegates to an existing CollectionGridDataSource for all operations, then

Re: Grid columns sort

2012-08-09 Thread William Lopes
Hi Pavel. Can you explain more detail, please. Thank you so much. 2012/8/9 Pavel Vodenski > I recently had to do just this and ended up copying > CollectionGridDataSource and changing some of the #prepare(int, int, > List) method. If you'd prefer to avoid copying, you can > write a wrapper tha

multiple actionlink with same ID in one page

2012-08-09 Thread Angelo C.
Hi, say I have a code: void onActionFromUpdateMode(String mode) { System.out.println(mode); } then I'd like to have this in the page: switch off switch mode but I got this error: Embedded component ids must be unique, any help? thanks, Angelo -- View this me

Re: Grid columns sort

2012-08-09 Thread Thiago H de Paula Figueiredo
On Thu, 09 Aug 2012 19:59:45 -0300, William Lopes wrote: Yes, I want do sort by myself, could you give a example of GridDataSource implementing a Grid? You don't implement a Grid: it's a component. You can implement GridDataSource, which is an interface. How to implement it depends on whe

Re: multiple actionlink with same ID in one page

2012-08-09 Thread Thiago H de Paula Figueiredo
Use EventLink instead. All you need to do is to use the same event name for both EventLink instances. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-