Package org.apache.wicket.markup.html.form

Examples of org.apache.wicket.markup.html.form.CheckGroupSelector


            MetaDataRoleAuthorizationStrategy.authorize(successGroup, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "enable"));
            MetaDataRoleAuthorizationStrategy.authorize(successGroup, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "disable"));

            final CheckGroupSelector successSelector = new CheckGroupSelector("successSelector", successGroup);
            add(successSelector);
            MetaDataRoleAuthorizationStrategy.authorize(successSelector, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "enable"));
            MetaDataRoleAuthorizationStrategy.authorize(successSelector, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "disable"));

            final CheckGroup<AuditLoggerName> failureGroup = new CheckGroup<AuditLoggerName>("failureGroup",
                    new AuditsByCategoryModel(category, Result.failure));
            failureGroup.add(new AjaxFormChoiceComponentUpdatingBehavior() {

                private static final long serialVersionUID = -151291731388673682L;

                @Override
                protected void onUpdate(final AjaxRequestTarget target) {
                    // Empty method: here only to let Model.setObject() be invoked.
                }
            });
            add(failureGroup);
            MetaDataRoleAuthorizationStrategy.authorize(failureGroup, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "enable"));
            MetaDataRoleAuthorizationStrategy.authorize(failureGroup, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "disable"));

            final CheckGroupSelector failureSelector = new CheckGroupSelector("failureSelector", failureGroup);
            add(failureSelector);
            MetaDataRoleAuthorizationStrategy.authorize(failureSelector, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "enable"));
            MetaDataRoleAuthorizationStrategy.authorize(failureSelector, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "disable"));
View Full Code Here


        final Fragment headerCheckFrag;

        if (enabled) {
            headerCheckFrag = new Fragment("headerCheck", "headerCheckFrag", this);
            headerCheckFrag.add(new CheckGroupSelector("groupselector", group));
        } else {
            headerCheckFrag = new Fragment("headerCheck", "emptyCheckFrag", this);
        }

        add(headerCheckFrag);
View Full Code Here

            MetaDataRoleAuthorizationStrategy.authorize(successGroup, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "enable"));
            MetaDataRoleAuthorizationStrategy.authorize(successGroup, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "disable"));

            final CheckGroupSelector successSelector = new CheckGroupSelector("successSelector", successGroup);
            add(successSelector);
            MetaDataRoleAuthorizationStrategy.authorize(successSelector, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "enable"));
            MetaDataRoleAuthorizationStrategy.authorize(successSelector, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "disable"));

            final CheckGroup<AuditLoggerName> failureGroup = new CheckGroup<AuditLoggerName>("failureGroup",
                    new AuditsByCategoryModel(category, Result.failure));
            failureGroup.add(new AjaxFormChoiceComponentUpdatingBehavior() {

                private static final long serialVersionUID = -151291731388673682L;

                @Override
                protected void onUpdate(final AjaxRequestTarget target) {
                    // Empty method: here only to let Model.setObject() be invoked.
                }
            });
            add(failureGroup);
            MetaDataRoleAuthorizationStrategy.authorize(failureGroup, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "enable"));
            MetaDataRoleAuthorizationStrategy.authorize(failureGroup, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "disable"));

            final CheckGroupSelector failureSelector = new CheckGroupSelector("failureSelector", failureGroup);
            add(failureSelector);
            MetaDataRoleAuthorizationStrategy.authorize(failureSelector, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "enable"));
            MetaDataRoleAuthorizationStrategy.authorize(failureSelector, RENDER,
                    xmlRolesReader.getAllAllowedRoles("Audit", "disable"));
View Full Code Here

      }
    };

    add(form);
    form.add(group);
    group.add(new CheckGroupSelector("groupselector"));
    ListView persons = new ListView("persons", ComponentReferenceApplication.getPersons())
    {

      protected void populateItem(ListItem item)
      {
View Full Code Here

      }
    };

    add(form);
    form.add(group);
    group.add(new CheckGroupSelector("groupselector"));
    ListView<Person> persons = new ListView<Person>("persons",
      ComponentReferenceApplication.getPersons())
    {
      /**
       * @see org.apache.wicket.markup.html.list.ListView#populateItem(org.apache.wicket.markup.html.list.ListItem)
View Full Code Here

    checkgroup.add(new Check<>("check1", Model.of(1)));
    checkgroup.add(new Check<>("check2", Model.of(2)));
    checkgroup.add(new Check<>("check3", Model.of(3)));
    checkgroup.add(new Check<>("check4", Model.of(4)));
    // one selector inside the checkgroup...
    checkgroup.add(new CheckGroupSelector("groupSelector")
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected boolean wantAutomaticUpdate()
      {
        return true; // override again to enable auto update. in
                // CheckGroupSelector it is disabled for
                // backwards compatibility.
      }
    });

    // ...and one selector outside the checkgroup
    form.add(new CheckGroupSelector("groupSelectorOutside", checkgroup)
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected boolean wantAutomaticUpdate()
View Full Code Here

    add(form);
    form.add(group);
    group.add(group2);

    group2.add(new CheckGroupSelector("groupselector", group));
    group2.add(new CheckGroupSelector("groupselector2", group2));
    ListView<Person> persons = new ListView<Person>("persons",
      ComponentReferenceApplication.getPersons())
    {

      @Override
View Full Code Here

        checkGroup = new CheckGroup<StatusBean>("group", selectedResources);
        checkGroup.setOutputMarkupId(true);
        add(checkGroup);

        add(new CheckGroupSelector("groupselector", checkGroup));

        statusBeansListView = new AltListView<StatusBean>("resources", statusBeans) {

            private static final long serialVersionUID = 4949588177564901031L;
View Full Code Here

      }
    };

    add(form);
    form.add(group);
    group.add(new CheckGroupSelector("groupselector"));
    ListView<Person> persons = new ListView<Person>("persons",
      ComponentReferenceApplication.getPersons())
    {
      /**
       * @see org.apache.wicket.markup.html.list.ListView#populateItem(org.apache.wicket.markup.html.list.ListItem)
View Full Code Here

    checkgroup.add(new Check<Integer>("check1", Model.of(1)));
    checkgroup.add(new Check<Integer>("check2", Model.of(2)));
    checkgroup.add(new Check<Integer>("check3", Model.of(3)));
    checkgroup.add(new Check<Integer>("check4", Model.of(4)));
    // one selector inside the checkgroup...
    checkgroup.add(new CheckGroupSelector("groupSelector")
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected boolean wantAutomaticUpdate()
      {
        return true; // override again to enable auto update. in
                // CheckGroupSelector it is disabled for
                // backwards compatibility.
      }
    });

    // ...and one selector outside the checkgroup
    form.add(new CheckGroupSelector("groupSelectorOutside", checkgroup)
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected boolean wantAutomaticUpdate()
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.form.CheckGroupSelector

Copyright © 2018 www.massapicom. 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.