public void clearDataListState ( String key ) { Map < String , Object > sessionMap = getFacesContext ( ) . getExternalContext ( ) . getSessionMap ( ) ; Map < String , TableState > dtState = ( Map ) sessionMap . get ( Constants . DATALIST_STATE ) ; if ( dtState != null ) { dtState . remove ( key ) ; } }
Removes the multiViewState for one specific DataList within the current session .