Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by CesarLesc: http://wiki.apache.org/tapestry/Tapestry5HowToUseForms ------------------------------------------------------------------------------ It's a good idea to give an id to your forms, either in a component annotation in your code, or in the html template. Here's how it looks using annotations: {{{ - @Component(id = "foo") + @Component(id = "foo") - private Form form; + private Form form; }}} - Here's how it looks using your html template: + Here's how it looks using your html template, Tapestry will create a form component because the component declaration and the form tag share the same id. + {{{ - <t:form t:id="foo"> + <form t:id="foo"> ...stuff... - </t:form> + </form> }}} Now when you have ids for your forms, you probably want a specific method to get called when a particular form is acted on. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
