On Tue, 24 May 2011 17:18:27 -0300, <jackkuros...@w9z.org> wrote:

OK I understand how to do that and it works as long as I know the name of yourField so I can use:

    @InjectComponent
    private Field yourField;

Not necessarily. See the Component getEmbeddedComponent(String embeddedId) method in ComponentResources.

In order to have yourField to create the Validator. This would require knowing the name and number of fields at compile time. In my code, the fields are generated from user specified attributes so I don't know what they are called until the app is running.

How do you generate your fields?

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