On Wed, 28 Sep 2011 12:53:52 -0300, Kevin Jing <kevinhig...@gmail.com> wrote:

Hi, gus,

Hi!

1. How do we add the components or remove them dynamically by coding?

In Tapestry, the component tree is static, but you can have them render very dynamically. Nice example here: http://tawus.wordpress.com/2011/04/20/tapestry-magic-3-plugin-blocks/.

2. How do we set disabled property of components dynamically, by coding not EL expression to binding a method in page class.

Easy: <a t:type="EventLink" disabled="disableLink">

In your page or component class:

public boolean isDisableLink() {
        ...
}

3. Is it easy for tapestry to intergrate some other famous framework, like freemaker, velocity, Google guice and some thing like that.

Very easy. ChennileKit provides FreeMarker and Velocity integration: http://www.chenillekit.org/chenillekit-template/index.html. Guice wasn't integrated yet as far as I know, but Spring integration is already provided and the same approach could be used for Guice or any other dependency injection framework. Geoff's Tapestry JumpStart has an example of integration at http://jumpstart.doublenegative.com.au/jumpstart/examples/state/ejb3, the Tapestry 5 wiki too: http://wiki.apache.org/tapestry/JEE-Annotation.

By the way, Guice inspired Tapestry-IoC a lot.

--
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

Reply via email to