cannot add 2 pm:listview with in a form

UI Components for JSF
Post Reply
sandeep.shekhawat@
Posts: 3
Joined: 29 Jul 2011, 22:54

30 Jul 2011, 00:15

hi there,

I am trying to add 2 pm:listviews with in the one form and for some reason the second one doesnt show up in the rendered page.

ex code:
<pm:view id="summaries" swatch="c">
<pm:header title="#{controller.title}">
<f:facet name="left"><pm:button value="Back" icon="back" role="back"/></f:facet>
</pm:header>

<pm:content>
<h:form id="entriesForm">

<pm:listView id="entries1" inset="true" value="#{controller.learners}" var="regLearner">
<p:column>
<p:commandLink value="#{regLearner.learnerName}" update="content" oncomplete="PrimeFaces.navigate('details')">
</p:commandLink>
</p:column>
</pm:listView>

<p:spacer height="10em" />

<!-- This list right here does not show up in the UI -->
<pm:listView id="entries2" inset="true" value="#{controller.learners}" var="regLearner">
<p:column>
<p:commandLink value="#{regLearner.learnerName}" update="content" oncomplete="PrimeFaces.navigate('details')">
</p:commandLink>
</p:column>
</pm:listView>

<pm:field>
<h:outputLabel for="inputTextarea" value="Comments: "/>
<h:inputTextarea id="inputTextarea" />
</pm:field>

<pm:buttonGroup orientation="horizontal">
<pm:commandButton value="Submit" type="button"/>
<pm:commandButton value="Cancel" type="button"/>
</pm:buttonGroup>
</h:form>
</pm:content>
</pm:view>

Any pointers would be greatly appreciated....

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests