*/
void bind(IComponent container, IComponent component,
IContainedComponent contained, String defaultBindingPrefix)
{
IComponentSpecification spec = component.getSpecification();
boolean formalOnly = !spec.getAllowInformalParameters();
if (contained.getInheritInformalParameters())
{
if (formalOnly)
throw new ApplicationRuntimeException(PageloadMessages
.inheritInformalInvalidComponentFormalOnly(component),
component, contained.getLocation(), null);
IComponentSpecification containerSpec = container
.getSpecification();
if (!containerSpec.getAllowInformalParameters())
throw new ApplicationRuntimeException(PageloadMessages
.inheritInformalInvalidContainerFormalOnly(container,
component), component, contained.getLocation(),
null);