Re: generics and pages, components and edit blocks

2009-03-08 Thread Howard Lewis Ship
Which is why I'm anxious to release Tapestry 5.1 and demonstrate the seriousness concerning backwards compatibility. On Sun, Mar 8, 2009 at 7:58 PM, Thiago H. de Paula Figueiredo wrote: > Em Sun, 08 Mar 2009 23:46:41 -0300, Luther Baker > escreveu: > >> "Further, the design of Tapestry 5 was cre

Re: [T5 5.0.18] java.lang.IllegalStateException: Cannot create a session after the response has been committed

2009-03-08 Thread Dave Dombrosky
I'm also getting an exception after a session.invalidate() from an ActionLink and can confirm that it works in Jetty but fails in Tomcat. It would be nice to know if there is a workaround. Here's the exception: java.lang.IllegalStateException: Cannot create a session after the response has been

Re: jetty, tapestry and realms

2009-03-08 Thread Thiago H. de Paula Figueiredo
Em Sun, 08 Mar 2009 23:55:54 -0300, Luther Baker escreveu: Do Maven, Jetty, Realms and Tapestry play nice out of the box? Maven does not affects this because it is a buid tool. I don't think Tapestry affects this too, as, AFAIK, realms are handled at servlet container level, before any

Re: generics and pages, components and edit blocks

2009-03-08 Thread Thiago H. de Paula Figueiredo
Em Sun, 08 Mar 2009 23:46:41 -0300, Luther Baker escreveu: "Further, the design of Tapestry 5 was created specifically to make it possible to continue adding features without breaking backwards compatibility going forward. There will not need to be a Tapestry 6." There was a very annoying t

jetty, tapestry and realms

2009-03-08 Thread Luther Baker
Do Maven, Jetty, Realms and Tapestry play nice out of the box? App works just fine without any of the following - but after adding the below, I'm getting an error and I'm not sure what I'm missing. The error sure looks like it is *partly* working ... "FORBIDDEN" but the browser is NOT prompting me

Re: generics and pages, components and edit blocks

2009-03-08 Thread Luther Baker
Ok, I'll bite :) http://www.jroller.com/WarnerOnstine/entry/tapestry_future_adoption_redux One shining point came from Howard himself -- "Further, the design of Tapestry 5 was created specifically to make it possible to continue adding features without breaking backwards compatibility going for

Re: generics and pages, components and edit blocks

2009-03-08 Thread Thiago H. de Paula Figueiredo
Em Sun, 08 Mar 2009 23:35:44 -0300, Luther Baker escreveu: Yes. Maybe Tapestry 6 :) "Tapestry 6" has a history of controversy and trolling. As it's already 23:38 PM here in Belo Horizonte, MG, Brazil and I'm lazy now, read this list and search the web for "tapestry 6" to know what I'm

Re: problem tapestry-spring-security plugin: UserDetailsService implementation not found

2009-03-08 Thread Thiago H. de Paula Figueiredo
Em Sun, 08 Mar 2009 23:31:49 -0300, manuel aldana escreveu: But I wonder why it works in the sample application from the tapestry-spring-security module, which has no AppModule defined. I guess then some tapestry magic comes in place (maybe scanning for implementors of interfaces...). I

Re: generics and pages, components and edit blocks

2009-03-08 Thread Luther Baker
Yes. Maybe Tapestry 6 :) Given that the language keeps changing/moving forward, this seems like an odd thing to simply leave the user with ... I would guess that Templates, Components, Pages ... and the way we setup Services in AppModule would eventually want to consider techniques that wish to l

Re: problem tapestry-spring-security plugin: UserDetailsService implementation not found

