Re: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-29 Thread zack1403

Alright this is the simplest setup I could do.  This is way simpler than even
the example thats in the nightly docs.  I am getting the same error.  If
someone could please help me out as to what I am missing here I would be
eternally grateful.  This is the complete source, there is no other source
involved in this except what I am pasting.

Tml:

html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;

t:form
t:ajaxformloop source=strings value=currentString
t:textfield t:id=thefield value=currentString/
t:removeRowLinkBye!/t:removeRowLink
/t:ajaxformloop
/t:form

/html

Page:

import java.util.ArrayList;
import java.util.List;

import org.apache.tapestry5.annotations.Component;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.corelib.components.TextField;

public class Test {

@Property
private ListString strings;

@Property
private String currentString;

@Component
private TextField theField;

void onActivate() {
strings = new ArrayListString();
strings.add(Hello);
strings.add(Heres a tester);
}

String onAddRow() {
return Added!;
}

void onRemoveRow(String toRemove) {
strings.remove(toRemove);
}
}

Sorry to be posting so much, I've just been pulling out my hair on this and
(as I'm sure you all understand) we have a very tight deadline to meet. 
Thank you all again for all the help!

Zack
-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23291616.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-29 Thread DH
Hi, Zack

I just tried your example, but nothing wrong. Mine is 5.1.0.3.

DH
- Original Message - 
From: zack1403 zack.mann...@gmail.com
To: users@tapestry.apache.org
Sent: Wednesday, April 29, 2009 2:56 PM
Subject: Re: AjaxFormLoop Exception on 5.1.0.2 upgrade


 
 Alright this is the simplest setup I could do.  This is way simpler than even
 the example thats in the nightly docs.  I am getting the same error.  If
 someone could please help me out as to what I am missing here I would be
 eternally grateful.  This is the complete source, there is no other source
 involved in this except what I am pasting.
 
 Tml:
 
 html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
 
 t:form
 t:ajaxformloop source=strings value=currentString
 t:textfield t:id=thefield value=currentString/
 t:removeRowLinkBye!/t:removeRowLink
 /t:ajaxformloop
 /t:form
 
 /html
 
 Page:
 
 import java.util.ArrayList;
 import java.util.List;
 
 import org.apache.tapestry5.annotations.Component;
 import org.apache.tapestry5.annotations.Property;
 import org.apache.tapestry5.corelib.components.TextField;
 
 public class Test {
 
@Property
private ListString strings;
 
@Property
private String currentString;
 
@Component
private TextField theField;
 
void onActivate() {
 strings = new ArrayListString();
 strings.add(Hello);
 strings.add(Heres a tester);
}
 
String onAddRow() {
 return Added!;
}
 
void onRemoveRow(String toRemove) {
 strings.remove(toRemove);
}
 }
 
 Sorry to be posting so much, I've just been pulling out my hair on this and
 (as I'm sure you all understand) we have a very tight deadline to meet. 
 Thank you all again for all the help!
 
 Zack
 -- 
 View this message in context: 
 http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23291616.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


Re: How to download 5.1 compatible Chenille kit?

2009-04-29 Thread Hugo Palma
I'm using the Editor component too, but it stopped working with
Tapestry 5.1.0.4.
I get a javascript error as soon as the component tries to render itself:

Error: missing ; before statement
Source File: http://localhost:8080/classys/assets/tapestry/5.1.0.4/tapestry.js
Line: 301, Column: 4
Source Code:
var editor_editor-120f10dbe41 = new FCKeditor('editor-120f10dbe41');

Well, i'm off to build 1.1.0-SNAPSHOT and see if it works with 5.1.0.4.


On Fri, Apr 24, 2009 at 1:13 AM, Thiago H. de Paula Figueiredo
thiag...@gmail.com wrote:
 I'm late in this discussion, but I'm using ChenilleKit (just the Editor
 component already) 1.0 with Tapestry 5.1.0.3 and it works without problems.
 I just added an exclusion for Tapestry in the ChenilleKit Maven Dependency.

 By the way, why Chenillekit has this name? Just curious. :)

 Em Thu, 23 Apr 2009 21:05:26 -0300, Geoff Callender
 geoff.callender.jumpst...@gmail.com escreveu:

 Please send them to me too!

 Geoff
 http://jumpstart.doublenegative.com.au

 On 21/04/2009, at 3:43 AM, Inge Solvoll wrote:

 Ok, I guess I'll just sit down and wait for the official 5.1 release for
 all
 the libraries I need :)

 Anyway, if anyone feels like sending me their T5.1-compatible
 chenillekit-core.jar and chenillekit-tapestry.jar in a zip file, I would
 be
 very happy. I know, lazy guy trying to get other people to do his work.
 Just
 ignore me :)

 Inge

 On Mon, Apr 20, 2009 at 10:47 AM, Massimo Lusetti
 mluse...@gmail.comwrote:

 On Mon, Apr 20, 2009 at 10:22 AM, Inge Solvoll inge.tapes...@gmail.com
 wrote:

 Hi!

 Another stupid question: How do I download the latest (5.1 compatible)
 snapshot build of chenillekit? I'm not using maven. I managed to track

 down

 the following, but I guess it is not the newest available:



 http://www.chenillekit.org/mvnrepo/snapshot/org/chenillekit/chenillekit-tapestry/1.0.1-SNAPSHOT/

 This is for Tapestry 5.0 branch, for the 5.1 (current trunk) you have
 to go with the Chenillekit Trunk which is 1.1.0-SNAPSHOT

 I looked around at tapestry.formos.com, but couldn't find anything.

 You're right. The whole stuff is at Tapestry360 (tapesty.formos.com)
 but we did not manage to have the migration complete, yet.
 You have to download and build your own. Sorry.

 Regards
 --
 Massimo
 http://meridio.blogspot.com

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 --
 Thiago H. de Paula Figueiredo
 Independent Java consultant, developer, and instructor
 Consultor, desenvolvedor e instrutor em Java
 http://www.arsmachina.com.br/thiago

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: How to download 5.1 compatible Chenille kit?

2009-04-29 Thread Peter Stavrinides

 I get a javascript error as soon as the component tries to render itself
Strange I don't get that?



- Original Message -
From: Hugo Palma hugo.m.pa...@gmail.com
To: Tapestry users users@tapestry.apache.org
Sent: Wednesday, 29 April, 2009 11:47:07 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: How to download 5.1 compatible Chenille kit?

I'm using the Editor component too, but it stopped working with
Tapestry 5.1.0.4.
I get a javascript error as soon as the component tries to render itself:

Error: missing ; before statement
Source File: http://localhost:8080/classys/assets/tapestry/5.1.0.4/tapestry.js
Line: 301, Column: 4
Source Code:
var editor_editor-120f10dbe41 = new FCKeditor('editor-120f10dbe41');

Well, i'm off to build 1.1.0-SNAPSHOT and see if it works with 5.1.0.4.


On Fri, Apr 24, 2009 at 1:13 AM, Thiago H. de Paula Figueiredo
thiag...@gmail.com wrote:
 I'm late in this discussion, but I'm using ChenilleKit (just the Editor
 component already) 1.0 with Tapestry 5.1.0.3 and it works without problems.
 I just added an exclusion for Tapestry in the ChenilleKit Maven Dependency.

 By the way, why Chenillekit has this name? Just curious. :)

 Em Thu, 23 Apr 2009 21:05:26 -0300, Geoff Callender
 geoff.callender.jumpst...@gmail.com escreveu:

 Please send them to me too!

 Geoff
 http://jumpstart.doublenegative.com.au

 On 21/04/2009, at 3:43 AM, Inge Solvoll wrote:

 Ok, I guess I'll just sit down and wait for the official 5.1 release for
 all
 the libraries I need :)

 Anyway, if anyone feels like sending me their T5.1-compatible
 chenillekit-core.jar and chenillekit-tapestry.jar in a zip file, I would
 be
 very happy. I know, lazy guy trying to get other people to do his work.
 Just
 ignore me :)

 Inge

 On Mon, Apr 20, 2009 at 10:47 AM, Massimo Lusetti
 mluse...@gmail.comwrote:

 On Mon, Apr 20, 2009 at 10:22 AM, Inge Solvoll inge.tapes...@gmail.com
 wrote:

 Hi!

 Another stupid question: How do I download the latest (5.1 compatible)
 snapshot build of chenillekit? I'm not using maven. I managed to track

 down

 the following, but I guess it is not the newest available:



 http://www.chenillekit.org/mvnrepo/snapshot/org/chenillekit/chenillekit-tapestry/1.0.1-SNAPSHOT/

 This is for Tapestry 5.0 branch, for the 5.1 (current trunk) you have
 to go with the Chenillekit Trunk which is 1.1.0-SNAPSHOT

 I looked around at tapestry.formos.com, but couldn't find anything.

 You're right. The whole stuff is at Tapestry360 (tapesty.formos.com)
 but we did not manage to have the migration complete, yet.
 You have to download and build your own. Sorry.

 Regards
 --
 Massimo
 http://meridio.blogspot.com

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 --
 Thiago H. de Paula Figueiredo
 Independent Java consultant, developer, and instructor
 Consultor, desenvolvedor e instrutor em Java
 http://www.arsmachina.com.br/thiago

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: How to download 5.1 compatible Chenille kit?

2009-04-29 Thread Hugo Palma
This only happens with the editor component. Are you using the editor
component with 5.1.0.4 and getting no errors ?
I've just tried using the latest 1.1.0-SNAPSHOT from Chenille kit but
i get the same error.

On Wed, Apr 29, 2009 at 9:52 AM, Peter Stavrinides
p.stavrini...@albourne.com wrote:

 I get a javascript error as soon as the component tries to render itself
 Strange I don't get that?



 - Original Message -
 From: Hugo Palma hugo.m.pa...@gmail.com
 To: Tapestry users users@tapestry.apache.org
 Sent: Wednesday, 29 April, 2009 11:47:07 GMT +02:00 Athens, Beirut, 
 Bucharest, Istanbul
 Subject: Re: How to download 5.1 compatible Chenille kit?

 I'm using the Editor component too, but it stopped working with
 Tapestry 5.1.0.4.
 I get a javascript error as soon as the component tries to render itself:

 Error: missing ; before statement
 Source File: http://localhost:8080/classys/assets/tapestry/5.1.0.4/tapestry.js
 Line: 301, Column: 4
 Source Code:
 var editor_editor-120f10dbe41 = new FCKeditor('editor-120f10dbe41');

 Well, i'm off to build 1.1.0-SNAPSHOT and see if it works with 5.1.0.4.


 On Fri, Apr 24, 2009 at 1:13 AM, Thiago H. de Paula Figueiredo
 thiag...@gmail.com wrote:
 I'm late in this discussion, but I'm using ChenilleKit (just the Editor
 component already) 1.0 with Tapestry 5.1.0.3 and it works without problems.
 I just added an exclusion for Tapestry in the ChenilleKit Maven Dependency.

 By the way, why Chenillekit has this name? Just curious. :)

 Em Thu, 23 Apr 2009 21:05:26 -0300, Geoff Callender
 geoff.callender.jumpst...@gmail.com escreveu:

 Please send them to me too!

 Geoff
 http://jumpstart.doublenegative.com.au

 On 21/04/2009, at 3:43 AM, Inge Solvoll wrote:

 Ok, I guess I'll just sit down and wait for the official 5.1 release for
 all
 the libraries I need :)

 Anyway, if anyone feels like sending me their T5.1-compatible
 chenillekit-core.jar and chenillekit-tapestry.jar in a zip file, I would
 be
 very happy. I know, lazy guy trying to get other people to do his work.
 Just
 ignore me :)

 Inge

 On Mon, Apr 20, 2009 at 10:47 AM, Massimo Lusetti
 mluse...@gmail.comwrote:

 On Mon, Apr 20, 2009 at 10:22 AM, Inge Solvoll inge.tapes...@gmail.com
 wrote:

 Hi!

 Another stupid question: How do I download the latest (5.1 compatible)
 snapshot build of chenillekit? I'm not using maven. I managed to track

 down

 the following, but I guess it is not the newest available:



 http://www.chenillekit.org/mvnrepo/snapshot/org/chenillekit/chenillekit-tapestry/1.0.1-SNAPSHOT/

 This is for Tapestry 5.0 branch, for the 5.1 (current trunk) you have
 to go with the Chenillekit Trunk which is 1.1.0-SNAPSHOT

 I looked around at tapestry.formos.com, but couldn't find anything.

 You're right. The whole stuff is at Tapestry360 (tapesty.formos.com)
 but we did not manage to have the migration complete, yet.
 You have to download and build your own. Sorry.

 Regards
 --
 Massimo
 http://meridio.blogspot.com

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 --
 Thiago H. de Paula Figueiredo
 Independent Java consultant, developer, and instructor
 Consultor, desenvolvedor e instrutor em Java
 http://www.arsmachina.com.br/thiago

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: How to download 5.1 compatible Chenille kit?

