----- Original Message -----
Sent: Wednesday, September 25, 2002 12:03
AM
Subject: [Tapestry-developer] Questions
about components inside form
Sorry if this a dumb question.
I am developing a component , DateSelection , which uses
TextField for year ,
PropertySelection for month/day/hour/minute
.
I develop this component because this component can be used
in many situations,
such as user registration , order form processing
...etc.
But I found that TextField and PropertySelection must be
embedded in "Form",
which is not initially decided yet . That is , in
DateSelection.html , there
should be a <form jwcid="selectionForm"> wrapping
around the year/month/day...
But the "DateSelection" will finally be embedded into other "Form",
such as registration form or order form.
Is such design correct ? I feel the "nested form"
queer ...
Or which is the proper design for this component
?
By the way , when developing DateSelection
component,
I have to write MonthPropertySelectionModel /
DayPropertySelectionModel /
HourPropertySelectionModel / and
MinutePropertySelectionModel ... which
implements IPropertySelectionModel .
Is this too overkill ? Is there any simpler way
?