public static ComponentWithContext getComponentById ( final String id , final boolean visibleOnly ) { UIContext uic = UIContextHolder . getCurrent ( ) ; WComponent root = uic . getUI ( ) ; ComponentWithContext comp = TreeUtil . getComponentWithContextForId ( root , id , visibleOnly ) ; return comp ; }
Finds a component by its id .