T5: creating a tutorial for 5.0.18

2009-03-21 Thread Angelo Chen
Hi, using this one:mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DgroupId=org.apache.tapestry -DartifactId=tutorial1 -DpackageName=org.apache.tapestry5.tutorial it creates one for 5.1.0.1, is there a way to create one for 5.0.18? The reas

RE: dialog component

2009-03-21 Thread Jorge Saridis
Robert, thank you very much for your answer. I've been using this component. It's working better with the javascript upgrade. I don't know how to call a server side function while showing the dialog. And if the dialog contains a form, how can I close it from the submission server side event? Thanks

Re: Tapestry4e - New free eclipse plugin for Tapestry 5

2009-03-21 Thread Martin Strand
On Sat, 21 Mar 2009 20:24:52 +0100, Inge Solvoll wrote: > It would also be nice with content assist on IOC code. For example "add new > dependency" feature, which adds a private final field and a constructor > argument for the new dependency. In Eclipse, just add the constructor parameter and

RE: dialog component

2009-03-21 Thread Robert, Brice
Use the ChenilleKit Window Component http://www.chenillekit.org/chenillekit-tapestry/ref/org/chenillekit/tape stry/core/components/Window.html but you have to upgrade prototype since the one shipped with 5.0.18 has a bug. https://issues.apache.org/jira/browse/TAP5-416 -Original Message-

dialog component

2009-03-21 Thread Jorge Saridis
Hi, does anybody know if there is an Ajax Dialog component for tapestry 5 like the one for tapestry 4.1? Thanks in advance George

Re: Tapestry4e - New free eclipse plugin for Tapestry 5

2009-03-21 Thread Inge Solvoll
Agree about the name, it implies that is's T4... :) People here claim that you don't need IDE support for T5, that isn't entirely true. There's still plumbing required to write T5 components and pages. Obviously a LOT less than in, say, Struts. But still plumbing. Some of the plumbing is now handl

Re: 5.0.18 - 5.1.0.1 upgrade problems

2009-03-21 Thread Robert Zeigler
This is already clear. Stuff in org.apache.tapestry5.services, org.apache.tapestry5.ioc.services, etc. can be injected. (For that matter, org.apache.tapestry5.internal.services classes can be injected as well, but that's not advised). Anything else can't be injected into other services. C

Re: t5: turning an IOC app into a module

2009-03-21 Thread Thiago H. de Paula Figueiredo
Em Sat, 21 Mar 2009 10:56:57 -0300, Angelo Chen escreveu: Hi, Hi! Following this article http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly IOC only app , I was able to make a java application, now I'd like to turn this into a T5 module so that I can simply specify drop this jar

Re: New to Tapestry- Lots of questions sorry!

2009-03-21 Thread Thiago H. de Paula Figueiredo
Em Sat, 21 Mar 2009 04:06:13 -0300, Amit Nithian escreveu: Also can you explain what this does? @Parameter(required=true) private String ccNumber This is used to declare a component parameter, not being used in pages. -- Thiago H. de Paula Figueiredo Independent Java consultant, develope

t5: turning an IOC app into a module

2009-03-21 Thread Angelo Chen
Hi, Following this article http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly IOC only app , I was able to make a java application, now I'd like to turn this into a T5 module so that I can simply specify drop this jar into a T5 application and all the services available for us. any idea how

Re: 5.0.18 - 5.1.0.1 upgrade problems

2009-03-21 Thread Ville Virtanen
It would be great if the documentation (javadoc) for an example would state this clearly in every service interface documentation IF the service cannot be used in another service. Now you just need to know which services are "special". - Ville Thiago H. de Paula Figueiredo wrote: > > On Fri,

Re: New to Tapestry- Lots of questions sorry!

2009-03-21 Thread Robert Zeigler
Nah, you wouldn't need that. You can do things like: .tml: ... .java: public String getTransactionClass() { switch(transactionType) { case ACCEPTED: return "validtransaction"; case DECLINED: return "declinedtransaction"; default: return ""; } And so forth. You can also do thi

Re: T5: ordering of Dispatchers

2009-03-21 Thread Robert Zeigler
That's correct. Given your code, you would have: hisDispatcher, then myDispatcher, and then PageRenderDispatcher. Robert On Mar 20, 2009, at 3/207:20 PM , Angelo Chen wrote: Thanks for all the answers. the ordering clauses, you meant something like this: configuration.add("MyDispatcher", m

Re: New to Tapestry- Lots of questions sorry!

2009-03-21 Thread Amit Nithian
Thanks both for your answers! They were helpful. I guess my angle was more from an older ASP web application paradigm or even old style PHP which didn't have much distinction with models, views, and controllers. My only question/complaint about the jumping back and forth between the template and Pa