次の(簡略化されていますが、問題を実証できます)コンポーネントがありますmy:slot
<composite:interface>
</composite:interface>
<composite:implementation>
<h:panelGroup styleClass="xxx" layout="block">
<composite:insertChildren/>
</h:panelGroup>
</composite:implementation>
次に、このコンポーネントを 2 つのフォームで使用するフォームを作成します。
<my:slot>
<h:form id="f3">
<p:commandButton value="update f4" update=":f4"/>
</h:form>
</my:slot>
<my:slot>
<h:form id="f4">Form f4</h:form>
</my:slot>
このコードでは、エラーが発生しますCannot find component with identifier ":f4" referenced from "j_idt11:f3:j_idt12"
。h:form id="f4"
の外側を使えばOKですmy:slot
。h:form
上記のような独自のコンポーネントで使用するにはどうすればよいですか?