src/main/java/org/efaps/ui/wicket/components/search/ResultPanel.java
public void update(final AjaxRequestTarget _target,
                       final IndexSearch _indexSearch)
    {

        ResultPanel.this.visitChildren(DimensionPanel.class, new IVisitor<Component, Void>()
        {
            @Override
            public void component(final Component _component,
                                  final IVisit<Void> _visit)
            {
                try {
                    if (_indexSearch.getSearch().getConfigs().contains(SearchConfig.ACTIVATE_DIMENSION)) {
                        _component.setVisible(true);
                    } else {
                        _component.setVisible(false);
                    }
                } catch (final EFapsException e) {
                    ResultPanel.LOG.error("Catched error", e);
                }
                _visit.dontGoDeeper();
            }
        });

        ResultPanel.this.visitChildren(DataTable.class, new IVisitor<Component, Void>()
        {
            @Override
            public void component(final Component _component,
                                  final IVisit<Void> _visit)
            {
                if (_indexSearch.getResult().getElements().isEmpty()) {
                    _component.setVisible(false);
                } else {
                    _component.setVisible(true);
                }
                if (_indexSearch.isUpdateTable()) {
                    _component.replaceWith(getDataTable(_indexSearch));
                }
                _visit.dontGoDeeper();
            }
        });

        ResultPanel.this.visitChildren(Label.class, new IVisitor<Component, Void>()
        {

            @Override
            public void component(final Component _component,
                                  final IVisit<Void> _visit)
            {
                final String compid = _component.getId();
                switch (compid) {
                    case "hits":
                        if (_indexSearch.getResult().getElements().isEmpty()) {
                            _component.setVisible(false);
                        } else {
                            _component.setVisible(true);
                            ((Label) _component).setDefaultModelObject(DBProperties.getFormatedDBProperty(
                                            ResultPanel.class.getName() + ".Hits", _indexSearch.getResult()
                                                            .getElements().size(), _indexSearch.getResult()
                                                                            .getHitCount()));
                        }
                        break;
                    case "noResult":
                        if (_indexSearch.getResult().getElements().isEmpty()) {
                            _component.setVisible(true);
                            ((Label) _component).setDefaultModelObject(DBProperties.getProperty(ResultPanel.class
                                            .getName() + ".NoResult"));
                        } else {
                            _component.setVisible(false);
                        }
                        break;
                    default:
                        break;
                }
            }
        });
    }
public void update(final AjaxRequestTarget _target,
                       final IndexSearch _indexSearch)
    {

        ResultPanel.this.visitChildren(DimensionPanel.class, new IVisitor<Component, Void>()
        {
            @Override
            public void component(final Component _component,
                                  final IVisit<Void> _visit)
            {
                try {
                    if (_indexSearch.getSearch().getConfigs().contains(SearchConfig.ACTIVATE_DIMENSION)) {
                        _component.setVisible(true);
                    } else {
                        _component.setVisible(false);
                    }
                } catch (final EFapsException e) {
                    ResultPanel.LOG.error("Catched error", e);
                }
                _visit.dontGoDeeper();
            }
        });

        ResultPanel.this.visitChildren(DataTable.class, new IVisitor<Component, Void>()
        {
            @Override
            public void component(final Component _component,
                                  final IVisit<Void> _visit)
            {
                if (_indexSearch.getResult().getElements().isEmpty()) {
                    _component.setVisible(false);
                } else {
                    _component.setVisible(true);
                }
                if (_indexSearch.isUpdateTable()) {
                    _component.replaceWith(getDataTable(_indexSearch));
                }
                _visit.dontGoDeeper();
            }
        });

        ResultPanel.this.visitChildren(Label.class, new IVisitor<Component, Void>()
        {

            @Override
            public void component(final Component _component,
                                  final IVisit<Void> _visit)
            {
                final String compid = _component.getId();
                switch (compid) {
                    case "hits":
                        if (_indexSearch.getResult().getElements().isEmpty()) {
                            _component.setVisible(false);
                        } else {
                            _component.setVisible(true);
                            ((Label) _component).setDefaultModelObject(DBProperties.getFormatedDBProperty(
                                            ResultPanel.class.getName() + ".Hits", _indexSearch.getResult()
                                                            .getElements().size(), _indexSearch.getResult()
                                                                            .getHitCount()));
                        }
                        break;
                    case "noResult":
                        if (_indexSearch.getResult().getElements().isEmpty()) {
                            _component.setVisible(true);
                            ((Label) _component).setDefaultModelObject(DBProperties.getProperty(ResultPanel.class
                                            .getName() + ".NoResult"));
                        } else {
                            _component.setVisible(false);
                        }
                        break;
                    default:
                        break;
                }
            }
        });
    }
Update.

@param _target the target
@param _indexSearch the index search