Examples of findParent()


Examples of org.apache.wicket.Component.findParent()

  {
    Iterator<Component> iterator = markupIdToComponent.values().iterator();
    while (iterator.hasNext())
    {
      final Component component = iterator.next();
      final Page parentPage = component.findParent(Page.class);
      if (parentPage != null)
      {
        parentPage.detach();
        break;
      }
View Full Code Here

Examples of org.apache.wicket.Component.findParent()

    {
      return (Form<?>)component;
    }
    else
    {
      return component.findParent(Form.class);
    }
  }

  @Override
  protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
View Full Code Here

Examples of org.apache.wicket.Component.findParent()

  {
    Iterator<Component> iterator = markupIdToComponent.values().iterator();
    while (iterator.hasNext())
    {
      final Component component = iterator.next();
      final Page parentPage = component.findParent(Page.class);
      if (parentPage != null)
      {
        parentPage.detach();
        break;
      }
View Full Code Here

Examples of org.apache.wicket.Component.findParent()

                public boolean accept(FeedbackMessage message)
                {
                    // If the reporter is a field and this is refreshing because of a non-Ajax form submit, it's very likely that the field has been detached
                    // from its parent because it is in a list view. As a result, findParent doesn't return the BeanForm.
                    Component reporter = message.getReporter();
                    AbstractField reporterField = (AbstractField)(reporter instanceof AbstractField ? reporter : reporter.findParent(AbstractField.class));
                    if (reporterField != null) {
                        return reporterField.getBeanForm().getId().equals(BeanForm.this.getId());
                    }
                   
                    Component parent = (reporter instanceof BeanForm ? reporter : reporter.findParent(BeanForm.class));
View Full Code Here

Examples of org.apache.wicket.Component.findParent()

  {
    Iterator<Component> iterator = markupIdToComponent.values().iterator();
    while (iterator.hasNext())
    {
      final Component component = iterator.next();
      final Page parentPage = component.findParent(Page.class);
      if (parentPage != null)
      {
        parentPage.detach();
        break;
      }
View Full Code Here

Examples of org.apache.wicket.Component.findParent()

    {
      return (Form<?>)component;
    }
    else
    {
      return component.findParent(Form.class);
    }
  }

  @Override
  protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
View Full Code Here

Examples of org.apache.wicket.Component.findParent()

  {
    Iterator<Component> iterator = markupIdToComponent.values().iterator();
    while (iterator.hasNext())
    {
      final Component component = iterator.next();
      final Page parentPage = component.findParent(Page.class);
      if (parentPage != null)
      {
        parentPage.detach();
        break;
      }
View Full Code Here

Examples of org.apache.wicket.Component.findParent()

    {
      return (Form<?>)component;
    }
    else
    {
      return component.findParent(Form.class);
    }
  }

  @Override
  protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
View Full Code Here

Examples of org.apache.wicket.Component.findParent()

    {
      return (Form<?>)component;
    }
    else
    {
      return component.findParent(Form.class);
    }
  }

  @Override
  protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
View Full Code Here

Examples of org.apache.wicket.Component.findParent()

  {
    Iterator<Component> iterator = markupIdToComponent.values().iterator();
    while (iterator.hasNext())
    {
      final Component component = iterator.next();
      final Page parentPage = component.findParent(Page.class);
      if (parentPage != null)
      {
        parentPage.detach();
        break;
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.