Hi Davor,

This is interesting, can you give a simple but complete sample how it works?
thanks.

A.C.


Davor Hrg wrote:
> 
> 
> I for enitity editing have a component
> and throw new events based on button clicked;
> 
> then capture them
> onEntitySaved(id, entity, isNew)
> onCancel()
> 
> this way outside component need not know about buttons inside..
> but can rely on event names..
> 
> When I have parent enitity form that embeds child entity form
> I can then do:
> onEntitySavedFromChildForm(id, child,isNew){
>     if(isNew) child.setParent(parent);
> }
> 
> 
> to generate your own event:
> 
>     @Inject private ComponentResources _resources;
> ....
>    _resources.triggerEvent("entitySaved", new Object[]{_entityId,
> _entity, isNew}, null);
> 
> 
> Davor Hrg
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-determine-button-clicked-in-a-beaneditor-tp15841944p15851594.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to