Code: Select all
<pe:dynaFormControl type="input"
for="formInputText">
<p:inputText id="formInputText" label="test label"/>
</pe:dynaFormControl>
Code: Select all
<pe:dynaFormControl type="input"
for="formInputText">
<p:inputText id="formInputText" label="test label">
<p:outputLabel value="test label"/>
</p:inputText>
</pe:dynaFormControl>
If you add the label programmatically, the rendered result looks quite neat.
I was wondering why it is not possible to add a label to a DynaForm control using the control's built-in "label" attribute and if this is the desired behaviour. Could anybody give me a hint why the rendered output is so different (either adding a label using "row.addLabel("test label")" semantics in the model or adding a child <p:outputLabel> to the <p:inputText> in the <p:dynaFormControl> tag)?