wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From michalb_cz <mbernh...@atlas.cz>
Subject Re: Wicket Modal Window
Date Tue, 04 Dec 2007 10:13:46 GMT

I had similar problem. I changed Button to AjaxButton and override onError()
and everything was alright. Note that you must call setOutputMarkupId(true)
components which use in another ajax-enabled component (like AjaxButton
In case below I must call feedback.setOutputMarkupId(true) where feedback =
new Feedback("<feedback's wicket id>").

like this:

Button btnOk = new AjaxButton("btnOk", form) {

			protected void onSubmit(AjaxRequestTarget target, Form form) {
				// something to do, when everything is ok and valid...
			protected void onError(AjaxRequestTarget target, Form form) {			    
			    target.addComponent(feedback); // show feedback message in feedback

This works ok.

Edi wrote:
> I have displayed a Wicket modal window(pop-up).
> it contains one text box with button.
> I have done date validation, if i give wrong date in text box, I have set
> the message in label.
> But label have not displayed.
> Please explain...

View this message in context: http://www.nabble.com/Wicket-Modal-Window-tf4937030.html#a14147964
Sent from the Wicket - User mailing list archive at Nabble.com.

To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org

View raw message