Last I knew, nested forms were NOT allowed (by the HTML/HTTP? specs).  And I
have vague recollections of Tapestry preventing nested forms.  If your
component needs to work within a form, then do not put a form in your
component.  Or if you do, make it somehow conditional so if the containing
page/component also has a form, it can be turned off.  We solve this by
putting a form on every page rather than in every component.  YMMV.

Richard

----- Original Message -----
From: "�˦�" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 31, 2002 5:56 AM
Subject: [Tapestry-developer] Questions about components inside form


Congratulations , Tapestry will join Apache...

But I still hope someone can help me solving the immature dumb question ,
which blocks me for one month...


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 initially pendent . 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 user-registration form or order-processing 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 ?





-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to