I'm trying to success messages working.  In my Detail.java page, I have:

    protected void onSaveUser(User user) {
        userManager.saveUser(user);
        getSession().info("It worked!");
        setRedirect(true);
        setResponsePage(backPage);
    }

First of all, is this the proper way to put messages in flash scope?

On my "backPage", I have the following code, but it never seems to find
anything.

        // check for success messages
        if (!getSession().getFeedbackMessages().isEmpty()) {
            // just display first message for now
            add(new Label("success-messages",
String.valueOf(getSession().getFeedbackMessages().iterator().next())));
        } else {
            add(new Label("success-messages", ""));
        }

Thanks,

Matt
-- 
View this message in context: 
http://www.nabble.com/Is-there-a-success-message-example--tf3642922.html#a10173842
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to