On Fri, 21 May 2010 10:55:17 -0300, Bryan Lewis <jbryanle...@gmail.com>
wrote:
Cool. It reminds me of a question I've been meaning to ask.
LinkSubmit is a component, but we could have a mixin like Inge suggested.
:)
What's the best way to define the default value for component parameters?
Is it:
@Parameter(defaultPrefix = BindingConstants.LITERAL)
private String clientEvent = "change";
or:
@Parameter(value = "change", defaultPrefix =
BindingConstants.LITERAL)
private String clientEvent;
or some method with a name starting with "default"? I think I've seen
all three usages.
If the default is constant, I use @Parameter(value = "change"). If not, I
use a defaultXXX() method.
--
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