javax.faces.FacesException: DataModel must implement org.primefaces.model.SelectableDataModel when selection is enabled.

Stack Overflow | learner | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Error on DataTable Filtering: DataModel must implement org.primefaces.model.SelectableDataModel when selection is enabled.

    Stack Overflow | 8 months ago | learner
    javax.faces.FacesException: DataModel must implement org.primefaces.model.SelectableDataModel when selection is enabled.
  2. 0

    Problemas com Combo Aninhadas (Ajax)

    Google Groups | 6 years ago | Arthur Franco Ferreira
    javax.faces.FacesException: DataTable : "notes" must be inside a form element.
  3. 0

    PrimeFaces Community Forum • View topic - DataTable : "j_idt6" must be inside a form element.

    primefaces.org | 1 year ago
    javax.faces.FacesException: DataTable : "j_idt6" must be inside a form element.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Lista disponíveis não renderiza

    GitHub | 3 months ago | lucasgueiros
    javax.faces.FacesException: DataModel must implement org.primefaces.model.SelectableDataModel when selection is enabled.

  1. MoYapro 2 times, last 3 months ago
2 unregistered visitors

Root Cause Analysis

  1. javax.faces.FacesException

    DataModel must implement org.primefaces.model.SelectableDataModel when selection is enabled.

    at org.primefaces.component.datatable.DataTable.getRowKeyFromModel()
  2. primefaces
    DataTableRenderer.encodeEnd
    1. org.primefaces.component.datatable.DataTable.getRowKeyFromModel(DataTable.java:922)
    2. org.primefaces.component.datatable.DataTableRenderer.encodeRow(DataTableRenderer.java:739)
    3. org.primefaces.component.datatable.DataTableRenderer.encodeTbody(DataTableRenderer.java:651)
    4. org.primefaces.component.datatable.DataTableRenderer.encodeRegularTable(DataTableRenderer.java:234)
    5. org.primefaces.component.datatable.DataTableRenderer.encodeMarkup(DataTableRenderer.java:196)
    6. org.primefaces.component.datatable.DataTableRenderer.encodeEnd(DataTableRenderer.java:82)
    6 frames
  3. JavaEE 7
    UIComponent.encodeAll
    1. javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
    2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    2 frames
  4. JSF
    PartialVisitContext.invokeVisitCallback
    1. com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:517)
    2. com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
    2 frames
  5. primefaces
    UIData.visitTree
    1. org.primefaces.component.api.UIData.visitTree(UIData.java:639)
    1 frame
  6. JavaEE 7
    UIComponent.visitTree
    1. javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)
    2. javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)
    3. javax.faces.component.UIForm.visitTree(UIForm.java:362)
    4. javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)
    5. javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)
    6. javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)
    7. javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)
    8. javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)
    8 frames
  7. JSF
    PartialViewContextImpl.processPartial
    1. com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:378)
    2. com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:298)
    2 frames
  8. JavaEE 7
    UIComponent.encodeAll
    1. javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:183)
    2. javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:979)
    3. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
    3 frames
  9. JSF
    LifecycleImpl.render
    1. com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:411)
    2. com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
    3. com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
    4. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    5. com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    5 frames
  10. JavaEE 7
    FacesServlet.service
    1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
    1 frame
  11. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    2 frames
  12. primefaces
    FileUploadFilter.doFilter
    1. org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
    1 frame
  13. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    10 frames
  14. Grizzly HTTP
    AprEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    3. org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1822)
    3 frames
  15. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    3. java.lang.Thread.run(Unknown Source)
    3 frames