Please file a JIRA asking for an additional parameter (<p:xxxDescription>, for example) in BeanEditor/BeanEditForm that is put inside the field edition block. Or some other message key convention, such as xxx-description, to do the same without any markup customization. Meanwhile, you could try writing a mixin that adds the descriptions after BeanEditor/BeanEditForm is rendered.

On Tue, 08 Feb 2011 18:03:08 -0200, Mark <mark-li...@xeric.net> wrote:

On Tue, Feb 8, 2011 at 12:53 PM, LLTYK <ll...@mailinator.com> wrote:

A more descriptive label would be easy, just add the keys to the properties file. More than that will probably delve into custom decorator or property
block territory.

I need the label to stay the same. I'm familiar with the property
block, but my goal is to be able to create this without needing to
customize the .tml file.

Ideally what I want is something like this:

class Person {
   @ToolTip("The first name of the person being edited")
   String firstName;
   @ToolTip("The last name of the person being edited")
   String lastName;

   //getters and setters

}

Assuming I can figure out how to setup the annotation, what is the
best way to change the filed names on the the bean edit form, without
resorting to creating a parameter for each attribute?

I looked at some of the custom decorator documentation, but it seems
designed for modifying services rather than components.

Mark

---------------------------------------------------------------------
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, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
Coordenador e professor da Especialização em Engenharia de Software com Ênfase em Java da Faculdade Pitágoras
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