JSF programmatically component in Primefaces Tab

流过昼夜 提交于 2019-12-12 04:35:15

问题


I created some programmatily component in a Primefaces Tab.

<h:form>
<p:tabView id="documentDetailsTabs" dynamic="true" cache="true"   >  

    <p:tab id="contenutoTab" title="#{msg['content']}" >
        <p:panelGrid  columns="4" style="width:100%"
               styleClass="table-4col-noborder"  
               binding="#{documentContentController.propertiesGridComponentModify}"
               columnClasses="label-col-4col, value-col-4col,label-col-4col, value-  col4col">  

</p:panelGrid>

    <p:commandButton value="Save" 
                    styleClass="buttonStyle"
                    process="@form"  

                    action="#{documentContentController.checkInAction}"
                    />          
    </p:tab>
</p:tabView>
</h:form>

The form data aren't setted in backing bean of components. If I move the p:panelGrid component out of the p:tabView the code works.

I'm using Primefaces 3.2 and JSF 2.1. Can you help me, please?

来源:https://stackoverflow.com/questions/18570252/jsf-programmatically-component-in-primefaces-tab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!