2009-04-29 Thread Peter Stavrinides
I am using Tapestry 5.1.0.4 with ChenilleKit 1.0.0 and using the editor in a 
few places, with no error?

Peter

-- 
If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Please visit http://www.albourne.com/email.html for important 
additional terms relating to this e-mail.

- Original Message -
From: Hugo Palma hugo.m.pa...@gmail.com
To: Tapestry users users@tapestry.apache.org
Sent: Wednesday, 29 April, 2009 11:58:28 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: How to download 5.1 compatible Chenille kit?

This only happens with the editor component. Are you using the editor
component with 5.1.0.4 and getting no errors ?
I've just tried using the latest 1.1.0-SNAPSHOT from Chenille kit but
i get the same error.

On Wed, Apr 29, 2009 at 9:52 AM, Peter Stavrinides
p.stavrini...@albourne.com wrote:

 I get a javascript error as soon as the component tries to render itself
 Strange I don't get that?



 - Original Message -
 From: Hugo Palma hugo.m.pa...@gmail.com
 To: Tapestry users users@tapestry.apache.org
 Sent: Wednesday, 29 April, 2009 11:47:07 GMT +02:00 Athens, Beirut, 
 Bucharest, Istanbul
 Subject: Re: How to download 5.1 compatible Chenille kit?

 I'm using the Editor component too, but it stopped working with
 Tapestry 5.1.0.4.
 I get a javascript error as soon as the component tries to render itself:

 Error: missing ; before statement
 Source File: http://localhost:8080/classys/assets/tapestry/5.1.0.4/tapestry.js
 Line: 301, Column: 4
 Source Code:
 var editor_editor-120f10dbe41 = new FCKeditor('editor-120f10dbe41');

 Well, i'm off to build 1.1.0-SNAPSHOT and see if it works with 5.1.0.4.


 On Fri, Apr 24, 2009 at 1:13 AM, Thiago H. de Paula Figueiredo
 thiag...@gmail.com wrote:
 I'm late in this discussion, but I'm using ChenilleKit (just the Editor
 component already) 1.0 with Tapestry 5.1.0.3 and it works without problems.
 I just added an exclusion for Tapestry in the ChenilleKit Maven Dependency.

 By the way, why Chenillekit has this name? Just curious. :)

 Em Thu, 23 Apr 2009 21:05:26 -0300, Geoff Callender
 geoff.callender.jumpst...@gmail.com escreveu:

 Please send them to me too!

 Geoff
 http://jumpstart.doublenegative.com.au

 On 21/04/2009, at 3:43 AM, Inge Solvoll wrote:

 Ok, I guess I'll just sit down and wait for the official 5.1 release for
 all
 the libraries I need :)

 Anyway, if anyone feels like sending me their T5.1-compatible
 chenillekit-core.jar and chenillekit-tapestry.jar in a zip file, I would
 be
 very happy. I know, lazy guy trying to get other people to do his work.
 Just
 ignore me :)

 Inge

 On Mon, Apr 20, 2009 at 10:47 AM, Massimo Lusetti
 mluse...@gmail.comwrote:

 On Mon, Apr 20, 2009 at 10:22 AM, Inge Solvoll inge.tapes...@gmail.com
 wrote:

 Hi!

 Another stupid question: How do I download the latest (5.1 compatible)
 snapshot build of chenillekit? I'm not using maven. I managed to track

 down

 the following, but I guess it is not the newest available:



 http://www.chenillekit.org/mvnrepo/snapshot/org/chenillekit/chenillekit-tapestry/1.0.1-SNAPSHOT/

 This is for Tapestry 5.0 branch, for the 5.1 (current trunk) you have
 to go with the Chenillekit Trunk which is 1.1.0-SNAPSHOT

 I looked around at tapestry.formos.com, but couldn't find anything.

 You're right. The whole stuff is at Tapestry360 (tapesty.formos.com)
 but we did not manage to have the migration complete, yet.
 You have to download and build your own. Sorry.

 Regards
 --
 Massimo
 http://meridio.blogspot.com

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 --
 Thiago H. de Paula Figueiredo
 Independent Java consultant, developer, and instructor
 Consultor, desenvolvedor e instrutor em Java
 http://www.arsmachina.com.br/thiago

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: 

Re: How to download 5.1 compatible Chenille kit?

2009-04-29 Thread Hugo Palma
I've isolated the problem to using the editor inside the window component.
If i place the editor on a normal component or page it works fine.

On Wed, Apr 29, 2009 at 10:08 AM, Peter Stavrinides
p.stavrini...@albourne.com wrote:
 I am using Tapestry 5.1.0.4 with ChenilleKit 1.0.0 and using the editor in a 
 few places, with no error?

 Peter

 --
 If you are not an intended recipient of this e-mail, please notify the 
 sender, delete it and do not read, act upon, print, disclose, copy, retain or 
 redistribute it. Please visit http://www.albourne.com/email.html for 
 important additional terms relating to this e-mail.

 - Original Message -
 From: Hugo Palma hugo.m.pa...@gmail.com
 To: Tapestry users users@tapestry.apache.org
 Sent: Wednesday, 29 April, 2009 11:58:28 GMT +02:00 Athens, Beirut, 
 Bucharest, Istanbul
 Subject: Re: How to download 5.1 compatible Chenille kit?

 This only happens with the editor component. Are you using the editor
 component with 5.1.0.4 and getting no errors ?
 I've just tried using the latest 1.1.0-SNAPSHOT from Chenille kit but
 i get the same error.

 On Wed, Apr 29, 2009 at 9:52 AM, Peter Stavrinides
 p.stavrini...@albourne.com wrote:

 I get a javascript error as soon as the component tries to render itself
 Strange I don't get that?



 - Original Message -
 From: Hugo Palma hugo.m.pa...@gmail.com
 To: Tapestry users users@tapestry.apache.org
 Sent: Wednesday, 29 April, 2009 11:47:07 GMT +02:00 Athens, Beirut, 
 Bucharest, Istanbul
 Subject: Re: How to download 5.1 compatible Chenille kit?

 I'm using the Editor component too, but it stopped working with
 Tapestry 5.1.0.4.
 I get a javascript error as soon as the component tries to render itself:

 Error: missing ; before statement
 Source File: 
 http://localhost:8080/classys/assets/tapestry/5.1.0.4/tapestry.js
 Line: 301, Column: 4
 Source Code:
 var editor_editor-120f10dbe41 = new FCKeditor('editor-120f10dbe41');

 Well, i'm off to build 1.1.0-SNAPSHOT and see if it works with 5.1.0.4.


 On Fri, Apr 24, 2009 at 1:13 AM, Thiago H. de Paula Figueiredo
 thiag...@gmail.com wrote:
 I'm late in this discussion, but I'm using ChenilleKit (just the Editor
 component already) 1.0 with Tapestry 5.1.0.3 and it works without problems.
 I just added an exclusion for Tapestry in the ChenilleKit Maven Dependency.

 By the way, why Chenillekit has this name? Just curious. :)

 Em Thu, 23 Apr 2009 21:05:26 -0300, Geoff Callender
 geoff.callender.jumpst...@gmail.com escreveu:

 Please send them to me too!

 Geoff
 http://jumpstart.doublenegative.com.au

 On 21/04/2009, at 3:43 AM, Inge Solvoll wrote:

 Ok, I guess I'll just sit down and wait for the official 5.1 release for
 all
 the libraries I need :)

 Anyway, if anyone feels like sending me their T5.1-compatible
 chenillekit-core.jar and chenillekit-tapestry.jar in a zip file, I would
 be
 very happy. I know, lazy guy trying to get other people to do his work.
 Just
 ignore me :)

 Inge

 On Mon, Apr 20, 2009 at 10:47 AM, Massimo Lusetti
 mluse...@gmail.comwrote:

 On Mon, Apr 20, 2009 at 10:22 AM, Inge Solvoll inge.tapes...@gmail.com
 wrote:

 Hi!

 Another stupid question: How do I download the latest (5.1 compatible)
 snapshot build of chenillekit? I'm not using maven. I managed to track

 down

 the following, but I guess it is not the newest available:



 http://www.chenillekit.org/mvnrepo/snapshot/org/chenillekit/chenillekit-tapestry/1.0.1-SNAPSHOT/

 This is for Tapestry 5.0 branch, for the 5.1 (current trunk) you have
 to go with the Chenillekit Trunk which is 1.1.0-SNAPSHOT

 I looked around at tapestry.formos.com, but couldn't find anything.

 You're right. The whole stuff is at Tapestry360 (tapesty.formos.com)
 but we did not manage to have the migration complete, yet.
 You have to download and build your own. Sorry.

 Regards
 --
 Massimo
 http://meridio.blogspot.com

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 --
 Thiago H. de Paula Figueiredo
 Independent Java consultant, developer, and instructor
 Consultor, desenvolvedor e instrutor em Java
 http://www.arsmachina.com.br/thiago

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org


 -
 To unsubscribe, e-mail: 

Re: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-29 Thread Ulrich Stärk
Your exact same code is working fine using 5.1.0.5-SNAPSHOT on Jetty 
6.1.6 run from inside Eclipse. Could you elaborate on your environment? 
Also give removing and reinstalling all libs a try and make sure that 
there aren't multiple versions of the same lib in your classpath.


Uli


Am 29.04.2009 08:56 schrieb zack1403:

Alright this is the simplest setup I could do.  This is way simpler than even
the example thats in the nightly docs.  I am getting the same error.  If
someone could please help me out as to what I am missing here I would be
eternally grateful.  This is the complete source, there is no other source
involved in this except what I am pasting.

Tml:

html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;

t:form
t:ajaxformloop source=strings value=currentString
t:textfield t:id=thefield value=currentString/
t:removeRowLinkBye!/t:removeRowLink
/t:ajaxformloop
/t:form

/html

Page:

import java.util.ArrayList;
import java.util.List;

import org.apache.tapestry5.annotations.Component;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.corelib.components.TextField;

public class Test {

@Property
private ListString strings;

@Property
private String currentString;

@Component
private TextField theField;

void onActivate() {
strings = new ArrayListString();
strings.add(Hello);
strings.add(Heres a tester);
}

String onAddRow() {
return Added!;
}

void onRemoveRow(String toRemove) {
strings.remove(toRemove);
}
}

Sorry to be posting so much, I've just been pulling out my hair on this and
(as I'm sure you all understand) we have a very tight deadline to meet. 
Thank you all again for all the help!


Zack



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Rendering partial Components with Environmental support

2009-04-29 Thread Christian Senk

Hello,

i have several custom components. Like in forms, some components require 
that

they are nested another component. At the end it looks like:

t:map t:id=pMap [... some arguments ...] 
t:imageLayer name=terrain /
t:imageLayer name=scene /
/t:map

The communication between the components is like in forms with 
Environmental services
realized. The MapSupport.class is pushed in @BeginRender of 
Map-Component and
popped in @CleanupRender. t:imageLayer doesn't work without that 
environmental service.


In order to add AJAX support to the map component, an eventlink on the 
client side fires
an event in the Map-Component and i would like to return only the body 
of the Map-Component,
so only the body of the component would be rendered. The problem is, 
that there is no invocation
of the Render-Lifecycle methods in the Map-Component, so there is no 
MapSupport.


How could i add this Environmental service in order to render the body 
properly and remove

it after that, like in @CleanupRender. Or is there another way?

Thanks and Greetings :)

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Submit a form in a zone in a component

2009-04-29 Thread Thiago H. de Paula Figueiredo
Make sure the class whose objects are selected implement both
hashCode() and equals(). This is typical source of errors not only
with Tapestry, but with any collection as well.

-- 
Thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5] combination of linksubmit and submit fails

