public static void initPartialValidationAndModelUpdate ( UIComponent component , FacesContext facesContext ) { String actionFor = ( String ) component . getAttributes ( ) . get ( "actionFor" ) ; if ( actionFor != null ) { List li = convertIdsToClientIds ( actionFor , facesContext , component ) ; facesContext . getExternalContext ( ) . getRequestMap ( ) . put ( ACTION_FOR_LIST , li ) ; String actionForPhase = ( String ) component . getAttributes ( ) . get ( "actionForPhase" ) ; if ( actionForPhase != null ) { List phaseList = convertPhasesToPhasesIds ( actionForPhase ) ; facesContext . getExternalContext ( ) . getRequestMap ( ) . put ( ACTION_FOR_PHASE_LIST , phaseList ) ; } } }
check for partial validation or model update attributes being set and initialize the request - map accordingly . SubForms will work with this information .