Package org.apache.wicket.markup.repeater

Examples of org.apache.wicket.markup.repeater.RepeatingView.newChildId()


    private RepeatingView createRolesRepeater(IModel<Set<Role>> rolesModel) {
        RepeatingView rolesRepeater = new RepeatingView("rolesRepeater");
        Set<Role> roles = rolesModel.getObject();
        for (Role role : roles) {
            WebMarkupContainer roleItem = new WebMarkupContainer(rolesRepeater.newChildId());
            rolesRepeater.add(roleItem);
            roleItem.add(new Label("roleName", "[" + role.toString() + "]"));
//            //MZA: WebMarkupContainer could be removed when ugly hack with " " was used
//            rolesRepeater.add(new Label(rolesRepeater.newChildId(), role + " "));
        }
View Full Code Here


    });

    form.add(new Button("change"));

    RepeatingView examples = new RepeatingView("examples");
    examples.add(new LabelExample(examples.newChildId()));
    examples.add(new ListsExample(examples.newChildId()));
    examples.add(new TableExample(examples.newChildId()));
    examples.add(new TreeExample(examples.newChildId()));
    examples.add(new TableTreeExample(examples.newChildId()));
    form.add(examples);
View Full Code Here

    form.add(new Button("change"));

    RepeatingView examples = new RepeatingView("examples");
    examples.add(new LabelExample(examples.newChildId()));
    examples.add(new ListsExample(examples.newChildId()));
    examples.add(new TableExample(examples.newChildId()));
    examples.add(new TreeExample(examples.newChildId()));
    examples.add(new TableTreeExample(examples.newChildId()));
    form.add(examples);
  }
View Full Code Here

    form.add(new Button("change"));

    RepeatingView examples = new RepeatingView("examples");
    examples.add(new LabelExample(examples.newChildId()));
    examples.add(new ListsExample(examples.newChildId()));
    examples.add(new TableExample(examples.newChildId()));
    examples.add(new TreeExample(examples.newChildId()));
    examples.add(new TableTreeExample(examples.newChildId()));
    form.add(examples);
  }
 
View Full Code Here

    RepeatingView examples = new RepeatingView("examples");
    examples.add(new LabelExample(examples.newChildId()));
    examples.add(new ListsExample(examples.newChildId()));
    examples.add(new TableExample(examples.newChildId()));
    examples.add(new TreeExample(examples.newChildId()));
    examples.add(new TableTreeExample(examples.newChildId()));
    form.add(examples);
  }
 
  @Override
View Full Code Here

    RepeatingView examples = new RepeatingView("examples");
    examples.add(new LabelExample(examples.newChildId()));
    examples.add(new ListsExample(examples.newChildId()));
    examples.add(new TableExample(examples.newChildId()));
    examples.add(new TreeExample(examples.newChildId()));
    examples.add(new TableTreeExample(examples.newChildId()));
    form.add(examples);
  }
 
  @Override
  public void renderHead(IHeaderResponse response)
View Full Code Here

    int populatorsNumber = populators.size();
    for (int i = 0; i < populatorsNumber; i++)
    {
      ICellPopulator<T> populator = populators.get(i);
      IModel<ICellPopulator<T>> populatorModel = new Model<>(populator);
      Item<ICellPopulator<T>> cellItem = newCellItem(cells.newChildId(), i, populatorModel);
      cells.add(cellItem);

      populator.populateItem(cellItem, CELL_ITEM_ID, item.getModel());

      if (cellItem.get("cell") == null)
View Full Code Here

    RepeatingView linkContainers = new RepeatingView("linkContainer");
    td.add(linkContainers);

    for (IDataExporter exporter : dataExporters)
    {
      WebMarkupContainer span = new WebMarkupContainer(linkContainers.newChildId());
      linkContainers.add(span);

      span.add(createExportLink("exportLink", exporter));
    }
  }
View Full Code Here

            final RepeatingView rv = new RepeatingView(ID_ACTION_PARAMETERS);
            add(rv);
           
            paramPanels.clear();
            for (final ActionParameterMemento apm : parameterMementos) {
                final WebMarkupContainer container = new WebMarkupContainer(rv.newChildId());
                rv.add(container);

                final ScalarModel argumentModel = actionModel.getArgumentModel(apm);
                argumentModel.setActionArgsHint(actionModel.getArgumentsAsArray());
                final Component component = getComponentFactoryRegistry().addOrReplaceComponent(container, ComponentType.SCALAR_NAME_AND_VALUE, argumentModel);
View Full Code Here

      noData.setVisible(false);
      RepeatingView pageListing = new RepeatingView("pageListing");
      rootContainer.add(pageListing);     

      for (ISIXmlSection sec : responseMap.keySet()) {
        WebMarkupContainer pageItem = new WebMarkupContainer(pageListing.newChildId());
        pageItem.setOutputMarkupId(true);
        pageListing.add(pageItem);

        RepeatingView questionListing = new RepeatingView("questionListing");
        pageItem.add(questionListing);
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.