2009-04-29 Thread rolfst

Hi, thanx for your response.

The failure stated: object does not support this function.

Apparently it was a browser issue using ids and functions of the same name,
also did it have something to do with caching of my browser.
it retained an element with id submit. 
The javascript function of the linksubmit tried to call a function on this
element and that obvious failed.

this morning I tried to reproduce and everything went fine.


Howard Lewis Ship wrote:
 
 fails can mean many things.  What exactly does it do?
 
 On Tue, Apr 28, 2009 at 1:26 PM, Rolf Strijdhorst rol...@gmail.com
 wrote:
 Hi is there a way to put both a linksubmit and a submit component on a
 page?

 when i press the linksubmit it fails at the javascript with the line
 this.form.submit();

 onClick : function(event)7828 {
 7829 // Tapestry.debug(LinkSubmit #{id} clicked., this.element);
 7830
 7831 Event.stop(event);
 7832
 7833 var onsubmit = this.form.onsubmit;
 7834
 7835 if (onsubmit == undefined || onsubmit.call(window.document, event))
 7836 {
 7837 this.createHidden();
 7838 this.form.submit();
 7839 }
 7840
 7841 return false;
 7842 }
 7843});

 thanx,
 Rolf Strijdhorst

 
 
 
 -- 
 Howard M. Lewis Ship
 
 Creator of Apache Tapestry
 Director of Open Source Technology at Formos
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-T5--combination-of-linksubmit-and-submit-fails-tp23285402p23295863.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [Tapestry360]

2009-04-29 Thread Andy Pahne


Thank you...



Howard Lewis Ship schrieb:

I must not have deployed it previously (?). Just ran a deploy.

It's in http://tapestry.formos.com/maven-repository



On Tue, Apr 28, 2009 at 3:30 AM, Andy Pahne andy.pa...@gmail.com wrote:
  

Hello,

I am looking for the tapestry360-project in any maven repository. It appears
not to be available in http://tapestry.formos.com/maven-snapshot-repository

Or am I missing something?


my maven error message:
  Cannot find parent: com.formos.tapestry:tapestry360-project for project:
com.formos.tapestry:tapx-project:pom:1.0.0-SNAPSHOT for project
com.formos.tapestry:tapx-project:pom:1.0.0-SNAPSHOT


Andy


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org







  



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: InjectContainer and ProperyEditors

2009-04-29 Thread Howard Lewis Ship
It's not a bug, it accurately reflects the structure of the page and
the application.

What you should be saying is  that you need new API for your needs.

2009/4/29 José Paumard jose.paum...@orange.fr:
 Hello all,

 I'm trying to get a page from a component. I know two ways to do this :
 @Inject the ComponentResources and get the page from that object, or use the
 @InjectContainer to get it directly.

 Now my problem is the following : I am in a PropertyEditor, declared in an
 AppProperyEditor page. This component is used by the bean editor mechanism,
 and rendered in the page that holds the bean editor. The flaw is that in
 this case, the injected container is still the AppPropertyEditorPage,
 instead of the page that holds my bean editor.

 IMHO it's a bug, I dont see any use case where I would be interested in the
 AppPropertyEditor page.

 Is there a way to get the page that holds the bean editor when I am in a
 property editor component ?

 Thank you,

 José


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5] combination of linksubmit and submit fails

2009-04-29 Thread Howard Lewis Ship
Perhaps there's an issue there, were certain component ids should not
be allowed, as they will conflict on the client side. A global ban on
components named submit would address this issue. It's all too easy
to do, since the default id of a Submit component is submit.

On Wed, Apr 29, 2009 at 6:29 AM, rolfst rol...@gmail.com wrote:

 Hi, thanx for your response.

 The failure stated: object does not support this function.

 Apparently it was a browser issue using ids and functions of the same name,
 also did it have something to do with caching of my browser.
 it retained an element with id submit.
 The javascript function of the linksubmit tried to call a function on this
 element and that obvious failed.

 this morning I tried to reproduce and everything went fine.


 Howard Lewis Ship wrote:

 fails can mean many things.  What exactly does it do?

 On Tue, Apr 28, 2009 at 1:26 PM, Rolf Strijdhorst rol...@gmail.com
 wrote:
 Hi is there a way to put both a linksubmit and a submit component on a
 page?

 when i press the linksubmit it fails at the javascript with the line
 this.form.submit();

 onClick : function(event)7828 {
 7829 // Tapestry.debug(LinkSubmit #{id} clicked., this.element);
 7830
 7831 Event.stop(event);
 7832
 7833 var onsubmit = this.form.onsubmit;
 7834
 7835 if (onsubmit == undefined || onsubmit.call(window.document, event))
 7836 {
 7837 this.createHidden();
 7838 this.form.submit();
 7839 }
 7840
 7841 return false;
 7842 }
 7843});

 thanx,
 Rolf Strijdhorst




 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry
 Director of Open Source Technology at Formos

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 --
 View this message in context: 
 http://www.nabble.com/-T5--combination-of-linksubmit-and-submit-fails-tp23285402p23295863.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Submit a form in a zone in a component

2009-04-29 Thread rmkkk

I have two forms in my component, I discovered that if I place my select in
my first form, the value is well binded :confused:

-- 
View this message in context: 
http://www.nabble.com/Submit-a-form-in-a-zone-in-a-component-tp23295673p23296111.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [ANNOUNCE] Tapestry 5.1.0.4 (beta release)

2009-04-29 Thread Howard Lewis Ship
I just reviewed all code changes since 5.1.0.3 and I can't see
anything that would account for this. TapestryIOCModule hasn't
changed, and I can't see anyway that the changes to TapestryModule
would account for this error ... or really, the lack of error in
5.1.0.3.

On Wed, Apr 29, 2009 at 1:22 AM, Jun Tsai jun.t...@gmail.com wrote:
 upgrade to 5.1.0.4,the following code throws exception,but 5.1.0.3 works
 fine!
 /**
      * Contributes the remote scope.
      */
     public void contributeServiceLifecycleSource(
             MappedConfigurationString, ServiceLifecycle configuration
             ) {

 configuration.addInstance(CornerConstants.REMOTE_SCOPE,RemoteCallServiceLifecycle.class);
     }

 attachement is exception stack.

 2009/4/28 Howard Lewis Ship hls...@gmail.com

 Tapestry 5.1.0.4 is now available via Maven and the Apache Mirrors.

 http://tapestry.apache.org/download.html

 This is a bug fix release, addressing a number of problems present in
 5.1.0.3, and stabilizing the URLRewriter APIs.

 We are looking forward to community feedback on this release; it looks
 like there will be a .5 release to fix a small number of annoyances.


 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry
 Director of Open Source Technology at Formos

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 --
 regards,
 Jun Tsai


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



[t:5.0.18] tapestry component id attribute value format

2009-04-29 Thread roubaozi

Hello all,

A tapestry component for example:
input t:type=textfield t:id=text1 /
after the component is rendered, it becomes something like:
input id=text1:120f2926924 name=text1 type=text

what is the number 120f2926924? how do I get this number from the client
side, for example if I need to set the value of this input field through
javascript, I would like to do something like:
$('text1').value = new value;
but how do I know the id of this element after it is rendered?

Thanks
-- 
View this message in context: 
http://www.nabble.com/-t%3A5.0.18--tapestry-component-id-attribute-value-format-tp23296131p23296131.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [t:5.0.18] tapestry component id attribute value format

2009-04-29 Thread Howard Lewis Ship
That's a unique id injected into the client id as part of a partial page update.

Use the TextField's getClientId() method, after it has rendered, to
determine what clientId was assigned to it.

On Wed, Apr 29, 2009 at 9:08 AM, roubaozi lagjazz.j...@gmail.com wrote:

 Hello all,

 A tapestry component for example:
 input t:type=textfield t:id=text1 /
 after the component is rendered, it becomes something like:
 input id=text1:120f2926924 name=text1 type=text

 what is the number 120f2926924? how do I get this number from the client
 side, for example if I need to set the value of this input field through
 javascript, I would like to do something like:
 $('text1').value = new value;
 but how do I know the id of this element after it is rendered?

 Thanks
 --
 View this message in context: 
 http://www.nabble.com/-t%3A5.0.18--tapestry-component-id-attribute-value-format-tp23296131p23296131.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Rendering partial Components with Environmental support

2009-04-29 Thread Christian Senk

Forgot to mention that i use the tapestry 5.1.0.3 :)

Christian Senk schrieb:

Hello,

i have several custom components. Like in forms, some components 
require that

they are nested another component. At the end it looks like:

t:map t:id=pMap [... some arguments ...] 
t:imageLayer name=terrain /
t:imageLayer name=scene /
/t:map

The communication between the components is like in forms with 
Environmental services
realized. The MapSupport.class is pushed in @BeginRender of 
Map-Component and
popped in @CleanupRender. t:imageLayer doesn't work without that 
environmental service.


In order to add AJAX support to the map component, an eventlink on the 
client side fires
an event in the Map-Component and i would like to return only the body 
of the Map-Component,
so only the body of the component would be rendered. The problem is, 
that there is no invocation
of the Render-Lifecycle methods in the Map-Component, so there is no 
MapSupport.


How could i add this Environmental service in order to render the body 
properly and remove

it after that, like in @CleanupRender. Or is there another way?

Thanks and Greetings :)

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Injection and non-component non-service classes?

2009-04-29 Thread daniel joyce
Is there any way to have a non-component class work with injection,
w/o having to turn it into a service itself?

@Inject
private SystemProperties sysProps;

I have a class that simply zips up files, and it needs access to a
system properties service. IIRC, but when I tried this in the past, it
didn't work for classes that were not pages/components. I also don't
want to necessarily turn a class into a service merely to give it
access to another service.

Any way to do this? Or was I simply doing it wrong before?

-Daniel

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-29 Thread zack1403

Well the thing is that its reproducible when I deploy on my staging server to
tomcat 6 from the generated war file.  As well as locally with jetty 6.1.6. 
I am using the maven plugin to run goal jetty:run locally.

Zack

Ulrich Stärk wrote:
 
 Your exact same code is working fine using 5.1.0.5-SNAPSHOT on Jetty 
 6.1.6 run from inside Eclipse. Could you elaborate on your environment? 
 Also give removing and reinstalling all libs a try and make sure that 
 there aren't multiple versions of the same lib in your classpath.
 
 Uli
 

-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23297560.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Injection and non-component non-service classes?

2009-04-29 Thread Howard Lewis Ship
In the following scenario:

public void contributeMyConfiguration(ConfigurationFoo
configuration, @Autobuild FooImpl foo)
{
  configuration.add(foo);
}

Tapestry will autobuild foo using the same rules as services.  Another approach:

public void contributeMyConfiguration(ConfigurationFoo configuration)
{
  configuration.addInstance(FooImpl.class);
}

This is an alternate way to inject an autobuild instance of the class.


On Wed, Apr 29, 2009 at 10:56 AM, daniel joyce daniel.a.jo...@gmail.com wrote:
 Is there any way to have a non-component class work with injection,
 w/o having to turn it into a service itself?

 @Inject
 private SystemProperties sysProps;

 I have a class that simply zips up files, and it needs access to a
 system properties service. IIRC, but when I tried this in the past, it
 didn't work for classes that were not pages/components. I also don't
 want to necessarily turn a class into a service merely to give it
 access to another service.

 Any way to do this? Or was I simply doing it wrong before?

 -Daniel

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Injection and non-component non-service classes?

2009-04-29 Thread daniel joyce
I have a class C, that is not a service, nor a page/component

I want to Inject a resource into it

@Inject
SomeService service

When I use new C(), I want them to be seperate instances, not
singletons, or per-thread singletons, with that service wired in.

Will what you posted do this?

Because when I hear Autobuild, my understanding is it generates
singletons. But there is no guarantee this class C which is using
SomeService is itself written to be a threadsafe singleton.


