Passing WOActionResult to Custom Component

2012-10-24 Thread Daniele Corti
Hi, probably is a simple thing, but I'm not able to create a custom component that allow to pass a WOActionResult and fire it when the user click on a button displayed by the component. I mean, I wanted to create a Component that show a Modal Container that allow the user to confirm an action.

Re: Passing WOActionResult to Custom Component

2012-10-24 Thread Bastian Triller
did you override synchronizesVariablesWithBindings in MyComponent, so that it returns false? That prevents the action to get fired while rendering MyComponent. You cann then bind the action to the SubmitButton in MyComponent with ^actionBindingName in the parent component of MyComponent. See

Re: Passing WOActionResult to Custom Component

2012-10-24 Thread Henrique Gomes
On Oct 24, 2012, at 3:14 PM, Daniele Corti wrote: wo:MyComponent action = $myAction linkLabel = Delete confirmMessage = Confirm Delete continueValue = Continue cancelValue = Cancel / How can I handle the passed WOActionResult in the action bind to fire it when the user press the

Re: Passing WOActionResult to Custom Component

2012-10-24 Thread Daniele Corti
Hi! Thank you, this was exactly what I need! Following your advice I subclassed ERXNonSynchronizingComponent in MyComponent. Then I've added : wo:WOSubmitButton action = $^action value = $^confirmLabel/ wo:WOSubmitButton I call MyComponent: wo:MyComponent action=$myAction confirmLabel =