Re: session expired error

2010-04-22 Thread Kristian Marinkovic
it took me some time to realize you're using Tapestry 4 please add the version number next time. there are basically two simple ways to influence the session expiration: 1) change the timeout in your web.xml 10 2) create a component, that is placed on every

session expired error

2010-04-22 Thread asianCoolz
Is below error caused by session expired http://utilitybase.com/paste/29788 if yes, how to extend the tapestry user session? or better way to resolve this? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For ad

Re: Menu nesting problem

2010-04-22 Thread Thiago H. de Paula Figueiredo
On Thu, 22 Apr 2010 19:36:11 -0300, Pierce T. Wetter III wrote: Menus are inherently recursive. To avoid problems with Tapestry and recursion, I figured out I could setup things this way, if the currentMenu has a list of its ancestors: For anything recursive, the best way of implementing

Menu nesting problem

2010-04-22 Thread Pierce T. Wetter III
Menus are inherently recursive. In order to generate ours, I need to generate a series of UL and LI tags with class="current" on the menu for the current page, and class="currentAncestor" for the ancestors of the current page. Example: Top Level

Re: T5.1 Setters returning value

2010-04-22 Thread Inge Solvoll
Try decorating instead of overriding. Could require less copying? On Thu, Apr 22, 2010 at 3:53 PM, paha wrote: > > well, the solution is almost perfect now. "almost" - because i have to > completely duplicate the code of PropertyAccessImpl replacing 2 calls to > Introspector.getBeanInfo buried i

Add parameter to a generated redirect link

2010-04-22 Thread spiderbarker
If I have a page that includes a passed parameter and that page has a form, when a validation error occurs the redirect link no longer contains the parameter in the query string of the original URL. For example: This URL brings up a form: http://example.com/Item?itemno=1251092 If the user click

Re: About event handling in Layout component

2010-04-22 Thread Thiago H. de Paula Figueiredo
On Thu, 22 Apr 2010 15:45:53 -0300, Raul Raja Martinez wrote: Yes if the body of a Layout component is considered a child component of the Layoutand all events triggered from components that are children would pass through Layout as well when bubbling up. Right. If that was the case firin

Re: About event handling in Layout component

2010-04-22 Thread Raul Raja Martinez
2010/4/22 Thiago H. de Paula Figueiredo : > On Thu, 22 Apr 2010 15:20:13 -0300, Raul Raja Martinez > wrote: > >> Thanks Thiago, Makes sense, >> >> What would be the right pattern If I have something like... >> >> PageA >>  - Layout >>  - Button > > Wouldn't it be > > PageA >  - Layout >  - - Butto

Re: About event handling in Layout component

2010-04-22 Thread Norman Franke
To work around in various odd situations, a component can handle its event and then issue another event that will percolate up to the parent components. Plus it can be given a better name and even pass extra parameters. Norman Franke Answering Service for Directors, Inc. www.myasd.com On

Re: About event handling in Layout component

2010-04-22 Thread Thiago H. de Paula Figueiredo
On Thu, 22 Apr 2010 15:20:13 -0300, Raul Raja Martinez wrote: Thanks Thiago, Makes sense, What would be the right pattern If I have something like... PageA - Layout - Button Wouldn't it be PageA - Layout - - Button ? Image both Button and OtherButton are components and that Layout

Re: About event handling in Layout component

2010-04-22 Thread Raul Raja Martinez
Thanks Thiago, Makes sense, What would be the right pattern If I have something like... PageA - Layout - Button PageB - Layout - OtherButton Image both Button and OtherButton are components and that Layout has a Growl notification system. I want the growl notification showing up a message w

Re: Spring Properties No Longer Work

2010-04-22 Thread Igor Drobiazko
I've fixed the issue yesterday. Unfortunately hudson took too long to trigger the build and upload the resent snapshots. The build was completed successfully today at 5:30 pm. Try the recent snapshots and report if the issue still exists. On Thu, Apr 22, 2010 at 6:46 PM, Brian Heston wrote: > Th

Re: About event handling in Layout component

2010-04-22 Thread Thiago H. de Paula Figueiredo
On Thu, 22 Apr 2010 14:40:26 -0300, Raul Raja Martinez wrote: Hi, Hi! Is it possible to handle events inside components that have been triggered by other events? Events are triggered by components, not by events themselves. If a page does not handle an event wouldn't that event be bub

About event handling in Layout component

2010-04-22 Thread Raul Raja Martinez
Hi, We have several pages that contain a Layout component wrapping the context of a page. Also those pages have components that trigger events. We would like to handle some of the events in the Layout component. The docs state that for Event Bubbling "The event will bubble up the hierarchy, until

