Re: [T5.2] Principle 1, Static Structure Dynamic Behaviour
Hi Actually, there is no problem if you do that since you generate a valid action URL of your form and use request service to read parameter values. But this is not how Tapestry has been designed, Tapestry is a component oriented framework, not an action oriented framework. Static structure simply means that you cannot create *new* instances of component at runtime. That does not mean that you as a developer can't go beyond this principle and use Request.getParameter() method or even generate plain HTML in dom tree But if you use Tapestry components, you must be aware that even if you put a component inside a loop, the inner component will be 'rendered' n-times but ultimately there is only ONE instance of this component. 2010/10/5 iberck ibe...@gmail.com: Hi, thank you for the response So I don't understand the principle 1. What happend if I add a html element in the tree dom and I get the value from the request after submit ? I'm violating the principle? Is there a problem if I do that? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-Principle-1-Static-Structure-Dynamic-Behaviour-tp3198357p3198857.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 -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5.2] Principle 1, Static Structure Dynamic Behaviour
terrific response Thank you very much -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-Principle-1-Static-Structure-Dynamic-Behaviour-tp3198357p3198975.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.2] Principle 1, Static Structure Dynamic Behaviour
Thank you all for your answers The concept is more clear for me... But I have another question? From this principle of static structure dynamic behaviour, can I create with T5 a CRM based on plugins like drupal/jomla ? Thanks in advance -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-Principle-1-Static-Structure-Dynamic-Behaviour-tp3198357p3199239.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.2] Principle 1, Static Structure Dynamic Behaviour
On Tue, 05 Oct 2010 02:41:18 -0300, iberck ibe...@gmail.com wrote: Hi, thank you for the response Hi! So I don't understand the principle 1. What happend if I add a html element in the tree dom and I get the value from the request after submit ? I'm violating the principle? You are not violating the principle. The static structure we're talking about is the page and component instances, not the result of their rendering. Is there a problem if I do that? No problem at all. :) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5.2] Principle 1, Static Structure Dynamic Behaviour
On Tue, 05 Oct 2010 07:46:22 -0300, iberck ibe...@gmail.com wrote: But I have another question? From this principle of static structure dynamic behaviour, can I create with T5 a CRM based on plugins like drupal/jomla ? Yes. I can think of two approaches: 1) Override or advise the Tapestry template loading service, so users can edit templates. 2) (Strongly preferred) Use some templating engine like Freemarker to let the users edit content and Tapestry for anything else. Tapestry templates were always meant to be used by developers only, not end users, while Freemarker and similar tools are way more suited for this task. Search the mailing list for CMS for more discussions about this. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5.2] Principle 1, Static Structure Dynamic Behaviour
My Tapx library includes a component that reads an external template file (as XML) and can render it as part of a Tapestry page, including delegating parts of it to blocks, and processing expansions. Documentation coming (but lower priority than T5.2 docs, so be patient). On Tue, Oct 5, 2010 at 4:18 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Tue, 05 Oct 2010 07:46:22 -0300, iberck ibe...@gmail.com wrote: But I have another question? From this principle of static structure dynamic behaviour, can I create with T5 a CRM based on plugins like drupal/jomla ? Yes. I can think of two approaches: 1) Override or advise the Tapestry template loading service, so users can edit templates. 2) (Strongly preferred) Use some templating engine like Freemarker to let the users edit content and Tapestry for anything else. Tapestry templates were always meant to be used by developers only, not end users, while Freemarker and similar tools are way more suited for this task. Search the mailing list for CMS for more discussions about this. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - 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 The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5.2] Principle 1, Static Structure Dynamic Behaviour
Thank you Howard, Thank you Thiago -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-Principle-1-Static-Structure-Dynamic-Behaviour-tp3198357p3199978.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
[T5.2] Principle 1, Static Structure Dynamic Behaviour
Hi forum, I have a question, since T5.2 does't use a pages pool, what happend with Tapestry principle 1? Now, can we have a more flexible component framework? :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-Principle-1-Static-Structure-Dynamic-Behaviour-tp3198357p3198357.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.2] Principle 1, Static Structure Dynamic Behaviour
On Mon, 04 Oct 2010 17:29:36 -0300, iberck ibe...@gmail.com wrote: Hi forum, Hi! I have a question, since T5.2 does't use a pages pool, what happend with Tapestry principle 1? It stays the same. The difference is that there's only one instance for every page. Now, can we have a more flexible component framework? :) We have a very flexible component framework. :) You only need to think some scenarios in a little different way. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5.2] Principle 1, Static Structure Dynamic Behaviour
The documentation is in flux, but I actually just re-wrote that section of the docs... feedback is welcome. https://cwiki.apache.org/confluence/display/TAPESTRY/Principles Static structure referred to page pooling a lot, but it's really more than that. Josh On Mon, Oct 4, 2010 at 1:29 PM, iberck ibe...@gmail.com wrote: Hi forum, I have a question, since T5.2 does't use a pages pool, what happend with Tapestry principle 1? Now, can we have a more flexible component framework? :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-Principle-1-Static-Structure-Dynamic-Behaviour-tp3198357p3198357.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 -- -- http://www.bodylabgym.com - a private, by appointment only, one-on-one health and fitness facility. -- http://www.ectransition.com - Quality Electronic Cigarettes at a reasonable price! -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5.2] Principle 1, Static Structure Dynamic Behaviour
Hi, thank you for the response So I don't understand the principle 1. What happend if I add a html element in the tree dom and I get the value from the request after submit ? I'm violating the principle? Is there a problem if I do that? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-Principle-1-Static-Structure-Dynamic-Behaviour-tp3198357p3198857.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