Package org.apache.wicket.markup.html.panel

Examples of org.apache.wicket.markup.html.panel.FeedbackPanel.error()


                    setResponsePage( CargoDetailsPage.class, new PageParameters().set( 0, trackingIdString ) );
                }
                catch( Exception e )
                {
                    String msg = "Problem assigning this route to cargo: " + e.getMessage();
                    routeFeedback.error( msg );
                    target.add( routeFeedback );
                }
            }

            @Override
View Full Code Here


            }

            @Override
            protected void onError( final AjaxRequestTarget target, Form<?> form )
            {
                routeFeedback.error( "Unexpected error - all routes are expected to be valid." );
                target.add( routeFeedback );
            }
        } );
        add( form );
    }
View Full Code Here

                        setResponsePage( CargoDetailsPage.class, new PageParameters().set( 0, trackingId ) );
                    }
                    catch( Exception e )
                    {
                        logger.warn( "Problem changing destination of cargo " + trackingId + ": " + e.getMessage() );
                        feedback.error( e.getMessage() );
                        target.add( feedback );
                    }
                }

                @Override
View Full Code Here

                        target.add( feedback );
                    }
                    catch( Exception e )
                    {
                        logger.warn( "Problem registering handling event: " + e.getMessage() );
                        feedback.error( e.getMessage() );
                        target.add( feedback );
                    }
                }

                @Override
View Full Code Here

        private void addFeedbackGui() {
            final FeedbackPanel feedback = addOrReplaceFeedback();

            final ObjectAdapter adapter = getEntityModel().getObject();
            if (adapter == null) {
                feedback.error("cannot locate object:" + getEntityModel().getObjectAdapterMemento().toString());
            }
        }

        private FeedbackPanel addOrReplaceFeedback() {
            feedback = new ComponentFeedbackPanel(ID_FEEDBACK, this);
View Full Code Here

        ReferencedEnvelope bbox = (ReferencedEnvelope) bounds.getModelObject();
        if (null == bbox) {
            String message = new ResourceModel("AbstractGridSetPage.cantAddZoomLevel").getObject();
            FeedbackPanel feedback = (FeedbackPanel) form.get("feedback");
            if (feedback != null) {
                feedback.error(message);
                target.addComponent(feedback);
            } else {
                form.error(message);
            }
            return;
View Full Code Here

                        fp.info("Succesfully un-registered from the destination topic");
                        fp.warn("You will (probably) loose next incoming events from other instances!!! (depending on how you have configured the broker)");
                        connectionInfo.getModel().setObject(
                                ConnectionConfigurationStatus.disabled.toString());
                    } else {
                        fp.error("Disconnection error!");
                        connectionInfo.getModel().setObject(
                                ConnectionConfigurationStatus.enabled.toString());
                    }
                } else {
                    fp.info("Connecting...");
View Full Code Here

                    if (c.connect()) {
                        fp.info("Now GeoServer is registered with the destination");
                        connectionInfo.getModel().setObject(
                                ConnectionConfigurationStatus.enabled.toString());
                    } else {
                        fp.error("Connection error!");
                        fp.error("Registration aborted due to a connection problem");
                        connectionInfo.getModel().setObject(
                                ConnectionConfigurationStatus.disabled.toString());
                    }
                }
View Full Code Here

                        fp.info("Now GeoServer is registered with the destination");
                        connectionInfo.getModel().setObject(
                                ConnectionConfigurationStatus.enabled.toString());
                    } else {
                        fp.error("Connection error!");
                        fp.error("Registration aborted due to a connection problem");
                        connectionInfo.getModel().setObject(
                                ConnectionConfigurationStatus.disabled.toString());
                    }
                }
                target.addComponent(connectionInfo);
View Full Code Here

                    getConfig().storeConfig();
                    fp.info("Configuration saved");
                } catch (IOException e) {
                    if (LOGGER.isLoggable(java.util.logging.Level.SEVERE))
                        LOGGER.severe(e.getLocalizedMessage());
                    fp.error(e.getLocalizedMessage());
                }
            }
        };
        form.add(save);
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.