[英]Should I use <h:form> in composite component or not
I would like to know whether I should use <h:form>
tag in a composite component or not? 我想知道是否应该在复合组件中使用
<h:form>
标记吗?
For example ; 例如 ;
<composite:implementation>
<h:form>
<h:message for="textPanel" style="color:red;" />
<h:panelGrid columns="2" id="textPanel">
#{cc.attrs.nameLable} :
<h:inputText id="name" value="#{cc.attrs.nameValue}" />
#{cc.attrs.emailLable} :
<h:inputText id="email" value="#{cc.attrs.emailValue}" />
</h:panelGrid>
<h:commandButton action="#{cc.attrs.registerButtonAction}"
value="#{cc.attrs.registerButtonText}"
/>
</h:form>
</composite:implementation>
I too had a same issue, I had included my form inside composite component and that did not work. 我也遇到了同样的问题,我已经将表单包含在复合组件中,但是没有用。 But once I had taken in out from composite component, it worked like a charm.
但是一旦我从复合组件中取出,它就像一个魅力。 So my experience is that it would not work if you had included form inside composite component.
因此,我的经验是,如果您在复合组件中包含了表单,它将无法正常工作。
PS - This is for primefaces. PS-这是素面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.