Examples of newChildId()


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

    protected StudentList(String id, List<Response> responses) {
      super(id);
      RepeatingView byStudent = new RepeatingView("byStudent");
      add (byStudent);
      for (Response r : responses) {
        WebMarkupContainer container2 = new WebMarkupContainer(byStudent.newChildId());
        byStudent.add(container2);
        container2.add(new Label("name", r.getUser().getFullName()));
      }
      setOutputMarkupId(true);     
    }
View Full Code Here

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

    add(noteRepeater.setVisible(!responseMap.isEmpty()));

    for (Entry<ISIPrompt, List<ISIResponse>> entry : responseMap.entrySet()) {
      ISIPrompt currentPrompt = entry.getKey();

      WebMarkupContainer promptGroup = new WebMarkupContainer(noteRepeater.newChildId());
      noteRepeater.add(promptGroup);

      String crumbTrail = currentPrompt.getContentElement().getContentLocObject().getSection().getCrumbTrailAsString(1, 1);           
      promptGroup.add(new Label("responseHeader", crumbTrail));
View Full Code Here

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

    // iterate over all the users to get the responses for the prompt
    RepeatingView rv1 = new RepeatingView("studentRepeater");
    add(rv1);
   
    for (User student : studentList) {
      WebMarkupContainer studentContainer = new WebMarkupContainer(rv1.newChildId());
      studentContainer.add(new Label("studentName", student.getFullName()) {
        private static final long serialVersionUID = 1L;
        @Override
        public boolean isVisible() {
          return showNames;
View Full Code Here

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

            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

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

        RepeatingView repeating = new RepeatingView(ID_REPEATING_SUMMARY);
        addOrReplace(repeating);

        for (ObjectAssociation numberAssociation : numberAssociations) {
            AbstractItem item = new AbstractItem(repeating.newChildId());

            repeating.add(item);

            String propertyName = numberAssociation.getName();
            item.add(new Label(ID_PROPERTY_NAME, new Model<String>(propertyName)));
View Full Code Here

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

            final List<ObjectAssociation> associationsInGroup = associationsByGroup.get(groupName);
            if(associationsInGroup==null) {
                continue;
            }

            final WebMarkupContainer memberGroupRvContainer = new WebMarkupContainer(memberGroupRv.newChildId());
            memberGroupRv.add(memberGroupRvContainer);
            memberGroupRvContainer.add(new Label(ID_MEMBER_GROUP_NAME, groupName));

            final RepeatingView propertyRv = new RepeatingView(ID_PROPERTIES);
            memberGroupRvContainer.add(propertyRv);
View Full Code Here

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

            memberGroupRvContainer.add(propertyRv);

            @SuppressWarnings("unused")
            Component component;
            for (final ObjectAssociation association : associationsInGroup) {
                final WebMarkupContainer propertyRvContainer = new UiHintPathSignificantWebMarkupContainer(propertyRv.newChildId());
                propertyRv.add(propertyRvContainer);
                addPropertyToForm(entityModel, association, propertyRvContainer);
            }
        }
       
View Full Code Here

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

        final RepeatingView menuItemRv = new RepeatingView(CssMenuPanel.ID_MENU_ITEMS);
        add(menuItemRv);

        for (final CssMenuItem cssMenuItem : this.getModel().getObject()) {
            final WebMarkupContainer menuItemMarkup = new WebMarkupContainer(menuItemRv.newChildId());
            menuItemRv.add(menuItemMarkup);

            menuItemMarkup.add(new CssMenuItemPanel(CssMenuPanel.ID_MENU_ITEM, cssMenuItem));
        }
View Full Code Here

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

       
        int indexedCount = parameters.getIndexedCount();
        RepeatingView indexedView = new RepeatingView("indexed");
        for (int i = 0; i < indexedCount; i++) {
            StringValue indexed = parameters.get(i);
            indexedView.add(new Label(indexedView.newChildId(), indexed.toString()));
        }
        add(indexedView);
       
        List<NamedPair> namedParameters = parameters.getAllNamed();
        ListView<NamedPair> namedView = new ListView<NamedPair>("named", namedParameters) {
View Full Code Here

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

        RepeatingView repeating = new RepeatingView("repeating");
       
        SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
       
        for (BorrowTO borrow : borrowService.findAllBorrows()) {
            AbstractItem item = new AbstractItem(repeating.newChildId());
            PageParameters pageParameters = new PageParameters();
            pageParameters.add("borrowId", borrow.getBorrowID());
            PageParameters pageParameters2 = new PageParameters();
            pageParameters2.add("extend", borrow.getBorrowID());
            item.add(new BookmarkablePageLink<Void>("extend", ShowAllBorrow.class, pageParameters2));
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.