Just made component parameters smarter.

First, you can set default values for components, just by updating the
fields.  I.e.

 @Parameter
 private int count = 5;

That value, 5, becomes the default value if the parameter is not bound. It
also is the value the field is reset to after the component renders.

And parameters that are not bound can be read and updated with no side
effects.  This removes the need for isBound() checks before reading or
updating a parameter.

I'm going to document this, this afternoon.

--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

Reply via email to