How to add new entries to the global message catalog

2009-06-23 Thread P . Stavrinides
Hi, Is it possible to add and remove entries from the global message catalog? I thought of extending AbstractMessages with my own implementation since I couldn't find a way, but even if I do this how do I get Tapestry to detect / reconstruct the relevant properties map in the registry? PS: If

Re: Type-safe PageLink version

2009-06-23 Thread Sergey Didenko
Vjeran, thanks a lot. I am really surprised to see that line "Link link = pageRenderLinkSource.createPageRenderLink( page.getClass() );" indeed passes page context! I see this is documented http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/services/PageRenderLinkSource.html

Re: Re: [T5.1] @SessionState an generic pages

2009-06-23 Thread Thiago H. de Paula Figueiredo
Em Tue, 23 Jun 2009 17:32:25 -0300, nille hammer escreveu: Hi Thiago, Hi Nille! Hi Hammer! :) Friends call me nille. Just joking. :P Hey! That's my open source code being used by someone besides me! Nice. :D Just trying to learn from the masters ;-) I'm not a master, just someone

Re: [5.1.0.5] Saving form state for later re-population of field values

2009-06-23 Thread Thiago H. de Paula Figueiredo
Why don't you use @SessionState in the complex object you're editing? When done, persist it to the database and then clear the object in @SessionState. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago

[5.1.0.5] Saving form state for later re-population of field values

2009-06-23 Thread Felix Gonschorek
Hi all, i am trying to accomplish the following: While editing a rather complex business entity bean in an application, one has to leave the main editing form of the entity bean and go to a subpage to create or select related entity beans, that are connected with the primary bean. I want to

Re: Re: Re: [T5.1] @SessionState an generic pages

2009-06-23 Thread nille hammer
Hi Martin, thanks for the hint. > > protected Class getValueClass() > { > return (Class) ((ParameterizedType) > getClass().getGenericSuperclass()).getActualTypeArguments()[0]; > } > > > I use something similar in DAOs, idea came from here: > https://www.hibernate.org/328.html Similar to t

Re: Re: [T5.1] @SessionState an generic pages

2009-06-23 Thread Martin Strand
On Tue, 23 Jun 2009 22:32:25 +0200, nille hammer wrote: > That's the trick! Thinking about your hint I rewrote GenericEntityPage a > bit. Code follows: > > /** >* @return the page to be forwarded to in case value does not exist as > SSO >*/ > protected abstract Obje

Re: Re: [T5.1] @SessionState an generic pages

2009-06-23 Thread nille hammer
Hi Thiago, > Hi Hammer! :) Friends call me nille. > Hey! That's my open source code being used by someone besides me! Nice. :D Just trying to learn from the masters ;-) > .Maybe the solution to what you want to do is to use > ApplicationStateManager directly. That's the trick! Thinking about y

Re: recursion in PropertyConduitSource?

2009-06-23 Thread Howard Lewis Ship
Try using the correct dependency: antlr-runtime-3.1.1. On Tue, Jun 23, 2009 at 10:35 AM, Christine wrote: > replying to an old reply, about an error I get when upgrading to Tapestry > 5.1 (upgrade consisted of replacing the three Tapeestry lib files that I > have in my project by their 5.1 versi

Re: recursion in PropertyConduitSource?

2009-06-23 Thread Christine
replying to an old reply, about an error I get when upgrading to Tapestry 5.1 (upgrade consisted of replacing the three Tapeestry lib files that I have in my project by their 5.1 versions): This is the first error I get in my Eclipse console: java.lang.NoClassDefFoundError: org/antlr/runtime/C

Re: t5: why always downloading these files?

2009-06-23 Thread Ivan Dubrov
Angelo Chen wrote: Hi, every time when I run the progam, maven always displays: Downloading: http://snapshots.repository.codehaus.org/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA.pom Downloading: http://repo1.maven.org/maven2/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA.pom any idea how t

Re: with JSF 2.0 spec out, whats the future?

2009-06-23 Thread Howard Lewis Ship
JSF continues to chase its own tail, and to chase Tapestry 2.0's tail. JSF is a standard and therefore very, very slow moving. On Mon, Jun 22, 2009 at 11:13 PM, hari ks wrote: > > Will JSF 2.0 with five primary goals be a winner? > 1. make custom components much easier to develop, > 2. add firs

Re: T5 Hibernate listener crash problem - problem with classloader?

2009-06-23 Thread Thiago H. de Paula Figueiredo
On Tue, Jun 23, 2009 at 9:17 AM, "Max Weißböck (info)" wrote: > service 'HibernateSessionSource'): Unable to instantiate specified event > (pre-insert) listener class: net.weissboeck.gimmo.entities.AuditListener Couldn't you post the full stack trace? -- Thiago ---

T5 Hibernate listener crash problem - problem with classloader?

2009-06-23 Thread Max Weißböck (info)
If I configuer my AuditListener in the hibernate.cfg.xml file like this class="net.weissboeck.gimmo.entities.AuditListener"/> im getting the following error after first acces to database: [ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception:

Re: t5: why always downloading these files?

2009-06-23 Thread Juan E. Maya
Hi Angelo, as far i know Maven does this to check if there were changes in the dependencies. to avoid this u could run maven in offline mode: mvn -o or u can play with the property: updatePolicy. U can see more details here: http://maven.apache.org/pom.html On Tue, Jun 23, 2009 at 12:11 PM, Ang

t5: why always downloading these files?

2009-06-23 Thread Angelo Chen
Hi, every time when I run the progam, maven always displays: Downloading: http://snapshots.repository.codehaus.org/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA.pom Downloading: http://repo1.maven.org/maven2/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA.pom any idea how to stop this? Thanks,

Tapestry course in London

2009-06-23 Thread Newham, Cameron
I just wondered if anyone else from this list is going to the Tapestry course to be held in London in August at Skills Matter? ** Experience the British Library online at www.bl.uk The British Library's new interactive Ann

Re: Best practice unit testing pages and components

2009-06-23 Thread Paul Field
Hi Kai, > > How would I test a page or a component when a @Parameter is not accessible > > because of its need to be a private variable? As well as tests directly on the page/component object that you can do with Tapestry's TestBase class, you can also write tests that run a page through one o