Referring composite component ID in f:ajax render
问题 I am writing a composite component that is intended to wrap an input element, and augment it with an 'optional field' designation and h:message element below it. Here is the component (in input.xhtml file): <composite:interface/> <composite:implementation> <div> #{component.children[1].setStyleClass(component.children[1].valid ? '' : 'inputError')} <composite:insertChildren/> </div> <h:panelGroup styleClass="optional" rendered="#{!component.parent.children[1].required}" layout="block" > #