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

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


                                                                   );
                        }
                        catch (Exception e)
                        {
                            StringResourceModel resModel = new StringResourceModel("pam.details.action.status.deleteFailure", this, null, new Object [] { pab.getPath(), e.getMessage() } );
                            feed.error(resModel.getString());
                        }
                    }
                }
            };
View Full Code Here


                    }
                    catch (Exception e)
                    {
                        logger.error("Failed to remove a cloned portlet, {}. {}", pdb.getUniqueName(), e);
                        StringResourceModel resModel = new StringResourceModel("pam.details.action.status.clonePortletFailure", this, null, new Object [] { pdb.getUniqueName(), e.getMessage() } );
                        feed.error(resModel.getString());
                    }
                }
            };

            add(clone);
View Full Code Here

                    }
                    catch (Exception e)
                    {
                        logger.error("Failed to remove a cloned portlet, {}. {}", pdb.getUniqueName(), e);
                        StringResourceModel resModel = new StringResourceModel("pam.details.action.status.removeCloneFailure", this, null, new Object [] { pdb.getUniqueName(), e.getMessage() } );
                        feed.error(resModel.getString());
                    }
                }
            };

            add(del);
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

                        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

                        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

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

                @Override
View Full Code Here

                    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.id().get() ) );
                    }
                    catch( Exception e )
                    {
                        logger.warn( "Problem booking a new cargo: " + e.getMessage() );
                        feedback.error( e.getMessage() );
                        target.add( feedback );
                    }
                }

                @Override
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.