On Sat, 05 Feb 2011 10:32:49 -0200, Joost Schouten (mailing lists)
<[email protected]> wrote:
Hi,
Hi!
@Property
@Parameter(value="actionZone")
private String actionZone;
which caused the exception at [2]. I would not expect this behaviour
based on the documentation at [1] and am wondering if I should file a
bug report.
I think this is something that could be detected by Tapestry.
The situation probably won't happen a lot and in all
honesty having the default value for a property the same as my
property name does not deserve beauty prize.
Hehehe agreed. :)
@Property
@Parameter(value="literal:actionZone")
private String actionZone;
But I do believe there is nothing wrong with my first option.
If your default value was dynamic, you could just rename your
getActionZone() method to defaultActionZone() and its return value would
be used ad the default one for the parameter.
--
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]