Package org.apache.wicket.ajax.form

Examples of org.apache.wicket.ajax.form.OnChangeAjaxBehavior


            this.setOutputMarkupId(true);
           
            add(urlPathField=new TextField<String>("urlPath",new PropertyModel<String>(this,"urlPath")));           
            urlPathField.setOutputMarkupId(true);
            urlPathField.add(
                    new OnChangeAjaxBehavior() {
                        @Override
                        protected void onUpdate(AjaxRequestTarget target) {
                        }
                    });
                                                
            add(chainTestResultField=new TextField<String>("chainTestResult",new PropertyModel<String>(this,"chainTestResult")));
            chainTestResultField.setEnabled(false);
            chainTestResultField.setOutputMarkupId(true);
          
           
            add(httpMethodChoice=new DropDownChoice<HTTPMethod>("httpMethod",
                    new PropertyModel<HTTPMethod>(this,"httpMethod"),
                    Arrays.asList(HTTPMethod.values())));
            httpMethodChoice.setOutputMarkupId(true);
            httpMethodChoice.setNullValid(false);
            httpMethodChoice.add(
                    new OnChangeAjaxBehavior() {
                        @Override
                        protected void onUpdate(AjaxRequestTarget target) {
                        }
                    });
       
View Full Code Here


       
        createRoleSourceDropDown();

        roleSourceChoice.setNullValid(false);
       
        roleSourceChoice.add(new OnChangeAjaxBehavior() {
            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                Panel p = getRoleSourcePanel(roleSourceChoice.getModelObject());
               
                WebMarkupContainer c = (WebMarkupContainer)get("container");
View Full Code Here

        wmsURL += wmsURL.endsWith("/") ? "wms?" : "/wms?";

        final LegendGraphicAjaxUpdater defaultStyleUpdater;
        defaultStyleUpdater = new LegendGraphicAjaxUpdater(wmsURL, defStyleImg, defaultStyleModel);

        defaultStyle.add(new OnChangeAjaxBehavior() {
            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                defaultStyleUpdater.updateStyleImage(target);
            }
        });
View Full Code Here

        workspace.setNullValid(true);

        workspace.setOutputMarkupId(true);
        workspace.setRequired(true);
        form.add(workspace);
        workspace.add(new OnChangeAjaxBehavior() {
            private static final long serialVersionUID = -5613056077847641106L;

            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                target.addComponent(store);
                target.addComponent(resourceAndLayer);
            }
        });

        IModel<List<Tuple>> storesModel = new LoadableDetachableModel<List<Tuple>>() {
            private static final long serialVersionUID = 1L;

            @Override
            protected List<Tuple> load() {
                Catalog catalog = GeoServerApplication.get().getCatalog();
                Tuple ws = workspace.getModelObject();
                if (ws == null) {
                    return Lists.newArrayList();
                }
                Filter filter = Predicates.equal("workspace.id", ws.id);
                int limit = 100;
                CloseableIterator<StoreInfo> iter = catalog.list(StoreInfo.class, filter, null,
                        limit, null);

                List<Tuple> stores;
                try {
                    stores = Lists.newArrayList(Iterators.transform(iter,
                            new Function<StoreInfo, Tuple>() {

                                @Override
                                public Tuple apply(StoreInfo input) {
                                    return new Tuple(input.getId(), input.getName());
                                }
                            }));
                } finally {
                    iter.close();
                }
                Collections.sort(stores);
                return stores;
            }
        };

        store = new DropDownChoice<Tuple>("store", new Model<Tuple>(), storesModel,
                new TupleChoiceRenderer());
        store.setNullValid(true);

        store.setOutputMarkupId(true);
        store.add(new OnChangeAjaxBehavior() {
            private static final long serialVersionUID = -5333344688588590014L;

            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                target.addComponent(resourceAndLayer);
View Full Code Here

TOP

Related Classes of org.apache.wicket.ajax.form.OnChangeAjaxBehavior

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.