Re: tapestry 5.2

2010-07-21 Thread Sha Aith
Thanks for the update. I'm using tapestry 5.0.18 and experiencing a lot of performance issues. I thought of upgrading to 5.1.0.5 but dont want to do it now because there are some bugs in 5.1.0.5. We also have plans to move to Spring 3.0. I saw that 5.1 is not compatible with Spring 3. So, I'm eage

Re: tapestry 5.2

2010-07-21 Thread Igor Drobiazko
The aim is to release 5.2 before JavaOne which is in September. On Wed, Jul 21, 2010 at 9:19 AM, Sha Aith wrote: > > When will a stable version of Tapestry 5.2 be released? > -- > View this message in context: > http://old.nabble.com/tapestry-5.2-tp29222616p29222616.html > Sent from the Tapestry

Re: tapestry 5.2

2010-07-21 Thread based2
Check http://old.nabble.com/Tapestry---Dev-f339.html > http://old.nabble.com/Tme-for-an-alpha--ts29178526.html == http://wiki.apache.org/tapestry/Tapestry5ModuleRegistry == http://wiki.apache.org/tapestry/Tapestry5OpensourceApps == http://wiki.apache.org/tapestry/Tapestry5HowTos Sha Aith wrote:

Re: add context to redirected page

2010-07-21 Thread Chuck Kring
Thanks! Chuck Luu Tuan Cuong wrote: Hi, You can use the service: PageRenderLinkSource. @Inject PageRenderLinkSource _linkSource; private Link getPageLink(Class pageClass, Object... context) { return _linkSource.createPageRenderWithContext(pageClass, context); } public Object setup

Re: add context to redirected page

