Re: Customising T5 URL Encoding

2010-06-19 Thread Nicolas Bouillon
The Tapestry URL encoding is not a problem for me in general, just for one use case when i wanted to migrate a site to tapestry and keeping the same URL (with accents, spaces, dashes, underscores and so on). On Fri, 18 Jun 2010 17:20:36 -0700, Howard Lewis Ship wrote: > Tapestry does its own enco

Re: Wanted: example of AJAX in a client-side validator

2010-06-19 Thread Geoff Callender
Surely someone has an example of this? On 18/06/2010, at 12:51 PM, Geoff Callender wrote: > Thanks, Thiago, but it lacks AJAX. I'd like the validator to behave like any > other client-side validator except that it asks the server to help, eg. to > validate that a name has not already been used.

Re: T5: Using the strategy pattern with components.

2010-06-19 Thread Thiago H. de Paula Figueiredo
On Sat, 19 Jun 2010 19:09:47 -0300, Inge Solvoll wrote: Thanks! You're welcome! Don't see how ComponentSource helps, how does it get me to the point where I can retrieve a named block from a page/component? Description in Slashdot style*: 1) Use ComponentSource.getPage(). It will retu

Re: T5: Using the strategy pattern with components.

2010-06-19 Thread Inge Solvoll
Thanks! Don't see how ComponentSource helps, how does it get me to the point where I can retrieve a named block from a page/component? On Sat, Jun 19, 2010 at 7:43 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Sat, 19 Jun 2010 13:52:04 -0300, Inge Solvoll > wrote: > > Bee

Re: BUG: T5.1/IOC: dropped exception

2010-06-19 Thread Howard Lewis Ship
On Sat, Jun 19, 2010 at 7:25 AM, Robert Hailey wrote: > > On Jun 18, 2010, at 5:27 PM, Thiago H. de Paula Figueiredo wrote: > >> On Fri, 18 Jun 2010 19:11:02 -0300, Robert Hailey >> wrote: >> >>> org.apache.tapestry5.ioc.RegistryBuilder.java >>> around line #153 >>> author intends to set exceptio

Re: T5: Using the strategy pattern with components.

2010-06-19 Thread Thiago H. de Paula Figueiredo
On Sat, 19 Jun 2010 13:52:04 -0300, Inge Solvoll wrote: Been doing a lot of searching today to find leads, and I think I got something in BeanBlockOverrideSourceImpl. That's where I learned how the BeanEditor/BeanEditSource blocks work. :) Using PageRequestCache and page.getRootElement().g

Tapestry Hibernate - Transaction starts on second attempt

2010-06-19 Thread Stephan Schwab
Hi all! I'm using Tapestry Hibernate in a sample project and am experiencing some strange behavior. The first time the user of my webapp is trying to change data or save it to the database, it fails telling me that the transaction has not been started. After this first hickup all subsequent opera

Re: T5: Using the strategy pattern with components.

2010-06-19 Thread Inge Solvoll
Been doing a lot of searching today to find leads, and I think I got something in BeanBlockOverrideSourceImpl. Using PageRequestCache and page.getRootElement().getBlock(blockId) seems to be a promising lead. This way I can have a Strategy service that returns the page name that contains display bl

Re: BUG: T5.1/IOC: dropped exception

2010-06-19 Thread Robert Hailey
On Jun 18, 2010, at 5:27 PM, Thiago H. de Paula Figueiredo wrote: On Fri, 18 Jun 2010 19:11:02 -0300, Robert Hailey wrote: org.apache.tapestry5.ioc.RegistryBuilder.java around line #153 author intends to set exception as cause but feeds it into format arguments Please post it in JIRA, as

T5: Using the strategy pattern with components.

2010-06-19 Thread Inge Solvoll
Hi! I'm trying to migrate our company's software over to a more plugin oriented architecture. So far I've come up with some services that utilize the Strategy pattern to produce information about different modules in our system, without the core module knowing anything about their implementation.