sbl*_*ndy 3 java jsf seam facelets
我需要从动作处理程序中确定表单字段的ID.该字段是包含的facelets组件的一部分,因此表单将有所不同.
included.xhtml
<ui:component>
<h:inputText id="contained_field"/>
<h:commandButton actionListener="#{backingBean.update}" value="Submit"/>
</ui:component>
Run Code Online (Sandbox Code Playgroud)
example_containing.xhtml
<h:form id="containing_form">
<ui:include src="/included.xhtml"/>
</h:form>
Run Code Online (Sandbox Code Playgroud)
如何update
在运行时确定方法中表单的ID ?或者更好的是,直接输入字段的ID.