private static Method getBindingMethod ( UIComponent parent ) { Class [ ] clazzes = parent . getClass ( ) . getInterfaces ( ) ; for ( int i = 0 ; i < clazzes . length ; i ++ ) { Class clazz = clazzes [ i ] ; if ( clazz . getName ( ) . indexOf ( "BindingAware" ) != - 1 ) { try { return parent . getClass ( ) . getMethod ( "handleBindings" , new Class [ ] { } ) ; } catch ( NoSuchMethodException e ) { // return } } } return null ; }
This is all a hack to work around a spec - bug which will be fixed in JSF2 . 0