2009-03-08 Thread manuel aldana
Thiago H. de Paula Figueiredo schrieb: Em Sun, 08 Mar 2009 18:09:29 -0300, manuel aldana escreveu: Exception constructing service 'RememberMeServices': Error invoking service builder method nu.localhost.tapestry5.springsecurity.services.SecurityModule.build(UserDetailsService, String) (at S

Re: problem tapestry-spring-security plugin: UserDetailsService implementation not found

2009-03-08 Thread Thiago H. de Paula Figueiredo
Em Sun, 08 Mar 2009 18:09:29 -0300, manuel aldana escreveu: Exception constructing service 'RememberMeServices': Error invoking service builder method nu.localhost.tapestry5.springsecurity.services.SecurityModule.build(UserDetailsService, String) (at SecurityModule.java:303) (for service '

Re: about T5 javascript

2009-03-08 Thread Thiago H. de Paula Figueiredo
Em Sun, 08 Mar 2009 15:13:58 -0300, Fernando Padilla escreveu: that said, any committers want to add a simple function for people to use?? something like this: Tapestry.activateZone = function( zoneId, url ) { var zoneManager = Tapestry.findZoneManagerFromId( zoneId ); zone

Re: generics and pages, components and edit blocks

2009-03-08 Thread Thiago H. de Paula Figueiredo
Em Sun, 08 Mar 2009 15:46:19 -0300, Luther Baker escreveu: Is there anyway to use generics as pages, components or edit blocks? No, because Tapestry uses the class name as URL. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com

problem tapestry-spring-security plugin: UserDetailsService implementation not found

2009-03-08 Thread manuel aldana
Hi, I am using tapestry-spring-security plugin (http://www.localhost.nu/java/tapestry-spring-security/index.html). I tried out the included sample application which works fine. I tried to map this to my own application, but I get following exception: Exception constructing service 'RememberMe

Re: Archetype Error

2009-03-08 Thread Richard Clark
That is exceptionally helpful. Thank you :) ...R On Sun, Mar 8, 2009 at 1:29 PM, Otho wrote: > Just create the archetype. Don't do a 'mvn install' or 'mvn  jetty:run' > immediately but first edit the pom and change in > the property section from 5.1.0.1-SNAPSHOT to 5.0.18. ---

Re: Archetype Error

2009-03-08 Thread Otho
Just create the archetype. Don't do a 'mvn install' or 'mvn jetty:run' immediately but first edit the pom and change in the property section from 5.1.0.1-SNAPSHOT to 5.0.18. You can leave the testng dependency as is. Other changes, like including tapestry-hibernate or tapestry-spring-security and

generics and pages, components and edit blocks

2009-03-08 Thread Luther Baker
Is there anyway to use generics as pages, components or edit blocks? path/Edit vs path/Edit I'd imagine not - you'd have had to encoded the Generic type in the class and page names somehow and I've not seen anyone do that yet. -Luther

Re: about T5 javascript

2009-03-08 Thread Fernando Padilla
that said, any committers want to add a simple function for people to use?? something like this: Tapestry.activateZone = function( zoneId, url ) { var zoneManager = Tapestry.findZoneManagerFromId( zoneId ); zoneManager.updateFromURL( url ); } Inge Solvoll wrote: var zoneObject

Re: how to let actionlink to open another page like target="_blank"?

2009-03-08 Thread Tan cyb...@n
Yes Please. On Sun, Mar 8, 2009 at 11:23 PM, Andy Pahne wrote: > > Yes please, would be nice to see... > > Andy > > > Inge Solvoll schrieb: > >> I created a mixin, PopupPageLink, that opens a new window containing a the >> link, with window.open() in javascript. It gives you more control over the

Re: Archetype Error

2009-03-08 Thread Richard Clark
If I understand correctly, that archetypes generates a project with the 5.1 alpha codebase. That could create problems if some of the supporting modules (e.g. tapestry-acegi) aren't ready to work with 5.1. What would someone do if they wanted to start with the current production release? ...Richa

Re: how to let actionlink to open another page like target="_blank"?

2009-03-08 Thread Andy Pahne
Yes please, would be nice to see... Andy Inge Solvoll schrieb: I created a mixin, PopupPageLink, that opens a new window containing a the link, with window.open() in javascript. It gives you more control over the opened window. Also, you can add the mixin to any element, not just a link, just

Re: Archetype Error

2009-03-08 Thread Andreas Andreou
You're right - at some point i had configured my local archetypeCatalog to include T5 Just use mvn archetype:generate -DarchetypeCatalog=http://tapestry.formos.com/maven-repository as mentioned in the previous link On Sun, Mar 8, 2009 at 7:22 AM, Richard Clark wrote: > Actually, the command lin

Re: about T5 javascript

2009-03-08 Thread Inge Solvoll
var zoneObject = Tapestry.findZoneManager(elementConnectedToZone); zoneObject.updateFromURL(link); On Fri, Mar 6, 2009 at 8:16 AM, Andrea Chiumenti wrote: > Hi to avoid me to read all Tapestry js code, could you tell me waht > is/are the js Class and method(s) that replace a zone on a xhr call

Re: how to let actionlink to open another page like target="_blank"?

2009-03-08 Thread Inge Solvoll
I created a mixin, PopupPageLink, that opens a new window containing a the link, with window.open() in javascript. It gives you more control over the opened window. Also, you can add the mixin to any element, not just a link, just make a hook to the onclick event. Let me know, and I'll post the co

Re: how to let actionlink to open another page like target="_blank"?

2009-03-08 Thread ningdh
Just add target="_blank" to actionlink. XX. DH Sent: Sunday, March 08, 2009 8:24 PM Subject: how to let actionlink to open another page like target="_blank"? > Hi, > > I have a question about actionlink, is there any possible to make it to open > another new page instead of change in current

how to let actionlink to open another page like target="_blank"?

2009-03-08 Thread Tan cyb...@n
Hi, I have a question about actionlink, is there any possible to make it to open another new page instead of change in current page? make it something like ? Thank you. Regards, Tan

Re: Archetype Error

2009-03-08 Thread Otho
You forgot to specify the archetype repository. The actual commandline is: mvn archetype:generate -DarchetypeCatalog= http://tapestry.formos.com/maven-repository This is unfortunately still wrong in the stable docs, but fixed in the nightly ones. 2009/3/8 Richard Clark > Actually, the command