| View previous topic :: View next topic |
| Author |
Message |
giles.roadnight
Joined: 20 Jul 2009 Posts: 66 Location: London
|
Posted: Tue Jan 19, 2010 5:13 pm Post subject: New Command Functionality in 2.2 |
|
|
Just wanted to say that I LOVE the new Command tags in 2.2.
Reduce the number of events you need to create a lot - really is so easy to use. The status tag is great too.
It'll make our code base look a lot neater.
Keep up the good work! _________________ Giles Roadnight
http://giles.roadnight.name
blog: http://blog.giles.roadnight.name |
|
| Back to top |
|
 |
Jens Halm Site Admin
Joined: 21 Sep 2007 Posts: 1488 Location: Cologne Germany
|
Posted: Tue Jan 19, 2010 6:01 pm Post subject: |
|
|
Hey, glad you like it!
But for the majority of these ideas you have to thank the Cairngorm people! I just ported their ideas to a native Parsley implementation and polished them a bit and made them consistent with the rest of the messaging system.
The original Cairngorm 3 Command Library can be found here:
http://opensource.adobe.com/wiki/display/cairngorm/HowToUseCairngormIntegration _________________ Jens Halm
Spicefactory |
|
| Back to top |
|
 |
giles.roadnight
Joined: 20 Jul 2009 Posts: 66 Location: London
|
Posted: Thu Jan 21, 2010 8:51 am Post subject: |
|
|
I was wondering about using the CommadnResult tag with message interceptors.
If for example I had a Command that loaded an XML file. Would I be able to write an inteceptor that would intercept the result event, turn the xml into objects then re-despatch the result event?
Thanks _________________ Giles Roadnight
http://giles.roadnight.name
blog: http://blog.giles.roadnight.name |
|
| Back to top |
|
 |
Jens Halm Site Admin
Joined: 21 Sep 2007 Posts: 1488 Location: Cologne Germany
|
Posted: Thu Jan 21, 2010 11:32 am Post subject: |
|
|
No, you can only intercept the Command, not the result. The latter would be very difficult, not technically, but logically, as there'd be no easy way then to distinguish between interceptors for the command and for the result.
But you can order result handlers (with the order attribute) and then for example use a type of ResultTask that allows for modification of the result value. _________________ Jens Halm
Spicefactory |
|
| Back to top |
|
 |
giles.roadnight
Joined: 20 Jul 2009 Posts: 66 Location: London
|
|
| Back to top |
|
 |
|