@ Override public void restoreState ( final FacesContext context , final Object state ) { if ( state == null ) { return ; } final Object values [ ] = ( Object [ ] ) state ; super . restoreState ( context , values [ 0 ] ) ; final Object restoredSubmittedValues = values [ 1 ] ; final Object restoredLocalValues = values [ 2 ] ; final Object restoredInvalidUpdates = values [ 3 ] ; final Object restoredColMappings = values [ 4 ] ; final Object restoredSortedList = values [ 5 ] ; final Object restoredRowMap = values [ 6 ] ; final Object restoredRowNumbers = values [ 7 ] ; if ( restoredSubmittedValues == null ) { submittedValues . clear ( ) ; } else { submittedValues = ( Map < SheetRowColIndex , String > ) restoredSubmittedValues ; } if ( restoredLocalValues == null ) { localValues . clear ( ) ; } else { localValues = ( Map < SheetRowColIndex , Object > ) restoredLocalValues ; } if ( restoredInvalidUpdates == null ) { getInvalidUpdates ( ) . clear ( ) ; } else { invalidUpdates = ( List < SheetInvalidUpdate > ) restoredInvalidUpdates ; } if ( restoredColMappings == null ) { columnMapping = null ; } else { columnMapping = ( Map < Integer , Integer > ) restoredColMappings ; } if ( restoredSortedList == null ) { getFilteredValue ( ) . clear ( ) ; } else { setFilteredValue ( ( List < Object > ) restoredSortedList ) ; } if ( restoredRowMap == null ) { rowMap = null ; } else { rowMap = ( Map < String , Object > ) restoredRowMap ; } if ( restoredRowNumbers == null ) { rowNumbers = null ; } else { rowNumbers = ( Map < String , Integer > ) restoredRowNumbers ; } }
Restores the state for the submitted local and bad values .