Spring Properties No Longer Work

2010-04-22 Thread Brian Heston
The change requested in https://issues.apache.org/jira/browse/TAP5-1077 breaks existing functionality for Spring to load properties. I've added comments and supporting files to the issue, but I didn't see a way to reopen it so I wanted to make sure people knew. If you've updated tapestry-sprin

Re: Integrating Hibernate Shards

2010-04-22 Thread Christophe Cordenier
hi We have started to write a contribution to let Spring configure hibernate, tx... and let Tapestry services be in the same transaction when calling data layer, it's hosted at http://github.com/spreadthesource/tapestry5-spring-tx See the test application to see how it works. It still not docume

Integrating Hibernate Shards

2010-04-22 Thread Stefan Schuetz
Hi, i'm looking for a way to integrate Hibernate Shards into my T5 app. A switch to JPA is not an option, we have to much hibernate specific stuff (queries, mappings, etc). So i think the shortest path would be to override the "tapestry-core SessionFactory providing classes" in some way. At th

Re: [T5.1] How to add a Message Catalog to a Service

2010-04-22 Thread Howard Lewis Ship
That's not currently supported. I'm expecting to extend the concept of the "global" message catalog to be a compendium of multiple resources, including WEB-INF/app.properties but also contributions from libraries. It may replace the current ValidationMessages mechanism. On Thu, Apr 22, 2010 at 6:

Re: T5.1 Setters returning value

2010-04-22 Thread paha
well, the solution is almost perfect now. "almost" - because i have to completely duplicate the code of PropertyAccessImpl replacing 2 calls to Introspector.getBeanInfo buried inside private methods :) here is a service override and final class public static void contributeServiceOverride(Mapped

Re: T5.1 Setters returning value

2010-04-22 Thread paha
Inge Solvoll-2 wrote: > > Sounds like you did a ServiceOverride without actually realizing it > yourself > :) > well i was pretty sure i'm reinventing some wheels :) . of course i wanted > to do a service override as soon as i realized that PropertyAccess is > introduced via ioc Inge Solvoll

[T5.1] How to add a Message Catalog to a Service

2010-04-22 Thread Everton Agner
Hi, I want to develop a service with it's own Message Catalog, without depending on a Page's or the "Global" App message catalog. How can I achieve that? Thanks! - Everton

Re: T5.1.0.5 Quickstart auto-reload

2010-04-22 Thread Jeanne Rash
That did the trick! What a great feature :) On Wed, Apr 21, 2010 at 11:07 PM, Thiago H. de Paula Figueiredo wrote: > On Thu, 22 Apr 2010 00:57:26 -0300, Jeanne Rash > wrote: > >> The /src/main/resources where indeed excluded from copy to the classes >> folder.  Thanks for that tip. > > :) > >>

Re: T5.1 Setters returning value

2010-04-22 Thread Inge Solvoll
Sounds like you did a ServiceOverride without actually realizing it yourself :) And you have an excellent solution to your problem. Here is a link that explains how to not do it using a very very ugly hack :) http://tapestry.apache.org/tapestry5.1/tapestry-ioc/cookbook/override.html On Thu, Apr

Re: T5.1 Setters returning value

2010-04-22 Thread paha
Solved the problem with one very very nasty hack, but if somebody interested: i commented the ioc binding for PropertyAccess implementation in org.apache.tapestry5.ioc.services.TapestryIOCModule // binder.bind(PropertyAccess.class, PropertyAccessImpl.class); then i introduced an own implementat

Re: T5.1 Setters returning value

2010-04-22 Thread Geoff Callender
?? What do you mean? On 22/04/2010, at 5:59 AM, Yury Luneff wrote: >> Tapestry follows the definition of JavaBeans properties, set by Sun, > > isn't "isSmth" and "setSmth" a standard for boolean properties? well, > tapestry seeks "setSmth" disregarding the type. > > Maybe, it is an old holywar

Re: T5.1 Setters returning value

2010-04-22 Thread paha
Howard Lewis Ship wrote: > > Tapestry uses the standard Introspector object to identify > properties. > Can you give me a hint, how i can change this? It is a PropertyAccessImpl class, that is doing the magic, isn't? Is it possible to replace this class via config? Or is it the only way - t

Re: T5.1 Setters returning value

2010-04-22 Thread paha
Howard Lewis Ship wrote: > > Tapestry follows the definition of JavaBeans properties, set by Sun > Well, Spring3 BeanUtils.getPropertyDescriptors(User.class) returns all property descriptions with setters even if they are not void. Now i have to either give up using setter chaining which is ve