<p:dialog> with <p:dataTable>

UI Components for JSF
Post Reply
usman
Posts: 6
Joined: 09 May 2010, 08:12
Location: Pakistan

26 Jun 2010, 23:15

Hello, i am facing a problem that whenever i use datatable inside a dialog then any call to my backing-bean actionListener is throwing an exception.
Exception is:
com.sun.faces.lifecycle.ApplyRequestValuesPhase execute
WARNING: -1
java.lang.IllegalArgumentException: -1
at javax.faces.component.UIData.setRows(UIData.java:518)
at org.primefaces.component.datatable.DataTable.processDecodes(DataTable.java:435)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
at javax.faces.component.UIForm.processDecodes(UIForm.java:209)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:540)
at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

but when i remove the dataTable from the dialog then it is ok. Code for dialog is:

<p:dialog modal="false" id="allMachinesDialog" widgetVar="allMachinesPopUp" effect="fade" draggable="true" close="true" width="700" fixedCenter="true"
style="padding: 20px;" visible="false" header="All Machine(s)">

<p:dataTable id="dtAllMachinesPopUp" value="#{ManageAssignServerBean.allMachinesListDataModel}"
var="machine">

<p:column>
<f:facet name="header">
<h:outputText value="Name" />
</f:facet>
<h:outputText value="#{machine.name}" />
</p:column>

<p:column>
<f:facet name="header">
<h:outputText value="IP" />
</f:facet>
<h:outputText value="#{machine.ip}" />
</p:column>

<p:column>
<f:facet name="header">
<h:outputText value="Type" />
</f:facet>
<h:outputText value="#{machine.type}" />
</p:column>

<p:column>
<f:facet name="header">
<h:outputText value="Type" />
</f:facet>
<h:outputText value="#{machine.teamAssigned}" />
</p:column>


</p:dataTable>

</p:dialog>

Please help me out of this problem.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 52 guests