I have written an application property block (per the BeanEditForm tutorial)
for a custom type. Is there a ideal event in the block component when I can
assign the property to the PropertyEditContext?

For instance, I have written a GenericSelectModel and it shows up correctly
according to my custom edit block. But I'm not sure, in my corresponding
Java class:

a) when to assign the selected value to the
PropertyEditContext.setPropertyValue method. Is there an event I will see?
The enclosing BeanEditor gets onSuccess ... but I'm not sure what event this
custom, inner component sees ... It has to be after the user clicks SUBMIT
since the value needs to already be set.

b) how this selected value, once it is in the PropertyEditContext .... how
it is made available to my onSuccess method in the encapsulating BeanEditor.
Does that make sense? Do I add a PropertyEditContext to both classes?

c) one final note - if I validate the custom property in this edit block -
how do I indicate the problem ... if I don't have a form object etc as the
Validation page suggests,
http://tapestry.apache.org/tapestry5/guide/validation.html.

Thanks for any assistance.

-Luther

Reply via email to