On Wed, Apr 29, 2009 at 11:19 AM, Howard Lewis Ship hls...@gmail.com wrote:
 In the following scenario:

 public void contributeMyConfiguration(ConfigurationFoo
 configuration, @Autobuild FooImpl foo)
 {
  configuration.add(foo);
 }

 Tapestry will autobuild foo using the same rules as services.  Another 
 approach:

 public void contributeMyConfiguration(ConfigurationFoo configuration)
 {
  configuration.addInstance(FooImpl.class);
 }

 This is an alternate way to inject an autobuild instance of the class.


 On Wed, Apr 29, 2009 at 10:56 AM, daniel joyce daniel.a.jo...@gmail.com 
 wrote:
 Is there any way to have a non-component class work with injection,
 w/o having to turn it into a service itself?

 @Inject
 private SystemProperties sysProps;

 I have a class that simply zips up files, and it needs access to a
 system properties service. IIRC, but when I tried this in the past, it
 didn't work for classes that were not pages/components. I also don't
 want to necessarily turn a class into a service merely to give it
 access to another service.

 Any way to do this? Or was I simply doing it wrong before?

 -Daniel

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry
 Director of Open Source Technology at Formos

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Injection and non-component non-service classes?

2009-04-29 Thread Howard Lewis Ship
There isn't a mechanism for doing this via new C().  Tapestry IoC is
less intrusive than tapestry-core, it doesn't instrument your code the
way the web framework does, but it will use reflection to inject into
private fields.

@Autobuild always creates a new instance.


On Wed, Apr 29, 2009 at 11:27 AM, daniel joyce daniel.a.jo...@gmail.com wrote:
 I have a class C, that is not a service, nor a page/component

 I want to Inject a resource into it

 @Inject
 SomeService service

 When I use new C(), I want them to be seperate instances, not
 singletons, or per-thread singletons, with that service wired in.

 Will what you posted do this?

 Because when I hear Autobuild, my understanding is it generates
 singletons. But there is no guarantee this class C which is using
 SomeService is itself written to be a threadsafe singleton.


 On Wed, Apr 29, 2009 at 11:19 AM, Howard Lewis Ship hls...@gmail.com wrote:
 In the following scenario:

 public void contributeMyConfiguration(ConfigurationFoo
 configuration, @Autobuild FooImpl foo)
 {
  configuration.add(foo);
 }

 Tapestry will autobuild foo using the same rules as services.  Another 
 approach:

 public void contributeMyConfiguration(ConfigurationFoo configuration)
 {
  configuration.addInstance(FooImpl.class);
 }

 This is an alternate way to inject an autobuild instance of the class.


 On Wed, Apr 29, 2009 at 10:56 AM, daniel joyce daniel.a.jo...@gmail.com 
 wrote:
 Is there any way to have a non-component class work with injection,
 w/o having to turn it into a service itself?

 @Inject
 private SystemProperties sysProps;

 I have a class that simply zips up files, and it needs access to a
 system properties service. IIRC, but when I tried this in the past, it
 didn't work for classes that were not pages/components. I also don't
 want to necessarily turn a class into a service merely to give it
 access to another service.

 Any way to do this? Or was I simply doing it wrong before?

 -Daniel

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry
 Director of Open Source Technology at Formos

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: persist strategy

2009-04-29 Thread Jorge Saridis
Kalle, i couldn't make it work
I used exactly the examples on the page. My application uses tapestry
spring security, equanda and chenillekit. In case it matters.
The boolean expression in this line:

