Hi,

 I am having trouble with a component parameter whose
 direction is "form".

 I want to have a component whose one property is set by its
 container. In addition I want that property be set by tapestry
 during the rewound of the form at the same moment when other
 properties in the form are set.

 1/
 
 public MyComponent extends BaseComponent
 {
 public void setComponentProperty(Object value) { ... }
 public Object getComponentProperty() { ... }
 }

 <component-specification class="MyComponent">
   <parameter name="componentProperty" direction="form"/>
 </component-specification>

 2/
 
 public MyContainer extends BasePage
 {
 public Object getContainerProperty() { ... };
 }

 <page-specification class="MyContainer">
   <component id="componentInstance" type="MyComponent">
     <binding name="componentProperty" value="containerProperty"/>
   </component>
 </page-specification>
 

 I did that but I have the following problem :

 1.at first display of page, componentProperty is set to
 containerProperty which is fine.

 2.when form is submited and rewound is done, componentProperty is set
 to null instead of querying the container again the property to set.

 3.when render occurs again, it's the same than in 1.

 thank you,
 
-- 
Best regards,
 julien                          mailto:[EMAIL PROTECTED]

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to