I came across one situation when using dashboard component of primefaces.
Running code bellow gives me following error
What could be possible solution if I need to have scenario like following?Caused by: javax.faces.FacesException: Cannot find dashboard "board" in view
Code: Select all
<p:growl id="growl" showDetail="true" />
<p:dashboard id="board" model="#{dashboardBean.model}"
reorderListener="#{dashboardBean.handleReorder}"
onReorderUpdate="growl"/>
<table>
<ui:repeat var="species" value="#{dashboardBean.speciesList}">
<tr>
<td>
<p:panel id="travel" header="Travel" toggleable="true" closable="true" style="width:200px">
<h:outputText value="#{species.name}" />
</p:panel>
<p:draggable for="travel" dashboard="board" helper="clone"/>
</td>
</tr>
</ui:repeat>
</table>