https://issues.apache.org/jira/browse/TAP5-1167

On Fri, May 21, 2010 at 4:07 PM, Thiago H. de Paula Figueiredo <
[email protected]> wrote:

> On Fri, 21 May 2010 10:55:17 -0300, Bryan Lewis <[email protected]>
> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to