当前位置: 动力学知识库 > 问答 > 编程问答 >

Primefaces DynaForm surrounding component

问题描述:

I have a question - maybe you can provide me solution for this.

I need to create structure like follow:

<div class="header">

<h:outputText value="#{model.header1}" />

<h:outputText value="#{model.label1}" />

<p:inputText value="#{model.value1}" />

<h:outputText value="#{model.label2}" />

<p:inputText value="#{model.value2}" />

</div>

<div class="header">

<h:outputText value="#{model.header2}" />

<h:outputText value="#{model.label3}" />

<p:inputText value="#{model.value3}" />

<h:outputText value="#{model.label3}" />

<p:inputText value="#{model.value3}" />

</div>

...

The problem is that these header DIVs are also dynamically added and contains dynamic components too (so something like DynaForm nested in DynaForm).

I was thinking about creating two DynaFormControls: headerstart with opening <div> and headerend with </div> but this is not valid (got exception about unclosed tag).

I would be very glad to hear any help.

分享给朋友:
您可能感兴趣的文章:
随机阅读: