javax.faces.model.NoRowAvailableException

 

Cause

     at javax.faces.model.ListDataModel.getRowData(ListDataModel.java:150)
     at org.apache.myfaces.trinidad.model.SortableModel.getRowData(SortableModel.java:127)
     at org.apache.myfaces.trinidad.model.ChildPropertyTreeModel.getRowData(ChildPropertyTreeModel.java:216)
     at org.apache.myfaces.trinidad.model.ChildPropertyTreeModel.isContainer(ChildPropertyTreeModel.java:228)

 

Solution:

 

tree.getDisclosedRowKeys().removeAll() 

I think need to clear the disclosed row keys before you rebuild the Tree model.

你可能感兴趣的:(exception)