Re: Tapestry Hibernate dependency

2010-05-24 Thread Sven Homburg
Sorry, wrong answer, its too early in the morning here, my eyes was too tiered ;-) with regards Sven Homburg Founder of the Chenille Kit Project http://chenillekit.codehaus.org 2010/5/25 Ben Dotte > I had the same issue; I had to add a new Hibernate repository: > > >hibernate >

Re: Tapestry Hibernate dependency

2010-05-24 Thread Sven Homburg
try this org.hibernate.javax.persistence hibernate-jpa-2.0-api 1.0.0.Final with regards Sven Homburg Founder of the Chenille Kit Project http://chenillekit.codehaus.org 2010/5/25 Ben Dotte > I had the same issue; I had to add a new Hibe

Re: Tapx-Datefield under 5.2 (was Re: Tapestry Hibernate dependency)

2010-05-24 Thread Greg Pagendam-Turner
I've changed my dependency for tapx-datefield to allow me to use 1.1: com.howardlewisship tapx-datefield 1.1-SNAPSHOT Now I get: java.lang.IllegalArgumentException: Contribution com.howardlewisship.tapx.core.services.CoreModule.contributeRegexAuthorizer(Configuration) (at CoreModule.java:47

Tapx-Datefield under 5.2 (was Re: Tapestry Hibernate dependency)

2010-05-24 Thread Greg Pagendam-Turner
Thanks Ben that worked. No I'm getting a runtime error relating to tapx-datefield Virtual folder names (for component libraries) may no longer contain slashes as of Tapestry 5.2. You must change the ComponentClassAsssetAliasManager contribution for 'tapx/1.0.0-SNAPSHOT/datefield' TAPX is incl

Re: Tapestry Hibernate dependency

2010-05-24 Thread Ben Dotte
I had the same issue; I had to add a new Hibernate repository: hibernate https://repository.jboss.org/nexus/content/groups/public/ Using Hibernate Annotations I also had to add this for some reason: javax.persistence persistence-api

Re: comet implementation issue

2010-05-24 Thread Thiago H. de Paula Figueiredo
On Mon, 24 May 2010 21:45:16 -0300, rajesh sukumaran wrote: This behavior is not limited to the reverse ajax call but it is seen with all the pages. It is as if the polling for page change stops with the reverse ajax call. Can a Thread.sleep(...) in a dispatcher cause the page change pol

Tapestry Hibernate dependency

2010-05-24 Thread Greg Pagendam-Turner
Hi, I'm trying to build my 5.1.0.5 application against 5.2.0-SNAPSHOT. When I switch versions tapestry-hibernate seems to want to pull in a version of hibernate called 3.5.2-Final I've not been able to find a repository for this version of hibernate. Do I need to add a further repository to

Re: comet implementation issue

2010-05-24 Thread rajesh sukumaran
This behavior is not limited to the reverse ajax call but it is seen with all the pages. It is as if the polling for page change stops with the reverse ajax call. Can a Thread.sleep(...) in a dispatcher cause the page change polling to stop? - Original Message From: Thiago H. de Paula

Re: Pass params to pager of grid component

2010-05-24 Thread Geoff Callender
I have a similar problem, so I've created JIRA issue https://issues.apache.org/jira/browse/TAP5-1162 . On 11/11/2009, at 3:45 PM, Xuan Tran Le wrote: > I have a problem with the pager of grid component. I want to pass some > params to the pager link. > > For example, I have a page support searc

Re: Problems with @InjectService

2010-05-24 Thread Christophe Cordenier
Hi Have you tried with http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/annotations/Id.html @Inject @Id("one") private CommonInterface concrete1; Have you any duplicate build method for the same service with same id ? 2010/5/24 Erick Erickson > Well, I've been staring at what

Re: Problems with @InjectService

2010-05-24 Thread Erick Erickson
Well, I've been staring at what comes back as a web page with stack traces and it hasn't been all that helpful. The class that things get traced back to absolutely does an @InjectService("one"). And I've restarted Eclipse, recompiled the associated project, and verified that I wasn't picking up a s

Re: Problems with @InjectService

2010-05-24 Thread Howard Lewis Ship
Let Tapestry do the work for you; as it instantiates services and other objects, it logs what it's doing; it should be able to point you right at the class (and even line number) of the errant injection. Read the console log. On Mon, May 24, 2010 at 1:19 PM, Erick Erickson wrote: > Howard: > > Th

Re: Problems with @InjectService

2010-05-24 Thread Erick Erickson
Howard: Thanks for your answer, but I sure don't see where we're injecting by the type, but that may just mean I need to look harder. Maybe somewhere we're providing a builder or something. But just for clarification, you're saying that I should NOT need to do the ContributeAlias bit to resolve t

Re: Problems with @InjectService

2010-05-24 Thread Howard Lewis Ship
You should only be getting this error: Service interface CommonInterface is matched by 2 services: one, two. Automatic dependency resolution requires that exactly one service implement the interface. if you are injecting somewhere by type (CommonInterface) rather than service id. The console l

Re: multizone & js xhr response

