first pass is done

you have Session.info/error that work the same as Component.info/error

the messages in session are cleared out at the end of request /if/ they have been marked rendered (which is done when they are displayed using a feedbackpanel)

we can add more features as we explore the usecase.

-Igor


On 3/23/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote:
this is the exact usecase i am working on, should be done by tonight at some point.

-Igor


On 3/23/06, John Patterson < [EMAIL PROTECTED]> wrote:
Hi,

I have added a FeedbackMessages instance to my session class so that I can add
messages that will be displayed on the next page shown to the user.  After
being displayed they will be cleared.

It looks to me as if the I should be able to override the
newFeedbackMessageModel() method to return an instance that combines my
session messages with any page specific messages.


                FeedbackPanel feedback = new FeedbackPanel("feedback")
                {
                        @Override
                        protected FeedbackMessagesModel newFeedbackMessagesModel()
                        {
                                return new FeedbackMessagesModel()
                                {
                                        protected List processMessages(final List messages)
                                        {
                                                return messages;
                                        }
                                };
                        }
                };

However the FeedbackMessagesModel is final.

The comment for processMessages() is:


        /**
         * Override this method to post process to the FeedbackMessage list.
         *
         * @param messages
         *            List of sorted and filtered FeedbackMessages for further
         *            processing
         * @return The processed FeedbackMessage list
         */

John


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


Reply via email to