if (!conversationManager.isActiveConversation(conversationId)) {

once conversation is created, always returns false, so conversation
remains the same even when I navigate to another page.
Another thing is that conversation persisted fields never remember
their values if I create the conversation with useCookie = false
What am I doing wrong?
Thanks in advance
Jorge

On Sun, 2009-04-05 at 19:51 -0700, Kalle Korhonen wrote:

 Codehaus release repo is automatically synched to repo1.maven.org, but it
 takes a day or so after a release. Available now at
 http://repo1.maven.org/maven2/org/trailsframework/tapestry-conversations/0.0.2/
 .
 
 Kalle
 
 
 On Sun, Apr 5, 2009 at 2:09 AM, Scott Russell scottam...@gmail.com wrote:
 
  Could you supply a download link for 0.0.2? I can't find one on your site,
  and maven still shows only 0.0.1 available. I'll take a look and see if it
  fixes the problem I was having.
 
  cheers,
  Scott
 
 
  On Sun, 5 Apr 2009 14:34:30 Kalle Korhonen wrote:
   On Sat, Apr 4, 2009 at 5:29 PM, Scott Russell scottam...@gmail.com
  wrote:
  
I tried your conversation module (v0.0.1) and it works quite well,
  except
that I found a bug whereby the Conversation, upon being initially
  created,
wasn't being activated properly. However, I patched it and found it to
  work
quite well. Do you have a bug tracking site somewhere that I could file
  the
bug and the fix?
  
  
   I believe you are referring to
   http://jira.codehaus.org/browse/TRAILS-170which is fixed in 0.0.2. The
   link to JIRA component is at
   http://jira.codehaus.org/browse/TRAILS/component/13674. The module is
   developed as part of Trails. For 0.0.2 I renamed the artifactId from
   trails-conversations to tapestry-conversations to indicate it can be used
   independently from the rest of Trails modules. 0.0.2 also has the
  optional
   ConversationModerator component to track idle conversations and to notify
   user. Obviously the library is still in its infancy which is why haven't
   made much noise about it but I've been using it in my own projects and
  found
   it to work very well.
  
   Kalle
  
  
   On Sun, 5 Apr 2009 08:38:59 Kalle Korhonen wrote:
Use either flash persistence strategy (
http://tapestry.apache.org/tapestry5/guide/persist.html) or create a
conversation (
http://docs.codehaus.org/display/TRAILS/Conversations+in+Trails, just
released 0.0.2).
   
Kalle
   
On Sat, Apr 4, 2009 at 12:25 PM, Jorge Saridis jsari...@gmail.com
  wrote:
   
 Hello,

 In Tapestry 4.1, I used a persistence strategy named session-page
 obtained from http://wiki.apache.org/tapestry/SessionPagePersistence
  ,
 that allows discard session values when user exits the page.
 How can I do this in Tapestry 5?
 Thanks in advance
 Jorge

   
  
  
  
  
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
   
   
  
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 


Re: Injection and non-component non-service classes?

2009-04-29 Thread daniel joyce
So basically once I start using Injection, every class that uses a
injected class needs to be injected itself.

It would be nice if this could be improved upon, thus allowing
'services' and non-page, non-service business objects to play nicely
together.

-Daniel

On Wed, Apr 29, 2009 at 11:39 AM, Howard Lewis Ship hls...@gmail.com wrote:
 There isn't a mechanism for doing this via new C().  Tapestry IoC is
 less intrusive than tapestry-core, it doesn't instrument your code the
 way the web framework does, but it will use reflection to inject into
 private fields.

 @Autobuild always creates a new instance.


 On Wed, Apr 29, 2009 at 11:27 AM, daniel joyce daniel.a.jo...@gmail.com 
 wrote:
 I have a class C, that is not a service, nor a page/component

 I want to Inject a resource into it

 @Inject
 SomeService service

 When I use new C(), I want them to be seperate instances, not
 singletons, or per-thread singletons, with that service wired in.

 Will what you posted do this?

 Because when I hear Autobuild, my understanding is it generates
 singletons. But there is no guarantee this class C which is using
 SomeService is itself written to be a threadsafe singleton.


 On Wed, Apr 29, 2009 at 11:19 AM, Howard Lewis Ship hls...@gmail.com wrote:
 In the following scenario:

 public void contributeMyConfiguration(ConfigurationFoo
 configuration, @Autobuild FooImpl foo)
 {
  configuration.add(foo);
 }

 Tapestry will autobuild foo using the same rules as services.  Another 
 approach:

 public void contributeMyConfiguration(ConfigurationFoo configuration)
 {
  configuration.addInstance(FooImpl.class);
 }

 This is an alternate way to inject an autobuild instance of the class.


 On Wed, Apr 29, 2009 at 10:56 AM, daniel joyce daniel.a.jo...@gmail.com 
 wrote:
 Is there any way to have a non-component class work with injection,
 w/o having to turn it into a service itself?

 @Inject
 private SystemProperties sysProps;

 I have a class that simply zips up files, and it needs access to a
 system properties service. IIRC, but when I tried this in the past, it
 didn't work for classes that were not pages/components. I also don't
 want to necessarily turn a class into a service merely to give it
 access to another service.

 Any way to do this? Or was I simply doing it wrong before?

 -Daniel

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry
 Director of Open Source Technology at Formos

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry
 Director of Open Source Technology at Formos

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Injection and non-component non-service classes?

2009-04-29 Thread daniel joyce
Something like DecorateTransactionally that could be used to tell
Tapestry IOC which classes are using injected fields, and do the
injection/instrumentation on them.

On Wed, Apr 29, 2009 at 12:10 PM, daniel joyce daniel.a.jo...@gmail.com wrote:
 So basically once I start using Injection, every class that uses a
 injected class needs to be injected itself.

 It would be nice if this could be improved upon, thus allowing
 'services' and non-page, non-service business objects to play nicely
 together.

 -Daniel

 On Wed, Apr 29, 2009 at 11:39 AM, Howard Lewis Ship hls...@gmail.com wrote:
 There isn't a mechanism for doing this via new C().  Tapestry IoC is
 less intrusive than tapestry-core, it doesn't instrument your code the
 way the web framework does, but it will use reflection to inject into
 private fields.

 @Autobuild always creates a new instance.


 On Wed, Apr 29, 2009 at 11:27 AM, daniel joyce daniel.a.jo...@gmail.com 
 wrote:
 I have a class C, that is not a service, nor a page/component

 I want to Inject a resource into it

 @Inject
 SomeService service

 When I use new C(), I want them to be seperate instances, not
 singletons, or per-thread singletons, with that service wired in.

 Will what you posted do this?

 Because when I hear Autobuild, my understanding is it generates
 singletons. But there is no guarantee this class C which is using
 SomeService is itself written to be a threadsafe singleton.


 On Wed, Apr 29, 2009 at 11:19 AM, Howard Lewis Ship hls...@gmail.com 
 wrote:
 In the following scenario:

 public void contributeMyConfiguration(ConfigurationFoo
 configuration, @Autobuild FooImpl foo)
 {
  configuration.add(foo);
 }

 Tapestry will autobuild foo using the same rules as services.  Another 
 approach:

 public void contributeMyConfiguration(ConfigurationFoo configuration)
 {
  configuration.addInstance(FooImpl.class);
 }

 This is an alternate way to inject an autobuild instance of the class.


 On Wed, Apr 29, 2009 at 10:56 AM, daniel joyce daniel.a.jo...@gmail.com 
 wrote:
 Is there any way to have a non-component class work with injection,
 w/o having to turn it into a service itself?

 @Inject
 private SystemProperties sysProps;

 I have a class that simply zips up files, and it needs access to a
 system properties service. IIRC, but when I tried this in the past, it
 didn't work for classes that were not pages/components. I also don't
 want to necessarily turn a class into a service merely to give it
 access to another service.

 Any way to do this? Or was I simply doing it wrong before?

 -Daniel

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry
 Director of Open Source Technology at Formos

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry
 Director of Open Source Technology at Formos

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Injection and non-component non-service classes?

2009-04-29 Thread daniel joyce
IE, Class A is a service

Class B
@Inject
A a

Class C then uses Class B, but in order to access it, Class B must be
added to the appmodule via contrib config, and then class C needs

Class C
@Inject
B b

Then class D uses Class C, and it goes on and on. Once any class in
the chain uses a service, they all then need to be autobuilt in some
fashion, and you can't use new anymore. You can't break the chain as
it were, and mix constructors with autoinjected private fields.

It would be nice if you could go in your appmodule and say something like
@Match(A)
public static T T injectFields()

On Wed, Apr 29, 2009 at 12:10 PM, daniel joyce daniel.a.jo...@gmail.com wrote:
 So basically once I start using Injection, every class that uses a
 injected class needs to be injected itself.

 It would be nice if this could be improved upon, thus allowing
 'services' and non-page, non-service business objects to play nicely
 together.

 -Daniel

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: persist strategy

2009-04-29 Thread Kalle Korhonen
On Wed, Apr 29, 2009 at 12:06 PM, Jorge Saridis jsari...@gmail.com wrote:

 Kalle, i couldn't make it work
 I used exactly the examples on the page. My application uses tapestry
 spring security, equanda and chenillekit. In case it matters.


I'm using chenillekit, but not equanda and instead of spring security,
jsecurity/ki integration with Tapestry. I'm using 0.0.3 of
Trails-conversations in a production app without issues. The two things that
could make a difference is Spring security and possibly the version of T5 -
I have not tested against T5.1 yet.

The boolean expression in this line:
 if (!conversationManager.isActiveConversation(conversationId)) {
 once conversation is created, always returns false, so conversation
 remains the same even when I navigate to another page.
 Another thing is that conversation persisted fields never remember
 their values if I create the conversation with useCookie = false
 What am I doing wrong?


Well, sounds like the conversation is not being activated properly -
obviously the values should be remembered if the conversation is active.
There are multiple different ways to set it up. There's a working example of
conversations in Trails trunk at
http://svn.codehaus.org/trails/trunk/trails/examples/trails-examples-conversations/.
But first things first - have you verified that conversationId is not null?
I.e. you are persisting conversationId to session? Might be easier to find
the problem if you join #trails on irc.codehaus.org.

Kalle




 On Sun, 2009-04-05 at 19:51 -0700, Kalle Korhonen wrote:

  Codehaus release repo is automatically synched to repo1.maven.org, but
 it
  takes a day or so after a release. Available now at
 
 http://repo1.maven.org/maven2/org/trailsframework/tapestry-conversations/0.0.2/
  .
 
  Kalle
 
 
  On Sun, Apr 5, 2009 at 2:09 AM, Scott Russell scottam...@gmail.com
 wrote:
 
   Could you supply a download link for 0.0.2? I can't find one on your
 site,
   and maven still shows only 0.0.1 available. I'll take a look and see if
 it
   fixes the problem I was having.
  
   cheers,
   Scott
  
  
   On Sun, 5 Apr 2009 14:34:30 Kalle Korhonen wrote:
On Sat, Apr 4, 2009 at 5:29 PM, Scott Russell scottam...@gmail.com
   wrote:
   
 I tried your conversation module (v0.0.1) and it works quite well,
   except
 that I found a bug whereby the Conversation, upon being initially
   created,
 wasn't being activated properly. However, I patched it and found it
 to
   work
 quite well. Do you have a bug tracking site somewhere that I could
 file
   the
 bug and the fix?
   
   
I believe you are referring to
http://jira.codehaus.org/browse/TRAILS-170which is fixed in 0.0.2.
 The
link to JIRA component is at
http://jira.codehaus.org/browse/TRAILS/component/13674. The module
 is
developed as part of Trails. For 0.0.2 I renamed the artifactId from
trails-conversations to tapestry-conversations to indicate it can be
 used
independently from the rest of Trails modules. 0.0.2 also has the
   optional
ConversationModerator component to track idle conversations and to
 notify
user. Obviously the library is still in its infancy which is why
 haven't
made much noise about it but I've been using it in my own projects
 and
   found
it to work very well.
   
Kalle
   
   
On Sun, 5 Apr 2009 08:38:59 Kalle Korhonen wrote:
 Use either flash persistence strategy (
 http://tapestry.apache.org/tapestry5/guide/persist.html) or create
 a
 conversation (
 http://docs.codehaus.org/display/TRAILS/Conversations+in+Trails,
 just
 released 0.0.2).

 Kalle

 On Sat, Apr 4, 2009 at 12:25 PM, Jorge Saridis jsari...@gmail.com
 
   wrote:

  Hello,
 
  In Tapestry 4.1, I used a persistence strategy named
 session-page
  obtained from
 http://wiki.apache.org/tapestry/SessionPagePersistence
   ,
  that allows discard session values when user exits the page.
  How can I do this in Tapestry 5?
  Thanks in advance
  Jorge
 

   
   
   
   

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org


   
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
   For additional commands, e-mail: users-h...@tapestry.apache.org
  
  



Re: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-29 Thread zack1403

Knowing that that simple example worked for everyone, I started hacking away
at my app module.  Finally narrowed down what was causing the issue:

   public void contributeMasterDispatcher(OrderedConfigurationDispatcher
configuration, @InjectService(AuthDispatcher) Dispatcher authDispatcher) {
 configuration.add(AuthDispatcher, authDispatcher,
before:PageRender);
 }

In this case, the error sure didn't help the situation at all.  I am pretty
sure I am adding my dispatcher correctly as it performs as expected
everywhere else.  For some reason it is messing with ajaxformloop.  Tested
my other ajaxformloops and they all work after commenting out these few
lines.  I guess I'm on to another issue of why this is causing issues :(

Really, thanks again for everyones help.  This error does sound like
something that is being misreported as it is unrelated to the actual cause.
Maybe a bug?

Zack


Ulrich Stärk wrote:
 
 Your exact same code is working fine using 5.1.0.5-SNAPSHOT on Jetty 
 6.1.6 run from inside Eclipse. Could you elaborate on your environment? 
 Also give removing and reinstalling all libs a try and make sure that 
 there aren't multiple versions of the same lib in your classpath.
 
 Uli
 
 

-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23301366.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: What is NOT beautiful about Tapestry?

2009-04-29 Thread Daniel Jue
I agree, I think this will be a constructive thread.

So things that are not beautiful yet are a lack of tooling, aside from the
helpful Loom plugin.  I only use eclipse here, so I'm not sure if there are
plugins for other IDEs.

Sometimes I wish there were more industry type examples out there, since I
often find myself writing something that is overly verbose.  I find myself
looking at code on http://www.google.com/codesearch .  Maybe a reproduction
of the T4 Showcase app would make a good archetype.

Maven usage used to be a problem for some, but I think most of us have
gotten used to it or have worked around it.

On Wed, Apr 29, 2009 at 4:19 PM, Inge Solvoll inge.tapes...@gmail.comwrote:

 Hi!

 I have been reading the beautiful thread and added my opinion about
 what's
 great about Tapestry. It's nice to sum up why we all are so excited about
 this, it obviously makes both us and the creator(s) feel good about
 ourselves. But for a little while, I challenge us all to stop tapping each
 others' backs and go into depth about what's not to like about our beloved
 framework.

 The most obvious questions that could be asked probably have some very
 obvious answers. But T5, as I see it, is all about addressing stuff that
 other frameworks have given up on and create excellent implementations
 rather than just looking the other way. Difficult and uncomfortable
 questions should be addressed the same way.

 So:

 What are the main reasons that T5 isn't one of the big ones, when we all
 seem to agree that it is so much better than most other frameworks out
 there? Why is T5 NOT beautiful?

 Hope I'm not insulting anyone, I'm a big fan too, I just think this
 actually
 could lead to significant insight :)

 Regards

 Inge



Re: T5: What is NOT beautiful about Tapestry?

2009-04-29 Thread Carl Crowder
Discovery of it's parts. Franky the documentation is lacking and even 
with reading the mailing list, reading the howtos wiki, buying the 
Tapestry 5 book and working with it for over a year I still come across 
things I never knew existed that would have solved a problem I've had. I 
often spend ages writing something myself after searching for a solution.


What's beautiful about Tapestry? That almost every problem has a simple 
solution built in. What's not beautiful about Tapestry? That I generally 
find these solutions by accident, and way after I've written my own!


Lots of things are obvious and easy to understand once you know what 
they are but it's learning what they are that is the problem. I've been 
waxing lyrical about Tapestry where I work and while the developers who 
tried it love it, their main gripe is always that it's difficult to 
understand what it can do.


The cookbook is the right idea but it's only got 5 entries right now. It 
needs to be way more comprehensive


Inge Solvoll wrote:

Hi!

I have been reading the beautiful thread and added my opinion about what's
great about Tapestry. It's nice to sum up why we all are so excited about
this, it obviously makes both us and the creator(s) feel good about
ourselves. But for a little while, I challenge us all to stop tapping each
others' backs and go into depth about what's not to like about our beloved
framework.

The most obvious questions that could be asked probably have some very
obvious answers. But T5, as I see it, is all about addressing stuff that
other frameworks have given up on and create excellent implementations
rather than just looking the other way. Difficult and uncomfortable
questions should be addressed the same way.

So:

What are the main reasons that T5 isn't one of the big ones, when we all
seem to agree that it is so much better than most other frameworks out
there? Why is T5 NOT beautiful?

Hope I'm not insulting anyone, I'm a big fan too, I just think this actually
could lead to significant insight :)

Regards

Inge



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: What is NOT beautiful about Tapestry?

2009-04-29 Thread Joost Schouten (mailing lists)
The flexibility of T5, in that almost every task it performs is
handled by a different service that can be overwritten has a downfall.
It sometimes takes me a long time to figure out what service handles
what task and how can it be overwritten (the under documentation
argument obviously plays a role here). Some of the reflection can make
debugging harder at times and annotations over POJO's takes some time
to get used to (but maybe that is a java5+ wide argument).

My 2 cents,
Joost

On Thu, Apr 30, 2009 at 8:19 AM, Inge Solvoll inge.tapes...@gmail.com wrote:
 Hi!

 I have been reading the beautiful thread and added my opinion about what's
 great about Tapestry. It's nice to sum up why we all are so excited about
 this, it obviously makes both us and the creator(s) feel good about
 ourselves. But for a little while, I challenge us all to stop tapping each
 others' backs and go into depth about what's not to like about our beloved
 framework.

 The most obvious questions that could be asked probably have some very
 obvious answers. But T5, as I see it, is all about addressing stuff that
 other frameworks have given up on and create excellent implementations
 rather than just looking the other way. Difficult and uncomfortable
 questions should be addressed the same way.

 So:

 What are the main reasons that T5 isn't one of the big ones, when we all
 seem to agree that it is so much better than most other frameworks out
 there? Why is T5 NOT beautiful?

 Hope I'm not insulting anyone, I'm a big fan too, I just think this actually
 could lead to significant insight :)

 Regards

 Inge


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: What is NOT beautiful about Tapestry?

2009-04-29 Thread Imants Firsts
The problem probably lies with the fact that many of us have learned T5 
gradually while it was being developed and that is why most of the things seem 
easy and natural. It might not be so when you see the T5 for the first time. 
Don't get me wrong, I think everything is ok with the framework, but some more 
examples would certainly help.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: persist strategy

2009-04-29 Thread Jorge Saridis
Kalle, I'm using Tapestry 5.0.18, I'm checking if conversationId is null
and I'm persisting to session conversationId
When do I find you on #trails?
Thanks
Jorge

On Wed, 2009-04-29 at 12:49 -0700, Kalle Korhonen wrote:

 On Wed, Apr 29, 2009 at 12:06 PM, Jorge Saridis jsari...@gmail.com wrote:
 
  Kalle, i couldn't make it work
  I used exactly the examples on the page. My application uses tapestry
  spring security, equanda and chenillekit. In case it matters.
 
 
 I'm using chenillekit, but not equanda and instead of spring security,
 jsecurity/ki integration with Tapestry. I'm using 0.0.3 of
 Trails-conversations in a production app without issues. The two things that
 could make a difference is Spring security and possibly the version of T5 -
 I have not tested against T5.1 yet.
 
 The boolean expression in this line:
  if (!conversationManager.isActiveConversation(conversationId)) {
  once conversation is created, always returns false, so conversation
  remains the same even when I navigate to another page.
  Another thing is that conversation persisted fields never remember
  their values if I create the conversation with useCookie = false
  What am I doing wrong?
 
 
 Well, sounds like the conversation is not being activated properly -
 obviously the values should be remembered if the conversation is active.
 There are multiple different ways to set it up. There's a working example of
 conversations in Trails trunk at
 http://svn.codehaus.org/trails/trunk/trails/examples/trails-examples-conversations/.
 But first things first - have you verified that conversationId is not null?
 I.e. you are persisting conversationId to session? Might be easier to find
 the problem if you join #trails on irc.codehaus.org.
 
 Kalle
 
 
 
 
  On Sun, 2009-04-05 at 19:51 -0700, Kalle Korhonen wrote:
 
   Codehaus release repo is automatically synched to repo1.maven.org, but
  it
   takes a day or so after a release. Available now at
  
  http://repo1.maven.org/maven2/org/trailsframework/tapestry-conversations/0.0.2/
   .
  
   Kalle
  
  
   On Sun, Apr 5, 2009 at 2:09 AM, Scott Russell scottam...@gmail.com
  wrote:
  
Could you supply a download link for 0.0.2? I can't find one on your
  site,
and maven still shows only 0.0.1 available. I'll take a look and see if
  it
fixes the problem I was having.
   
cheers,
Scott
   
   
On Sun, 5 Apr 2009 14:34:30 Kalle Korhonen wrote:
 On Sat, Apr 4, 2009 at 5:29 PM, Scott Russell scottam...@gmail.com
wrote:

  I tried your conversation module (v0.0.1) and it works quite well,
except
  that I found a bug whereby the Conversation, upon being initially
created,
  wasn't being activated properly. However, I patched it and found it
  to
work
  quite well. Do you have a bug tracking site somewhere that I could
  file
the
  bug and the fix?


 I believe you are referring to
 http://jira.codehaus.org/browse/TRAILS-170which is fixed in 0.0.2.
  The
 link to JIRA component is at
 http://jira.codehaus.org/browse/TRAILS/component/13674. The module
  is
 developed as part of Trails. For 0.0.2 I renamed the artifactId from
 trails-conversations to tapestry-conversations to indicate it can be
  used
 independently from the rest of Trails modules. 0.0.2 also has the
optional
 ConversationModerator component to track idle conversations and to
  notify
 user. Obviously the library is still in its infancy which is why
  haven't
 made much noise about it but I've been using it in my own projects
  and
found
 it to work very well.

 Kalle


 On Sun, 5 Apr 2009 08:38:59 Kalle Korhonen wrote:
  Use either flash persistence strategy (
  http://tapestry.apache.org/tapestry5/guide/persist.html) or create
  a
  conversation (
  http://docs.codehaus.org/display/TRAILS/Conversations+in+Trails,
  just
  released 0.0.2).
 
  Kalle
 
  On Sat, Apr 4, 2009 at 12:25 PM, Jorge Saridis jsari...@gmail.com
  
wrote:
 
   Hello,
  
   In Tapestry 4.1, I used a persistence strategy named
  session-page
   obtained from
  http://wiki.apache.org/tapestry/SessionPagePersistence
,
   that allows discard session values when user exits the page.
   How can I do this in Tapestry 5?
   Thanks in advance
   Jorge
  
 




 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 

   
   
   
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
   
   
 


Re: persist strategy

2009-04-29 Thread Kalle Korhonen
Now. I see you just left. You need to ping me on irc - i.e. call my id -
otherwise I won't know somebody is asking for me.

Kalle

On Wed, Apr 29, 2009 at 2:54 PM, Jorge Saridis jsari...@gmail.com wrote:

 Kalle, I'm using Tapestry 5.0.18, I'm checking if conversationId is null
 and I'm persisting to session conversationId
 When do I find you on #trails?
 Thanks
 Jorge

 On Wed, 2009-04-29 at 12:49 -0700, Kalle Korhonen wrote:

  On Wed, Apr 29, 2009 at 12:06 PM, Jorge Saridis jsari...@gmail.com
 wrote:
 
   Kalle, i couldn't make it work
   I used exactly the examples on the page. My application uses tapestry
   spring security, equanda and chenillekit. In case it matters.
 
 
  I'm using chenillekit, but not equanda and instead of spring security,
  jsecurity/ki integration with Tapestry. I'm using 0.0.3 of
  Trails-conversations in a production app without issues. The two things
 that
  could make a difference is Spring security and possibly the version of T5
 -
  I have not tested against T5.1 yet.
 
  The boolean expression in this line:
   if (!conversationManager.isActiveConversation(conversationId)) {
   once conversation is created, always returns false, so conversation
   remains the same even when I navigate to another page.
   Another thing is that conversation persisted fields never remember
   their values if I create the conversation with useCookie = false
   What am I doing wrong?
 
 
  Well, sounds like the conversation is not being activated properly -
  obviously the values should be remembered if the conversation is active.
  There are multiple different ways to set it up. There's a working example
 of
  conversations in Trails trunk at
 
 http://svn.codehaus.org/trails/trunk/trails/examples/trails-examples-conversations/
 .
  But first things first - have you verified that conversationId is not
 null?
  I.e. you are persisting conversationId to session? Might be easier to
 find
  the problem if you join #trails on irc.codehaus.org.
 
  Kalle
 
 
 
  
   On Sun, 2009-04-05 at 19:51 -0700, Kalle Korhonen wrote:
  
Codehaus release repo is automatically synched to repo1.maven.org,
 but
   it
takes a day or so after a release. Available now at
   
  
 http://repo1.maven.org/maven2/org/trailsframework/tapestry-conversations/0.0.2/
.
   
Kalle
   
   
On Sun, Apr 5, 2009 at 2:09 AM, Scott Russell scottam...@gmail.com
   wrote:
   
 Could you supply a download link for 0.0.2? I can't find one on
 your
   site,
 and maven still shows only 0.0.1 available. I'll take a look and
 see if
   it
 fixes the problem I was having.

 cheers,
 Scott


 On Sun, 5 Apr 2009 14:34:30 Kalle Korhonen wrote:
  On Sat, Apr 4, 2009 at 5:29 PM, Scott Russell 
 scottam...@gmail.com
 wrote:
 
   I tried your conversation module (v0.0.1) and it works quite
 well,
 except
   that I found a bug whereby the Conversation, upon being
 initially
 created,
   wasn't being activated properly. However, I patched it and
 found it
   to
 work
   quite well. Do you have a bug tracking site somewhere that I
 could
   file
 the
   bug and the fix?
 
 
  I believe you are referring to
  http://jira.codehaus.org/browse/TRAILS-170which is fixed in
 0.0.2.
   The
  link to JIRA component is at
  http://jira.codehaus.org/browse/TRAILS/component/13674. The
 module
   is
  developed as part of Trails. For 0.0.2 I renamed the artifactId
 from
  trails-conversations to tapestry-conversations to indicate it can
 be
   used
  independently from the rest of Trails modules. 0.0.2 also has the
 optional
  ConversationModerator component to track idle conversations and
 to
   notify
  user. Obviously the library is still in its infancy which is why
   haven't
  made much noise about it but I've been using it in my own
 projects
   and
 found
  it to work very well.
 
  Kalle
 
 
  On Sun, 5 Apr 2009 08:38:59 Kalle Korhonen wrote:
   Use either flash persistence strategy (
   http://tapestry.apache.org/tapestry5/guide/persist.html) or
 create
   a
   conversation (
  
 http://docs.codehaus.org/display/TRAILS/Conversations+in+Trails,
   just
   released 0.0.2).
  
   Kalle
  
   On Sat, Apr 4, 2009 at 12:25 PM, Jorge Saridis 
 jsari...@gmail.com
   
 wrote:
  
Hello,
   
In Tapestry 4.1, I used a persistence strategy named
   session-page
obtained from
   http://wiki.apache.org/tapestry/SessionPagePersistence
 ,
that allows discard session values when user exits the page.
How can I do this in Tapestry 5?
Thanks in advance
Jorge
   
  
 
 
 
 
  
   -
   To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
   For additional commands, e-mail:
 

Re: T5: What is NOT beautiful about Tapestry?

2009-04-29 Thread Robert Zeigler

So, we've clearly hit on documentation being an issue. ;)

Two other things that I think are problematic for newcomers to tapestry:

  * static structure, dynamic behavior.
 I agree with HLS's choice on this, but it does create a barrier  
for a lot of people; the programming model in, eg, Wicket is just  
easier to wrap your head around: how do I dynamically get some  
different component on the page? Instantiate it  Again, I'm not  
advocating changing static structure, dynamic behavior, but I wonder  
if there's a way that we can hurdle the barrier here... I have no  
ideas on this as yet.
   * Related to above, having pages that exist for no other reason  
than to be holders for components that will be dynamically injected  
seems a bit... ugly.  Maybe we could have a dedicated dynamic  
component holder?  At the very least, having a simple annotation such  
as: @DynamicComponentHolder on the page classes, and having tapestry  
recognize that the page isn't actually a page meant to be rendered  
directly, and take steps accordingly (shut down requests for those  
pages, etc.) might be nice.


  * Ajax.
  Zones rock, but otherwise, ajax in tapestry is still...  
lacking, IMHO.  I think tapestry could go a /long/ way toward making  
things easier here.  For instance, the form injector component: it's  
useful, but I find it painful to use, and, it's really only  
interesting if you're planning on dynamically adding additional form  
elements (or removing them).  But things like dynamic updates of bits  
and pieces of forms are painful... tapestry really go out of its way  
to ensure that the same state available in rendering the request, or  
in a full post, is available during an ajax request (I'm thinking  
particularly of the fact that the Form isn't in the environment  
(unless you use form injector).


Robert


On Apr 29, 2009, at 4/294:04 PM , Pete Poulos wrote:


I am currently learning tapestry and while I agree with the concept of
Convention over Configuration, as newbie I would really like to see
all of the conventions clearly documented in one location.  As it is
right now I feel that I have to hunt around for them and I am worried
that there are conventions that I am not aware of.

Also, the documentation seems to dive into the details fairly quickly.
It would be nice to see a page which clearly defines the
breadth/scope of Tapestry.  What components/modules are there? What
can they do?  Where are they located? How can I learn more about them?

I am impressed with what I have seen so far, but it has been hard to
figure out how to start and to clearly answer the following question:
What parts of Tapestry should I have under my belt before I can claim
that I know Tapestry?

Maybe some of these answers are there already and I have either
overlooked them or been unable to find them.

Pete

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: What is NOT beautiful about Tapestry?

2009-04-29 Thread Inge Solvoll
Let's say that the don't get me wrong, I love Tapestry-part is implicit in
all replies to this thread, so we're all covered :)

Some more questions:

1. What, politically, made it hard to introduce T5 in your organisation? Who
resisted, and why?
2. What, technically, made it hard to introduce/teach T5 among your
programmer colleagues? (some already mentioned documentation)
3. Why is JSF more popular than Tapestry? Other than the obvious standard
from Sun? Something about documentation again maybe? Ask the Spring guys
about fighting against standards from Sun. They beat EJB... :)

On Thu, Apr 30, 2009 at 12:08 AM, Robert Zeigler robe...@scazdl.org wrote:

 So, we've clearly hit on documentation being an issue. ;)

 Two other things that I think are problematic for newcomers to tapestry:

  * static structure, dynamic behavior.
 I agree with HLS's choice on this, but it does create a barrier for a
 lot of people; the programming model in, eg, Wicket is just easier to wrap
 your head around: how do I dynamically get some different component on the
 page? Instantiate it  Again, I'm not advocating changing static
 structure, dynamic behavior, but I wonder if there's a way that we can
 hurdle the barrier here... I have no ideas on this as yet.
   * Related to above, having pages that exist for no other reason than to
 be holders for components that will be dynamically injected seems a bit...
 ugly.  Maybe we could have a dedicated dynamic component holder?  At the
 very least, having a simple annotation such as: @DynamicComponentHolder on
 the page classes, and having tapestry recognize that the page isn't actually
 a page meant to be rendered directly, and take steps accordingly (shut down
 requests for those pages, etc.) might be nice.

  * Ajax.
  Zones rock, but otherwise, ajax in tapestry is still... lacking, IMHO.
  I think tapestry could go a /long/ way toward making things easier here.
  For instance, the form injector component: it's useful, but I find it
 painful to use, and, it's really only interesting if you're planning on
 dynamically adding additional form elements (or removing them).  But things
 like dynamic updates of bits and pieces of forms are painful... tapestry
 really go out of its way to ensure that the same state available in
 rendering the request, or in a full post, is available during an ajax
 request (I'm thinking particularly of the fact that the Form isn't in the
 environment (unless you use form injector).

 Robert



 On Apr 29, 2009, at 4/294:04 PM , Pete Poulos wrote:

  I am currently learning tapestry and while I agree with the concept of
 Convention over Configuration, as newbie I would really like to see
 all of the conventions clearly documented in one location.  As it is
 right now I feel that I have to hunt around for them and I am worried
 that there are conventions that I am not aware of.

 Also, the documentation seems to dive into the details fairly quickly.
 It would be nice to see a page which clearly defines the
 breadth/scope of Tapestry.  What components/modules are there? What
 can they do?  Where are they located? How can I learn more about them?

 I am impressed with what I have seen so far, but it has been hard to
 figure out how to start and to clearly answer the following question:
 What parts of Tapestry should I have under my belt before I can claim
 that I know Tapestry?

 Maybe some of these answers are there already and I have either
 overlooked them or been unable to find them.

 Pete

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




Re: T5: What is NOT beautiful about Tapestry?

2009-04-29 Thread manuel aldana

Inge Solvoll schrieb:

1. What, politically, made it hard to introduce T5 in your organisation? Who
resisted, and why?
  
I am sure there a two things which could help at promotion for 
convincing decision makers: Real big live sites running under tapestry 
and a good up to date book.



2. What, technically, made it hard to introduce/teach T5 among your
programmer colleagues? (some already mentioned documentation)
As bigger sites hardly start from scratch, I see the legacy reason as a 
big technical point. Usually big codebases rely on action/command 
focused frameworks (e.g. struts, spring mvc) and it is extremely hard to 
refactor them to page and component based ones. Also I see that frontend 
people are being used to work with JSP, freemarker etc. and are a bit 
hesitating to look at yet another templating technology.


I really like tapestry concepts and helps a lot to think in different 
directions even if you don't use it in daily job. About tap-ioc I really 
like to java-code style injection and configuration instead for XML.


- 
manuel aldana

ald...@gmx.de
software-engineering blog: http://www.aldana-online.de


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Submit a form in a zone in a component

2009-04-29 Thread rmkkk

It was already done (all my model objects and dtos implement hashcode and
equals), and the same select gave me the good binding  on a separate page
%-|
Now I have simplified my component, particularly with zones (I have now only
one zone for all my component), and the binding works fine now. Great but I
don't really understand where was the problem :confused: I will try to add
new zones soon...


Thiago H. de Paula Figueiredo wrote:
 
 Make sure the class whose objects are selected implement both
 hashCode() and equals(). This is typical source of errors not only
 with Tapestry, but with any collection as well.
 
 -- 
 Thiago
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Submit-a-form-in-a-zone-in-a-component-tp23295673p23302557.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Solving the T5 Documentation Dilemma

2009-04-29 Thread Howard Lewis Ship
One of the issues with T5 documentation is that it is written in Maven
APT format. This is better than HTML or even various XML docbook-lite
kind of things, but it ties documentation down to the Tapestry release
cycle.

Perhaps it would be better if all documentation was moved onto a live
wiki.  This has the advantage that more people can work on it, beyond
just the T5 committers.

I don't think Tapestry's wiki, http://wiki.apache.org/tapestry, is up
to the task.

I've set up Confluence at Tapestry360:
http://tapestry.formos.com/wiki/dashboard.action

This is a more industrial strength wiki, better organized, good
WYSIWYG editor, good support for images and attachments, and tons of
features I don't know or understand yet.

The downside of this is that it will be harder to correlate
documentation against releases. We've seen this before, when I might
publish on the list of the nightly docs some new features, and then a
raft of errors about it not working come in.

Also, I haven't had the bandwidth to validate the many notes and
how-tos on the current Wiki.  I'm not sure I would personally be able
to do better on Confluence.

On Wed, Apr 29, 2009 at 3:31 PM, manuel aldana ald...@gmx.de wrote:
 Inge Solvoll schrieb:

 1. What, politically, made it hard to introduce T5 in your organisation?
 Who
 resisted, and why?


 I am sure there a two things which could help at promotion for convincing
 decision makers: Real big live sites running under tapestry and a good up to
 date book.

 2. What, technically, made it hard to introduce/teach T5 among your
 programmer colleagues? (some already mentioned documentation)

 As bigger sites hardly start from scratch, I see the legacy reason as a big
 technical point. Usually big codebases rely on action/command focused
 frameworks (e.g. struts, spring mvc) and it is extremely hard to refactor
 them to page and component based ones. Also I see that frontend people are
 being used to work with JSP, freemarker etc. and are a bit hesitating to
 look at yet another templating technology.

 I really like tapestry concepts and helps a lot to think in different
 directions even if you don't use it in daily job. About tap-ioc I really
 like to java-code style injection and configuration instead for XML.

 - manuel aldana
 ald...@gmx.de
 software-engineering blog: http://www.aldana-online.de


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [t:5.0.18] tapestry component id attribute value format

2009-04-29 Thread Pedro Januário
I have the same problem, and the easy way to solve it is to had new html
atribute to element like:

input t:type=textfield t:id=text1 field=fieldName /

after update:
input id=text1:120f2926924 name=text1 type=text field=fieldName

Then on the client side you can access to field using prototype api.
$$('input[field=fieldName]')


2009/4/29 Howard Lewis Ship hls...@gmail.com

 That's a unique id injected into the client id as part of a partial page
 update.

 Use the TextField's getClientId() method, after it has rendered, to
 determine what clientId was assigned to it.

 On Wed, Apr 29, 2009 at 9:08 AM, roubaozi lagjazz.j...@gmail.com wrote:
 
  Hello all,
 
  A tapestry component for example:
  input t:type=textfield t:id=text1 /
  after the component is rendered, it becomes something like:
  input id=text1:120f2926924 name=text1 type=text
 
  what is the number 120f2926924? how do I get this number from the client
  side, for example if I need to set the value of this input field through
  javascript, I would like to do something like:
  $('text1').value = new value;
  but how do I know the id of this element after it is rendered?
 
  Thanks
  --
  View this message in context:
 http://www.nabble.com/-t%3A5.0.18--tapestry-component-id-attribute-value-format-tp23296131p23296131.html
  Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 



 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry
 Director of Open Source Technology at Formos

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-- 
Cumprimentos...
Pedro Januário


Re: Solving the T5 Documentation Dilemma

2009-04-29 Thread Christian Edward Gruber

I think a wiki is a decent option, but another option would be to make a

/trunk/tapestry-ioc/
...
/trunk/tapestry-site/
...

project which could be versioned (or at least released) on a different  
cycle.  This could keep (for any branch such as 5.0, 5.1) the docs as  
fresh as you wanted to release them.


A second, orthogonal pattern is to generate site-documentation on a  
nightly build and put it up at a standard location, so anyone can  
check the nightly site docs.  This could be matched by a nightly  
snapshot so the code matches the docs, for things like javadocs and  
component reports.


Christian.

On 29-Apr-09, at 19:02 , Howard Lewis Ship wrote:


One of the issues with T5 documentation is that it is written in Maven
APT format. This is better than HTML or even various XML docbook-lite
kind of things, but it ties documentation down to the Tapestry release
cycle.

Perhaps it would be better if all documentation was moved onto a live
wiki.  This has the advantage that more people can work on it, beyond
just the T5 committers.

I don't think Tapestry's wiki, http://wiki.apache.org/tapestry, is up
to the task.

I've set up Confluence at Tapestry360:
http://tapestry.formos.com/wiki/dashboard.action

This is a more industrial strength wiki, better organized, good
WYSIWYG editor, good support for images and attachments, and tons of
features I don't know or understand yet.

The downside of this is that it will be harder to correlate
documentation against releases. We've seen this before, when I might
publish on the list of the nightly docs some new features, and then a
raft of errors about it not working come in.

Also, I haven't had the bandwidth to validate the many notes and
how-tos on the current Wiki.  I'm not sure I would personally be able
to do better on Confluence.

On Wed, Apr 29, 2009 at 3:31 PM, manuel aldana ald...@gmx.de wrote:

Inge Solvoll schrieb:


1. What, politically, made it hard to introduce T5 in your  
organisation?

Who
resisted, and why?



I am sure there a two things which could help at promotion for  
convincing
decision makers: Real big live sites running under tapestry and a  
good up to

date book.


2. What, technically, made it hard to introduce/teach T5 among your
programmer colleagues? (some already mentioned documentation)


As bigger sites hardly start from scratch, I see the legacy reason  
as a big

technical point. Usually big codebases rely on action/command focused
frameworks (e.g. struts, spring mvc) and it is extremely hard to  
refactor
them to page and component based ones. Also I see that frontend  
people are
being used to work with JSP, freemarker etc. and are a bit  
hesitating to

look at yet another templating technology.

I really like tapestry concepts and helps a lot to think in different
directions even if you don't use it in daily job. About tap-ioc I  
really

like to java-code style injection and configuration instead for XML.

- manuel aldana
ald...@gmx.de
software-engineering blog: http://www.aldana-online.de


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org






--
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Christian Edward Gruber
e-mail: christianedwardgru...@gmail.com
weblog: http://www.geekinasuit.com/


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Solving the T5 Documentation Dilemma

2009-04-29 Thread Christian Edward Gruber
I'd also like to suggest that we add small usage examples into  
the .xdocs for the components themselves.


This was what made NeXTSTEP documentation so nice.  You'd have some  
decent usage documents right in the component reference, so I can go  
to the loop component reference and see six ways to use it.  It would  
also go a long way to help people get good patterns.


My search path is usually:  Crap, gotta use some component, go to the  
reference... no good answer, go to the tutorial... to advanced, go to  
the cookbook... nothing, go to the wiki... sort of related page, go to  
the mailing lists...


Because T5 is so component-oriented, shoring up the amount of  
information and context you can get directly in the component  
reference documentation would really short-circuit a lot of people's  
searching.


cheers,
Christian.


On 29-Apr-09, at 19:02 , Howard Lewis Ship wrote:


One of the issues with T5 documentation is that it is written in Maven
APT format. This is better than HTML or even various XML docbook-lite
kind of things, but it ties documentation down to the Tapestry release
cycle.

Perhaps it would be better if all documentation was moved onto a live
wiki.  This has the advantage that more people can work on it, beyond
just the T5 committers.

I don't think Tapestry's wiki, http://wiki.apache.org/tapestry, is up
to the task.

I've set up Confluence at Tapestry360:
http://tapestry.formos.com/wiki/dashboard.action

This is a more industrial strength wiki, better organized, good
WYSIWYG editor, good support for images and attachments, and tons of
features I don't know or understand yet.

The downside of this is that it will be harder to correlate
documentation against releases. We've seen this before, when I might
publish on the list of the nightly docs some new features, and then a
raft of errors about it not working come in.

Also, I haven't had the bandwidth to validate the many notes and
how-tos on the current Wiki.  I'm not sure I would personally be able
to do better on Confluence.

On Wed, Apr 29, 2009 at 3:31 PM, manuel aldana ald...@gmx.de wrote:

Inge Solvoll schrieb:


1. What, politically, made it hard to introduce T5 in your  
organisation?

Who
resisted, and why?



I am sure there a two things which could help at promotion for  
convincing
decision makers: Real big live sites running under tapestry and a  
good up to

date book.


2. What, technically, made it hard to introduce/teach T5 among your
programmer colleagues? (some already mentioned documentation)


As bigger sites hardly start from scratch, I see the legacy reason  
as a big

technical point. Usually big codebases rely on action/command focused
frameworks (e.g. struts, spring mvc) and it is extremely hard to  
refactor
them to page and component based ones. Also I see that frontend  
people are
being used to work with JSP, freemarker etc. and are a bit  
hesitating to

look at yet another templating technology.

I really like tapestry concepts and helps a lot to think in different
directions even if you don't use it in daily job. About tap-ioc I  
really

like to java-code style injection and configuration instead for XML.

- manuel aldana
ald...@gmx.de
software-engineering blog: http://www.aldana-online.de


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org






--
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Christian Edward Gruber
e-mail: christianedwardgru...@gmail.com
weblog: http://www.geekinasuit.com/


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: What is NOT beautiful about Tapestry?

2009-04-29 Thread Pedro Januário
I'm working with tapestry for 6 months and my main problems were:
- The lack of good documentation and common problems solutions
documentation;
- The static structure and dynamic behaviour need.

Sometimes it's painfull when you need to have a reference for the component
on the java code, when we want to have two exlusive blocks with the some
field inside.

2009/4/29 manuel aldana ald...@gmx.de

 Inge Solvoll schrieb:

 1. What, politically, made it hard to introduce T5 in your organisation?
 Who
 resisted, and why?


 I am sure there a two things which could help at promotion for convincing
 decision makers: Real big live sites running under tapestry and a good up to
 date book.

  2. What, technically, made it hard to introduce/teach T5 among your
 programmer colleagues? (some already mentioned documentation)

 As bigger sites hardly start from scratch, I see the legacy reason as a big
 technical point. Usually big codebases rely on action/command focused
 frameworks (e.g. struts, spring mvc) and it is extremely hard to refactor
 them to page and component based ones. Also I see that frontend people are
 being used to work with JSP, freemarker etc. and are a bit hesitating to
 look at yet another templating technology.

 I really like tapestry concepts and helps a lot to think in different
 directions even if you don't use it in daily job. About tap-ioc I really
 like to java-code style injection and configuration instead for XML.

 - manuel aldana
 ald...@gmx.de
 software-engineering blog: http://www.aldana-online.de



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-- 
Cumprimentos...
Pedro Januário


Re: T5: What is NOT beautiful about Tapestry?

2009-04-29 Thread Christian Edward Gruber
I'm interested about this - can you elaborate what you mean by this?   
What about the structure is too static, and what dynamism are you  
looking for?


Christian.

On 29-Apr-09, at 19:16 , Pedro Januário wrote:


- The static structure and dynamic behaviour need.


Christian Edward Gruber
e-mail: christianedwardgru...@gmail.com
weblog: http://www.geekinasuit.com/


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Solving the T5 Documentation Dilemma

2009-04-29 Thread Howard Lewis Ship
On Wed, Apr 29, 2009 at 4:11 PM, Christian Edward Gruber
christianedwardgru...@gmail.com wrote:
 I think a wiki is a decent option, but another option would be to make a

 /trunk/tapestry-ioc/
 ...
 /trunk/tapestry-site/
 ...

 project which could be versioned (or at least released) on a different
 cycle.  This could keep (for any branch such as 5.0, 5.1) the docs as fresh
 as you wanted to release them.

This is how documentation is done today; it has the advantage that
docs are implicitly synchornized to the code (as long as
developers are dilligent about updating docs at the same time as code
changes). It has the downside of being
limited to just access by Tapestry committers.

It might be possible for a wiki to operate in the same way ... we
could have a Tapestry 5.1 space and, at the start of 5.2, we could
copy it to form the Tapestry 5.2 space. In this way,
the documentation for prior releases would be accurate (we could even
freeze the space), but would still be open to a community effort to
keep it up to date.


 A second, orthogonal pattern is to generate site-documentation on a nightly
 build and put it up at a standard location, so anyone can check the nightly
 site docs.  This could be matched by a nightly snapshot so the code matches
 the docs, for things like javadocs and component reports.

You mean, like we've been doing for the last couple of years?

http://tapestry.formos.com/nightly/tapestry5



 Christian.

 On 29-Apr-09, at 19:02 , Howard Lewis Ship wrote:

 One of the issues with T5 documentation is that it is written in Maven
 APT format. This is better than HTML or even various XML docbook-lite
 kind of things, but it ties documentation down to the Tapestry release
 cycle.

 Perhaps it would be better if all documentation was moved onto a live
 wiki.  This has the advantage that more people can work on it, beyond
 just the T5 committers.

 I don't think Tapestry's wiki, http://wiki.apache.org/tapestry, is up
 to the task.

 I've set up Confluence at Tapestry360:
 http://tapestry.formos.com/wiki/dashboard.action

 This is a more industrial strength wiki, better organized, good
 WYSIWYG editor, good support for images and attachments, and tons of
 features I don't know or understand yet.

 The downside of this is that it will be harder to correlate
 documentation against releases. We've seen this before, when I might
 publish on the list of the nightly docs some new features, and then a
 raft of errors about it not working come in.

 Also, I haven't had the bandwidth to validate the many notes and
 how-tos on the current Wiki.  I'm not sure I would personally be able
 to do better on Confluence.

 On Wed, Apr 29, 2009 at 3:31 PM, manuel aldana ald...@gmx.de wrote:

 Inge Solvoll schrieb:

 1. What, politically, made it hard to introduce T5 in your organisation?
 Who
 resisted, and why?


 I am sure there a two things which could help at promotion for convincing
 decision makers: Real big live sites running under tapestry and a good up
 to
 date book.

 2. What, technically, made it hard to introduce/teach T5 among your
 programmer colleagues? (some already mentioned documentation)

 As bigger sites hardly start from scratch, I see the legacy reason as a
 big
 technical point. Usually big codebases rely on action/command focused
 frameworks (e.g. struts, spring mvc) and it is extremely hard to refactor
 them to page and component based ones. Also I see that frontend people
 are
 being used to work with JSP, freemarker etc. and are a bit hesitating to
 look at yet another templating technology.

 I really like tapestry concepts and helps a lot to think in different
 directions even if you don't use it in daily job. About tap-ioc I really
 like to java-code style injection and configuration instead for XML.

 - manuel aldana
 ald...@gmx.de
 software-engineering blog: http://www.aldana-online.de


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry
 Director of Open Source Technology at Formos

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org


 Christian Edward Gruber
 e-mail: christianedwardgru...@gmail.com
 weblog: http://www.geekinasuit.com/


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


Re: T5: What is NOT beautiful about Tapestry?

2009-04-29 Thread Pedro Januário
Ok, i will try to expose one of my issues.

t:delegate t:to=activeMode/

t:block id=processFormFields_1
- Other fields

select t:id=subject t:type=select
t:model=prop:subjectModel t:value=prop:subject
t:mixins=ck/OnEvent event=change
onCompleteCallback=updateSubsubjects/

 - Other fields

/t:block
t:block id=processFormFields_2
- Other fields

select t:id=subject t:type=select
t:model=prop:subjectModel t:value=prop:subject
t:mixins=ck/OnEvent event=change
onCompleteCallback=updateSubsubjects/

 - Other fields

/t:block

The two blocks will never be displayed together, and i need the id of the
component because i need to have component on the server side.

I have solutionated my problem with a uggly solution.

t:delegate t:to=activeMode/

t:block id=processFormFields_1
- Other fields

t:delegate t:to=subjectBlock/

 - Other fields

/t:block
t:block id=processFormFields_2
- Other fields

t:delegate t:to=subjectBlock/

 - Other fields
/t:block

t:block id=subjectBlock
select t:id=subject t:type=select
t:model=prop:subjectModel t:value=prop:subject
t:mixins=ck/OnEvent event=change
onCompleteCallback=updateSubsubjects/
/t:block

This was one of the multiple times (and that i remember :D ) that i have
faced  this issue.

I have worked with dynamic structure and liked that kind of behaviour but i
know that dynamic structure my have some serious and dificult problems to
solve.


2009/4/30 Christian Edward Gruber christianedwardgru...@gmail.com

 I'm interested about this - can you elaborate what you mean by this?  What
 about the structure is too static, and what dynamism are you looking for?

 Christian.

 On 29-Apr-09, at 19:16 , Pedro Januário wrote:

  - The static structure and dynamic behaviour need.


 Christian Edward Gruber
 e-mail: christianedwardgru...@gmail.com
 weblog: http://www.geekinasuit.com/



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-- 
Cumprimentos...
Pedro Januário


Input validation issue

2009-04-29 Thread Pedro Januário
I would like to have this kind of behaviour:

t:textfield value=field validate=regexp=prop:fieldRegex /

public String getFieldRegex() {
   return ^[a-z]+$;
}

or

t:textfield value=field validate=prop:fieldRegex /

public String getFieldRegex() {
   return regexp=^[a-z]+$;
}

I know that it's possible to include regular expressions in the message
resources, but i would like to have a diferent source like database.
Are there any solution? I have looking way to solve this with contributions
but i think it's not possible.
Not the way it's implemented.
Having this kind of configuration it's possible to update the regular
expressions on real time and without a new deploy.

Anyone would like to have this improvement?

--
Cumprimentos...
Pedro Januário


Re: Solving the T5 Documentation Dilemma

2009-04-29 Thread Christian Edward Gruber
LOL.  You got me, Howard.  Sorry.  I have even visited them, but in my  
caffeine starved brain I forgot entirely.


Christian.

On Apr 29, 2009, at 7:29 PM, Howard Lewis Ship wrote:



A second, orthogonal pattern is to generate site-documentation on a  
nightly
build and put it up at a standard location, so anyone can check the  
nightly
site docs.  This could be matched by a nightly snapshot so the code  
matches

the docs, for things like javadocs and component reports.


You mean, like we've been doing for the last couple of years?

http://tapestry.formos.com/nightly/tapestry5


Christian Edward Gruber
christianedwardgru...@gmail.com
http://www.geekinasuit.com/



Re: Solving the T5 Documentation Dilemma

2009-04-29 Thread Christian Edward Gruber


On Apr 29, 2009, at 7:29 PM, Howard Lewis Ship wrote:


On Wed, Apr 29, 2009 at 4:11 PM, Christian Edward Gruber
christianedwardgru...@gmail.com wrote:

...

project which could be versioned (or at least released) on a  
different
cycle.  This could keep (for any branch such as 5.0, 5.1) the docs  
as fresh

as you wanted to release them.


This is how documentation is done today; it has the advantage that
docs are implicitly synchornized to the code (as long as
developers are dilligent about updating docs at the same time as code
changes). It has the downside of being
limited to just access by Tapestry committers.

It might be possible for a wiki to operate in the same way ... we
could have a Tapestry 5.1 space and, at the start of 5.2, we could
copy it to form the Tapestry 5.2 space. In this way,
the documentation for prior releases would be accurate (we could even
freeze the space), but would still be open to a community effort to
keep it up to date.



I'm not sure that docs are any less important to have commit rights  
for than code.  I think people should be submitting patches, or they  
should be committers.  Or maybe someone wants to be a committer with  
focus on docs, to mediate the flow of community suggestions.  I just  
think that the difference between published and contributed  
documentation is often quite high, and I think the information in  
contributed docs should end up in the published docs ultimately (if  
it's not redundant or irrelevant), I think having a little bit of a  
gate on the documentation would be good.


Another option is to have an open repository where the docs live, and  
can be manipulated - a set of community-oriented docs in a different  
repo where more people can have commit rights.  Then people can play  
with docs, and people can move them into the canonical docs as  
appropriate.


I'm still caffeine starved, so I may be over-thinking this.

Christian.


Christian Edward Gruber
christianedwardgru...@gmail.com
http://www.geekinasuit.com/



Access unique clientId in AjaxFormLoop iteration

2009-04-29 Thread Andrew Court

Each new iteration of AjaxFormLoop generated by an addRowLink event appends a
unique identifier to the clientId of elements in the form of -120f481f67e

Is it possible to access this value directly in order to pass it as a
parameter in onclick events for example?

Something  like:

input t:type=checkbox t:value=rate.onMon t:clientId=weekday_0
onclick=javascript:doAllCheckboxToggle('${uniqueId}')/

such that after render we would have:

input type=checkbox id=weekday_0-120f481f67e
onclick=javascript:doAllCheckboxToggle('-120f481f67e')/


Any pointers gratefully received.

Thanks,
Andrew
-- 
View this message in context: 
http://www.nabble.com/Access-unique-clientId-in-AjaxFormLoop-iteration-tp23304122p23304122.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Tapestry5 future compatiblity?

2009-04-29 Thread sodium

Hi,

I am still deciding whether to choose Tapestry5 for my upcoming project. I
was reading a lot how each version of Tapestry isn't backward compatible
with older version and how migrating the code to new Tapestry is a
nightmare. I like Tapestry declaractive model but my priority in choosing a
framework is the ease of migrating to the newer version.

So is there any information on regards to whether Tapestry 6 being rehauled
again ? Is this the right time to step into Tapestry or should i wait till
near GA release?
-- 
View this message in context: 
http://www.nabble.com/Tapestry5-future-compatiblity--tp23307803p23307803.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry5 future compatiblity?

2009-04-29 Thread Howard Lewis Ship
Just search the archives for Tapestry 6 and see what you find.

BTW, we're about to offer a stable release of 5.1 that adds huge new
features with (near) perfect backwards compatibility.

On Wed, Apr 29, 2009 at 8:23 PM, sodium sodiu...@yahoo.com wrote:

 Hi,

 I am still deciding whether to choose Tapestry5 for my upcoming project. I
 was reading a lot how each version of Tapestry isn't backward compatible
 with older version and how migrating the code to new Tapestry is a
 nightmare. I like Tapestry declaractive model but my priority in choosing a
 framework is the ease of migrating to the newer version.

 So is there any information on regards to whether Tapestry 6 being rehauled
 again ? Is this the right time to step into Tapestry or should i wait till
 near GA release?
 --
 View this message in context: 
 http://www.nabble.com/Tapestry5-future-compatiblity--tp23307803p23307803.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org