You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Julien Martin <ba...@gmail.com> on 2012/01/20 10:58:03 UTC
Customizing the label for a T5 checklist's checkbox
Hello,
I need to customize the label for a checklist's checkbox. As of now, I have
a JPA entity behind each of the checkbox and it appears that the entity's
toString method is used to display the label.
However, the entity is only a three way join table that only contains three
integer fields.
I therefore either need for the label to be blank or to be able to
customize it.
Can anyone please advise?
Thanks in advance,
J.
<t:checklist t:id="availabilities" validate="required"
encoder="advertisementToTimeSlotToDayEncoder" model="availabilities"
label="Matrix of availabilities"/>
Re: Customizing the label for a T5 checklist's checkbox
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Fri, 20 Jan 2012 07:58:03 -0200, Julien Martin <ba...@gmail.com> wrote:
> Hello,
Hi!
> I therefore either need for the label to be blank or to be able to
> customize it.
This is defined by the model parameter, which is of type SelectModel. Just
provide a SelectModel with OptionModels containing the desired labels. The
easier way of doing it is by using the SelectModelFactory service.
--
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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org