Any one has come across of 'how to communicate between custom components'.
Let me take scenario:
1. I have an application
2. Application has 2 custom components
3. Custom Component One: Has Combo box
4. Custom Component Two: Has Text Area
5. Requirement is- when user’s selects value in combo box then pass selected value to Custom Component Two and display message appropriately in Text Area.
Please help me to solve this problem?
Component 1 would dispatch event,
Main app would listen for event and handle it.
YES we can pass the data from one component to other component.
Use Events.. and pass the selected item of the combobox from one component to the other component TextArea...! i will make it clear.. Just create a custom Event and keep a data field in that event class when u change the combobox value create instance of that custom component and assign the combobox selecteditem to the data feild of customevent and dispatch that event.. and handle that event in the otherComponent and retrive the data feild of that event and assign it to the TEXT AREA.... I hope this will help you.. If you are not clear please feel free to keep a reply...!