[flexcoders] How to share VO with multiple components/views - Nested Binding?

2008-11-11 Thread pbrendanc
I have some data (e.g. currently selected employee summary data) that
appears (Read Only) on several views/components. 

I am retrieving the selected data and saving in a VO object, but I'd
like to share this VO data with several forms/views - I thought I
could do this via binding, but some of the views are nested within
other components so I'm not sure how to set this kind of
(indirect/nested) binding syntax or if this is possible.

There must be a better way - anyone suggest an alternative appproach
or provide an example of sharing a VO with multiple forms/views?

TIA,
Patrick  



Re: [flexcoders] How to share VO with multiple components/views - Nested Binding?

2008-11-11 Thread Josh McDonald
I usually use a combination of dependency injection and binding, with things
being injected into an outer component and passing through only what
nested components need with bindings. I know it's not the fastest way, but I
guess I'm lucky that I'm not doing anything where this sort of latency
becomes visible to users.

-Josh

On Wed, Nov 12, 2008 at 4:49 PM, pbrendanc [EMAIL PROTECTED] wrote:

 I have some data (e.g. currently selected employee summary data) that
 appears (Read Only) on several views/components.

 I am retrieving the selected data and saving in a VO object, but I'd
 like to share this VO data with several forms/views - I thought I
 could do this via binding, but some of the views are nested within
 other components so I'm not sure how to set this kind of
 (indirect/nested) binding syntax or if this is possible.

 There must be a better way - anyone suggest an alternative appproach
 or provide an example of sharing a VO with multiple forms/views?

 TIA,
 Patrick


 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk