tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tapestry Wiki] Trivial Update of "Tapestry5HowToUseForms" by CesarLesc
Date Mon, 08 Oct 2007 02:02:08 GMT
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message