Examples of SubmitLink


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

    /*
     * If the link is a submitlink then we pretend to have clicked it
     */
    else if (linkComponent instanceof SubmitLink)
    {
      SubmitLink submitLink = (SubmitLink)linkComponent;

      String pageRelativePath = submitLink.getInputName();
      request.getPostParameters().setParameterValue(pageRelativePath, "x");

      submitForm(submitLink.getForm().getPageRelativePath());
    }
    // if the link is a normal link (or ResourceLink)
    else if (linkComponent instanceof AbstractLink)
    {
      AbstractLink link = (AbstractLink)linkComponent;
View Full Code Here

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

    form.add(new DropDownChoice("domain", Arrays.asList(new Object[] { "Wicket", "Tapestry",
        "JSF", ".Net" })));
    form.add(new CheckBox("rememberMe"));
    form.add(new WebMarkupContainer("loginZonderTokenContainer").add(new CheckBox(
      "loginZonderToken")));
    form.add(new SubmitLink("aanmelden"));
    add(form);
  }
View Full Code Here

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

        // element
        // will validate and write down into their
        theForm.add(new TabbedPanel("tabs", tabs) {
            @Override
            protected WebMarkupContainer newLink(String linkId, final int index) {
                return new SubmitLink(linkId) {
                    @Override
                    public void onSubmit() {
                        setSelectedTab(index);
                    }
                };
View Full Code Here

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

        theForm.add(saveLink());
        theForm.add(cancelLink());
    }

    private SubmitLink saveLink() {
        return new SubmitLink("save") {
            @Override
            public void onSubmit() {
                try {
                    Catalog catalog = getCatalog();
                    ResourceInfo resourceInfo = getResourceInfo();
View Full Code Here

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

        // });
        return localeDropDown;
    }

    private Component createNewTranslationLink() {
        SubmitLink submitLink = new SubmitLink("createLanguage", newTranslationForm) {
            private static final long serialVersionUID = 1L;

            @Override
            public void onSubmit() {
                error("Not yet implemented");
View Full Code Here

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

        projectField.add(new ProjectValidator());
        projectField.add(new PatternValidator("\\w+"));
        projectField.add(new StringValidator.MaximumLengthValidator(6));
        form.add(projectField);

        SubmitLink submitLink = submitLink();
        form.add(submitLink);
       
        form.setDefaultButton(submitLink);
    }
View Full Code Here

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

        link.setDefaultFormProcessing(false);
        return link;
    }

    SubmitLink submitLink() {
        return new SubmitLink("import") {

            @Override
            public void onSubmit() {
                try {
                    // build the datastore namespace URI
View Full Code Here

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

        form.add(new TextField("fees"));
        form.add(new TextField("accessConstraints"));
       
        build(infoModel, form);
       
        SubmitLink submit = new SubmitLink("submit",new StringResourceModel( "save", (Component)null, null) ) {
            @Override
            public void onSubmit() {
                handleSubmit((T)infoModel.getObject());
                setResponsePage(GeoServerHomePage.class);
            }
View Full Code Here

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

            protected void populateItem(ListItem item) {
                final String dataStoreFactoryName = item.getModelObjectAsString();
                final DataAccessFactory factory = getAvailableDataStores()
                        .get(dataStoreFactoryName);
                final String description = factory.getDescription();
                SubmitLink link;
                link = new SubmitLink("resourcelink") {
                    @Override
                    public void onSubmit() {
                        setResponsePage(new DataAccessNewPage(dataStoreFactoryName));
                    }
                };
                link.setEnabled(thereAreWorkspaces);
                link.add(new Label("resourcelabel", dataStoreFactoryName));
                item.add(link);
                item.add(new Label("resourceDescription", description));
                Image icon = new Image("storeIcon", icons.getStoreIcon(factory.getClass()));
                // TODO: icons could provide a description too to be used in alt=...
                icon.add(new AttributeModifier("alt", true, new Model("")));
                item.add(icon);
            }
        };

        final List<String> sortedCoverageNames = new ArrayList<String>();
        sortedCoverageNames.addAll(getAvailableCoverageStores().keySet());
        Collections.sort(sortedCoverageNames);

        final ListView coverageLinks = new ListView("rasterResources", sortedCoverageNames) {
            @Override
            protected void populateItem(ListItem item) {
                final String coverageFactoryName = item.getModelObjectAsString();
                final Map<String, Format> coverages = getAvailableCoverageStores();
                Format format = coverages.get(coverageFactoryName);
                final String description = format.getDescription();
                SubmitLink link;
                link = new SubmitLink("resourcelink") {
                    @Override
                    public void onSubmit() {
                        setResponsePage(new CoverageStoreNewPage(coverageFactoryName));
                    }
                };
                link.setEnabled(thereAreWorkspaces);
                link.add(new Label("resourcelabel", coverageFactoryName));
                item.add(link);
                item.add(new Label("resourceDescription", description));
                Image icon = new Image("storeIcon", icons.getStoreIcon(format.getClass()));
                // TODO: icons could provide a description too to be used in alt=...
                icon.add(new AttributeModifier("alt", true, new Model("")));
View Full Code Here

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

        layer.setRequired(true);
        accessMode.setRequired(true);
    }

    SubmitLink saveLink() {
        return new SubmitLink("save") {
            @Override
            public void onSubmit() {
                onFormSubmit();
            }
        };
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.