Re: form with dynamic extensible content

2013-02-04 Thread Nicolas Barrera
Interesting options Lance, I 've thought about the event but not the decorator one. thanks! Nicolás.- On Wed, Jan 30, 2013 at 6:54 PM, Lance Java wrote: > There are a couple of options you may not have considered: > > 1. You could fire a component event from your component to your page. This

Re: form with dynamic extensible content

2013-01-30 Thread Lance Java
There are a couple of options you may not have considered: 1. You could fire a component event from your component to your page. This event may expect a specific return type (perhaps a map) 2. Your component could require a parameter of a specific interface type. This interface might be a decora

Re: form with dynamic extensible content

2013-01-30 Thread Nicolas Barrera
Thanks Lance, I had to use the Environment object..., as my hierarchy of components was the following: PageA --- form -- delegate---> delegate returns the block from pageB using ComponentSource service =-=-=-=-=-=-=-=- PageB ---

Re: form with dynamic extensible content

2013-01-30 Thread Lance Java
Your block will contain fields, these fields will be bound to properties in your page. When the form submits these page properties will be updated. You might choose to fire an event from your component via component resources.fireEvent() to let your page perform some action. All the normal form