2010-07-21 Thread Luu Tuan Cuong
Hi, You can use the service: PageRenderLinkSource. @Inject PageRenderLinkSource _linkSource; private Link getPageLink(Class pageClass, Object... context) { return _linkSource.createPageRenderWithContext(pageClass, context); } public Object setupRender(){ node = Node.getByNodeId(node

Re: add context to redirected page

2010-07-21 Thread Mark W. Shead
Can you put a public method on the page to set the node id and then do something like: red.setNodeId(node); On Wed, Jul 21, 2010 at 9:26 PM, Chuck Kring wrote: > I have a page that takes a nodeId as a parameter, then redirects into the > page to a different page depending upon the type of obj

add context to redirected page

2010-07-21 Thread Chuck Kring
Hi, I have a page that takes a nodeId as a parameter, then redirects into the page to a different page depending upon the type of object referred to by the nodeId. I also would like to set the nodeId of the redirected page. What's the best way to do this? Thanks. Chuck public class myP

Re: non thread safe access to session

2010-07-21 Thread Jonathan Barker
Jim, I have vague recollections of hitting this before. IIRC, each hibernate object knows the Session that it is associated with. So, if an object is associated with Session A on Thread A, and you modify that object from Thread B, then Session A now has to manage changes made from a different th

Re: directly return an image from Tapestry

2010-07-21 Thread Chuck Kring
Thanks for the warning. I'm using this to serve a 1-pixel gif file every 20 seconds so I don't think this will cause performance issues. Note taken though. Chuck Peter Stavrinides wrote: Just return it in the page's onActivate() method. Just be careful of this approach, its fine f

Re: T5: CMS integration - multiple templates single controller?

2010-07-21 Thread Howard Lewis Ship
I've managed to get more of the docs working, including Javadoc, but not the component report yet. http://tapestry.formos.com/nightly/tapx/ On Wed, Jul 21, 2010 at 11:26 AM, Adam Zimowski wrote: > Thank you much Guys. This is definitely giving me ways to explore. I > will share our solution whe

Re: non thread safe access to session

2010-07-21 Thread Howard Lewis Ship
Certainly, I don't see this logic. What gets injected into both service A and service B should by the perthread proxy to the Hibernate Session service. This implements all the Session methods but delegates to a per-thread instance that is discarded at the end of the request. The thing to watch out

Re: T5: CMS integration - multiple templates single controller?

2010-07-21 Thread Adam Zimowski
Thank you much Guys. This is definitely giving me ways to explore. I will share our solution when it's ready, but may post some questions first :) On Wed, Jul 21, 2010 at 11:35 AM, Thiago H. de Paula Figueiredo wrote: > Take a look at these past discussions: > > http://old.nabble.com/Tapestry-Tem

RE: non thread safe access to session

2010-07-21 Thread Jim O'Callaghan
Yep Thiago, it's Tapestry-Hibernate creating the sessions. My situation might be a little contrived, but I'm concerned it might happen to end-users, as I don't fully understand why it's happening. Regards, Jim. -Original Message- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gm

Re: non thread safe access to session

2010-07-21 Thread Thiago H. de Paula Figueiredo
On Wed, 21 Jul 2010 13:58:15 -0300, Jim O'Callaghan wrote: Hi Thiago, Hi, Jim! I'm talking about the hibernate session - I'm injecting it into the constructor of Service B at bind time. I thought Tapestry would treat the service as a thread safe singleton and control access to method

RE: non thread safe access to session

2010-07-21 Thread Jim O'Callaghan
Hi Thiago, I'm talking about the hibernate session - I'm injecting it into the constructor of Service B at bind time. I thought Tapestry would treat the service as a thread safe singleton and control access to method calls on it accordingly? Am I getting confused on that? Regards, Jim.

Re: non thread safe access to session

2010-07-21 Thread Thiago H. de Paula Figueiredo
Are you talking about Tapestry sessions or Hibernate sessions? Hibernate sessions should never be used at the same time by more than one thread. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnolo

Re: T5: CMS integration - multiple templates single controller?

2010-07-21 Thread Thiago H. de Paula Figueiredo
Take a look at these past discussions: http://old.nabble.com/Tapestry-Templates-%2B-Scripting-Language-(CMS)-to27191065s302.html#a27191192 http://old.nabble.com/How-to-load-tml-files-from-the-filesystem-instead-of-classpath--tp28462363s302p28469434.html -- Thiago H. de Paula Figueiredo Independ

non thread safe access to session

2010-07-21 Thread Jim O'Callaghan
I have a service (service A) that creates some sample data, consisting of a reasonably detailed object graph where all the relations are cascaded. This service makes use of another service (service B) which manages the save of the parent entity. Service B has the hibernate session injected at bin

Re: T5: CMS integration - multiple templates single controller?

2010-07-21 Thread Howard Lewis Ship
The tapx library includes a dynamic templating component that is probably perfect for your needs. Unfortunately, the documentation for tapx isn't building lately, so it's a challenge to know about it. I'll try and work on that over the next couple of days. On Wed, Jul 21, 2010 at 8:00 AM, Adam Z

Re: Lots of Tapestry problems - quickstart and tutorial

2010-07-21 Thread Howard Lewis Ship
We really are right on the verge of a big renewal of the documentation. Try to be patient ... it's going to be a huge improvement. On Wed, Jul 21, 2010 at 5:13 AM, Newham, Cameron wrote: > Hi, > > > > I've been away from Tapestry for quite a while and haven't done any > serious Tapestry stuff for

T5: CMS integration - multiple templates single controller?

2010-07-21 Thread Adam Zimowski
One of the big features of our current Struts-based app (we are porting to T5), is the integration with content management system (we use RedDot). What we do currently, is we have a single Struts action, which inspects query parameter for CMS page, and dynamically streams the markup for that page (

Re: Lots of Tapestry problems - quickstart and tutorial

2010-07-21 Thread Andreas Andreou
Even better to use mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org We've tried to move stuff away from formos infrastructure As for importing the project into eclipse, another option is the m2eclipse plugin On Wed, Jul 21, 2010 at 15:19, Chris Mylonas wrote: > Try this mate

Re: tapestry validation queries?

2010-07-21 Thread Thiago H. de Paula Figueiredo
On Wed, 21 Jul 2010 03:42:17 -0300, Chris Mylonas wrote: Hi Everyone, Hi! It's something I'll probably look at getting used to. Is there a "global" way of configuring validation? e.g. all strings within forms will be required and they'll need to be between 5 and 10 characters. Jus

Re: tapestry validation queries?

2010-07-21 Thread Pablo dos Reis
Hi Chris, > Is there a difference between @Validate and t:validate in the tml? Do both > methods create the javascript unFocus pop up? > > To the second question see the property clientValidation from form [0]. But the other issues I will leave for the more experienced. [0] http://tapestry.ap

Re: Lots of Tapestry problems - quickstart and tutorial

2010-07-21 Thread Chris Mylonas
Try this mate mvn archetype:generate -DarchetypeCatalog=http://tapestry.formos.com/maven-repository 1: http://tapestry.formos.com/maven-repository -> quickstart (Tapestry 5.1.0.5 Quickstart Project) Choose a number: (1): 1 Define value for groupId: : org.example Define value for artifactId

Lots of Tapestry problems - quickstart and tutorial

2010-07-21 Thread Newham, Cameron
Hi, I've been away from Tapestry for quite a while and haven't done any serious Tapestry stuff for at least 9 months. I have come back to find everything broken and I feel like a complete newbie . Could someone set me straight. Problem 1 (which I have solved) is that I found Maven refused,

Re: Best Approach to retrieve a session ID in Tapestry 5.1

2010-07-21 Thread Christian Riedel
I think your approach is ok. The reason for the wrapper objects are (I think) to provide some additional functionality such as "Session#isInvalidated" and some clustering optimizations. If you call Session#invalidate the session object remembers it so that you can ask isInvalidated later, but t

Best Approach to retrieve a session ID in Tapestry 5.1

2010-07-21 Thread Mark Heimann
Hi everyone, I was wondering what would be the best approach to retrieve a session ID using Tapestry 5.1. My understanding is that the wrappers Tapestry creates around the HttpSession object does not expose a getId() method that would return a string representation of the session to me. I have

Re: directly return an image from Tapestry

2010-07-21 Thread Peter Stavrinides
> Just return it in the page's onActivate() method. Just be careful of this approach, its fine for an image or two, but anything more may generate a lot of requests and cause performance problems in larger pages. - Original Message - From: "Thiago H. de Paula Figueiredo" To: "Tapestry

RE: redirecting from an ajax event listener

2010-07-21 Thread Jim O'Callaghan
As an alternative I think you contribute your own access control dispatcher: AppModule.java . . . public void contributeMasterDispatcher( OrderedConfiguration configuration, @InjectService("AccessControlDispatcher") Dispatcher accessController)

tapestry 5.2

2010-07-21 Thread Sha Aith
When will a stable version of Tapestry 5.2 be released? -- View this message in context: http://old.nabble.com/tapestry-5.2-tp29222616p29222616.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubs

Re: redirecting from an ajax event listener

2010-07-21 Thread Paul Stanton
Thanks Kalle, The tynamo plugin does exactly what i need. regards, paul. Kalle Korhonen wrote: You can implement onException() to catch exceptions thrown from page event handlers (see http://tapestry.apache.org/tapestry5.1/guide/event.html), or, though I know you don't like this, for handling