private Component getModelFromChild(final WebMarkupContainer _container,
                                        final String _name)
    {
        Component ret = null;
        final Iterator<? extends Component> iter = _container.iterator();
        while (iter.hasNext() && ret == null) {
            final Component comp = iter.next();

            if (comp.getDefaultModelObject() instanceof UIField) {
                final UIField cell = (UIField) comp.getDefaultModelObject();
                if (_name.equals(cell.getFieldConfiguration().getName())) {
                    ret = comp;
                }
            }
            if (ret == null && comp instanceof WebMarkupContainer) {
                ret = getModelFromChild((WebMarkupContainer) comp, _name);
            }
        }
        return ret;
    }
private Component getModelFromChild ( final WebMarkupContainer _container , final String _name ) { Component ret = null ; final Iterator < ? extends Component > iter = _container . iterator ( ) ; while ( iter . hasNext ( ) && ret == null ) { final Component comp = iter . next ( ) ; if ( comp . getDefaultModelObject ( ) instanceof UIField ) { final UIField cell = ( UIField ) comp . getDefaultModelObject ( ) ; if ( _name . equals ( cell . getFieldConfiguration ( ) . getName ( ) ) ) { ret = comp ; } } if ( ret == null && comp instanceof WebMarkupContainer ) { ret = getModelFromChild ( ( WebMarkupContainer ) comp , _name ) ; } } return ret ; }
@param _container    container the model is searched for
@param _name         name
@return component