You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ta...@jakarta.apache.org on 2004/04/07 03:40:57 UTC

[Jakarta Tapestry Wiki] Updated: Gotchas

   Date: 2004-04-06T18:40:56
   Editor: 68.0.147.44 <>
   Wiki: Jakarta Tapestry Wiki
   Page: Gotchas
   URL: http://wiki.apache.org/jakarta-tapestry/Gotchas

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -4,8 +4,19 @@
 
 = initial-value attribute of property-specification =
 even the initial-value is the wrong place to initialize properties of a page with
-client specific information. The value of initial-value has to be a global, client independant
+client specific information. The value of initial-value has to be a global, client independent
 value. This value will be seen by the next user that got this page from the page pool.
 The initial-value attribute should only be used to set 'constant' values with a scope of all
 users of the application.
 As mentioned in the previous gotcha implement PageRenderListener and then initialize your properties in pageBeginRender() to any client-specific value.
+
+= form parameter direction =
+If the "form" direction is specified for a component parameter, that component must implement the IFormComponent interface, directly or indirectly (through inheritance).
+If there is a component which wraps a form components and is, itself, embedded in a form but does not implement the IFormComponent interface, then the 
+parameter directions for any inherited-bindings should be of direction "in", rather than "form" 
+
+Example: a page has a property-specification named "myValue". The page also embeds a component of type "MyComponent" which is not an IFormComponent. 
+"MyComponent" embeds a TextField and has a required parameter "textFieldValue". The page binds myValue to textFieldValue. 
+MyComponent, in turn, uses an inherited-binding to bind textFieldValue to the "value" parameter of the TextField component.
+Even though the parameter "value" is direction "form", the "textFieldValue" parameter should
+be direction "in".

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org