T5 ASO cannot have a non default constructor in 5.0.11?

2008-05-11 Thread Martin Grotzke
Hi, I'm just upgrading our app from 5.0.10-SNAPSHOT to 5.0.11 and get exceptions for ASOs that have a non default constructor (additionally to the default constructor): Caused by: java.lang.RuntimeException: Error invoking constructor

Re: T5 ASO cannot have a non default constructor in 5.0.11?

2008-05-11 Thread Filip S. Adamsen
Hi, Tapestry is trying to inject services into your ASO's constructor. In 5.0.12-SNAPSHOT you can put @Inject on the constructor Tapestry should use when auto-instantiating. Until you can upgrade to 5.0.12 I guess a workaround would be to contribute and ApplicationStateCreator for your ASO.

Re: T5 ASO cannot have a non default constructor in 5.0.11?

2008-05-11 Thread Martin Grotzke
On Sun, 2008-05-11 at 15:13 +0200, Filip S. Adamsen wrote: Hi, Tapestry is trying to inject services into your ASO's constructor. In 5.0.12-SNAPSHOT you can put @Inject on the constructor Tapestry should use when auto-instantiating. Ok, thanx! This will solve our issue when we can upgrade

Re: T5 ASO cannot have a non default constructor in 5.0.11?

2008-05-11 Thread Filip S. Adamsen
You can still use an ApplicationStateCreator. Just instantiate the ASO in the creator and set the values wherever you want after its creation. -Filip On 2008-05-11 16:12, Martin Grotzke wrote: On Sun, 2008-05-11 at 15:13 +0200, Filip S. Adamsen wrote: Hi, Tapestry is trying to inject

Re: T5 ASO cannot have a non default constructor in 5.0.11?

2008-05-11 Thread Martin Grotzke
On Sun, 2008-05-11 at 16:15 +0200, Filip S. Adamsen wrote: You can still use an ApplicationStateCreator. Just instantiate the ASO in the creator and set the values wherever you want after its creation. Ha, you're right, I simply want to invoke the default constructor - I forgot this ;) Thanx

Re: change persist property value in component

2008-05-11 Thread haipeng du
Do you have guide for Tapestry 4? Thanks. On Sat, May 10, 2008 at 2:46 PM, Toby Hobson [EMAIL PROTECTED] wrote: Do you want to change the value of a persistent property? Many methods are called during the lifecycle of a page, see

[ANN] New article about Tapestry 5

2008-05-11 Thread Renat Zubairov
Hello All, My self and Igor Drobiazko are proud to present our new article about Tapestry 5: Tapestry for Nonbelievers published on InfoQ http://www.infoq.com/articles/tapestry5-intro Special thanks to Howard in helping with the article and creating such a great tool :) -- Best regards, Renat

Re: [ANN] New article about Tapestry 5

2008-05-11 Thread Toby Hobson
Great article guys - well done! Toby - Original Message From: Renat Zubairov [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Cc: Igor Drobiazko [EMAIL PROTECTED] Sent: Sunday, 11 May, 2008 7:58:50 PM Subject: [ANN] New article about Tapestry 5 Hello All, My self and Igor

Disable / Hide parts of a Form

2008-05-11 Thread Peer Brink
Hi everybody, I need to react on form-input by hiding / disabling and unhiding / enabeling parts of the form while the user enters data to that form. Example: the users chooses email as communication-method by cklicking the related radio-button. In this case a TextField for the email-address

Re: [ANN] New article about Tapestry 5

2008-05-11 Thread dhning
Great article and help us newbie much. Thank you! DH - Original Message - From: Renat Zubairov [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Cc: Igor Drobiazko [EMAIL PROTECTED] Sent: Monday, May 12, 2008 2:58 AM Subject: [ANN] New article about Tapestry 5 Hello