HI ,
I have two components in my container (which extends propertysheetcontainer) .
How do i pass value from component A to Component B , for ex : textfield value in Compoent A to Component B .
Any pointers pls ...
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
The simpliest way is to send data between components ClientSessionState.setAttribute() & ClientSessionState.getAttribute(), but it's ugly.
In your case, i suppose, the best way is:
for (Iterator i = getContainer().getContainedControls(); i.hasNext(); ) { Component cmp = (Component) i.next(); if ("component_name".equals(cmp.getId())) { cmp.getControl(...); } }