i think in onbeginrequest() it is already too late to register a feedback message because you are already in the render phase and feedback messages have been collected.

you need to register feedback messages in event handlers such as link.onclick(), button.onsubmit(), etc.

-Igor


On 3/28/06, R.A <[EMAIL PROTECTED] > wrote:

Hi.
I'd like to set error messages for feedback panel in a panel class, not in a
form class.
Is it possible?
I failed to it by the following code. (Nothing output.)
public class TestPanel extends Panel {
        public TestPanel() {
                add(new FeedbackPanel("feedback"));
        }

        protected void onBeginRequest() {
                if (...) {
                        error("error occured");
                }
        }
}

Thank you.
R.A
--
View this message in context: http://www.nabble.com/error-message-in-a-panel-t1355119.html#a3627880
Sent from the Wicket - User forum at Nabble.com.



-------------------------------------------------------
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