2010-05-24 Thread Josh Canfield
Ah, you're right. You can't add script during the action phase, you need to add the script when the zones are rendering. Try this: @Inject private RenderSupport _support; @Inject private PageRenderQueue _queue; MultiZoneUpdate onHello() { _queue.addPartialMarkupRende

Re: Problems with @InjectService

2010-05-24 Thread Shing Hing Man
I think you need the Marker annotations. Please check it out at the link below. http://tapestry.apache.org/tapestry5.1/tapestry-ioc/service.html Shing --- On Tue, 25/5/10, Erick Erickson wrote: > From: Erick Erickson > Subject: Problems with @InjectService > To: "Tapestry users" > Date: Tu

Problems with @InjectService

2010-05-24 Thread Erick Erickson
I've seen several iterations of this problem in the users list, but the solution still eludes me. This is the very basic issue of having two different concrete realizations of a particular interface and wanting to have a service for each concrete implementation in a Tapestry 1.5.0.5 environment.

Re: TSS with T5 5.2.0-SNAPSHOT

2010-05-24 Thread Kalle Korhonen
On Mon, May 24, 2010 at 10:00 AM, Pierce Wetter wrote: >  Meanwhile, shiro is about to go 1.0, and Kalle is going to bring > tapestry-security up to date with that once that is done. Just a side note, Tynamo's tapestry-security is already updated with the latest Shiro API changes. However, getti

RE: TSS with T5 5.2.0-SNAPSHOT

2010-05-24 Thread Jim O'Callaghan
Thanks for the information Pierce - do you happen to have the url for the trunk? All I can see is 2.1.0 at http://www.localhost.nu/java/mvn/nu/localhost/tapestry/tapestry-spring-secur ity/ - thanks. Regards, Jim. -Original Message- From: Pierce Wetter [mailto:pie...@paceap.com] Sent: 24

Re: TSS with T5 5.2.0-SNAPSHOT

2010-05-24 Thread Pierce Wetter
On May 24, 2010, at 7:06 AM, Jim O'Callaghan wrote: > Has anyone a home brew of TSS 2.1.1. SNAPSHOT that works with T5 > 5.2.0-SNAPSHOT - I'm running into issues with deprecated > ClassTransformation methods that are a side-effect of moving away from > JavaAssist. Or an alternative suggested fix

TSS with T5 5.2.0-SNAPSHOT

2010-05-24 Thread Jim O'Callaghan
Has anyone a home brew of TSS 2.1.1. SNAPSHOT that works with T5 5.2.0-SNAPSHOT - I'm running into issues with deprecated ClassTransformation methods that are a side-effect of moving away from JavaAssist. Or an alternative suggested fix would be great too! Regards, Jim.

RE: t:ProgressiveDisplay in error scenario

2010-05-24 Thread Jim O'Callaghan
Thanks for the suggestion Uli - I was just using the ProgressiveDisplay component in my templates for slow ops and hadn't (and hadn't planned on) a custom handler for it. I wonder is there a more generic timeout type solution that could be applied, rather than a special case per page, where the do

Re: > 5.1.0.5 in production anywhere?

2010-05-24 Thread Robert Zeigler
Unless you've also contributed a custom data type analzyer, I'm surprised it works at all on any of your pages. As for it working once, then an exception, then working, I'm not sure why it works the first time and then gives you an exception, but the reason it's working after the refresh is beca

Re: > 5.1.0.5 in production anywhere?

2010-05-24 Thread Michael Prescott
Ah, I have to confess I misread the original question. We're using 5.1.0.5 in production, sorry. On Mon, May 24, 2010 at 5:03 AM, Jim O'Callaghan wrote: > Thanks for the response Michael - are you talking about 5.2.0-SNAPSHOT? > > Regards, > Jim. > > -Original Message- > From: Michael Pre

Re: t:ProgressiveDisplay in error scenario

2010-05-24 Thread Ulrich Stärk
Can't you do that in your event handler code? Something like Object onProgressiveDisplay() { try { doOp(); return result; } catch (Exception e) { return errorBlock; } } with result being the Block to display on success and errorBlock being a Block containing some error

Re: injecting a nested component

2010-05-24 Thread Christophe Cordenier
Hi What is the exact use case ? It is always preferable to isolate components. If you really want to do this, I don't think this is directly possible, but you can inject the first one MyComponent as an instance of Component et get the second one from the getComponentResources of the first one. R

t:ProgressiveDisplay in error scenario

2010-05-24 Thread Jim O'Callaghan
Is there a way to use the t:ProgressiveDisplay component to perform as usual when waiting on a long op but still eventually report a user-visible error when one happens during processing? It's great for layout, but having to look through the logs when the animated ProgressiveDisplay image runs ind

injecting a nested component

2010-05-24 Thread Paul Stanton
in MyPage.tml: in MyComponent.tml: ... From within MyPage.java, is it possible to inject myZone? ie something like this: public class MyPage { @InjectComponent private Zone myZone; } p. - To unsubscribe, e-mail: users-

RE: > 5.1.0.5 in production anywhere?

2010-05-24 Thread Jim O'Callaghan
Thanks for the response Michael - are you talking about 5.2.0-SNAPSHOT? Regards, Jim. -Original Message- From: Michael Prescott [mailto:michael.r.presc...@gmail.com] Sent: 22 May 2010 13:19 To: Tapestry users Subject: Re: > 5.1.0.5 in production anywhere? We're using it in production, a