Pretty straight forward question. Does selecting a component group, at runtime, by the user or through a component selection action, select all components and/or component groups that this group contains in its component list? I apologize as I do believe this was not quite answered in section 5.7 of the documentation or it seemed unclear to me. The select action on a group seems to enable selection for sub-components, but not select them. I do not have a test for this, but I was hoping that someone can spare me the trouble.
Three more questions related to this.
Is there a way to select all components in the project's component list, for instance in a full installation scenario?
Should the default for a component group be <selected>0</selected>, where it contains components that should not be selected by default?
What happens in the following scenario? Is componentA installed? Is componentB installed and everything else in the sub-group? Is this more than three questions?
asked 08 Dec '11, 13:56
Earlier today I found the following to be true about your main question:
When the subcomponent is set to selected and not editable
then its actual setting will be the same as the parent. So, without any additional logic involved, if I selected a top level component that had 3 subcomponents with the above settings they would all be selected. If I deselect the top level component all child components become deselected. If instead the canBeEdited flag is true for any of the children then the child can be selected/deselected independently of the parent. And I'll state the obvious that if you set the selected flag to false then by default the child will not be selected.
answered 08 Dec '11, 15:17