You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2006/10/14 22:20:19 UTC
svn commit: r464013 -
/incubator/wicket/trunk/wicket-examples/src/main/java/wicket/examples/ajax/builtin/FormPage.java
Author: ivaynberg
Date: Sat Oct 14 13:20:18 2006
New Revision: 464013
URL: http://svn.apache.org/viewvc?view=rev&rev=464013
Log:
fixed bug
Modified:
incubator/wicket/trunk/wicket-examples/src/main/java/wicket/examples/ajax/builtin/FormPage.java
Modified: incubator/wicket/trunk/wicket-examples/src/main/java/wicket/examples/ajax/builtin/FormPage.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket-examples/src/main/java/wicket/examples/ajax/builtin/FormPage.java?view=diff&rev=464013&r1=464012&r2=464013
==============================================================================
--- incubator/wicket/trunk/wicket-examples/src/main/java/wicket/examples/ajax/builtin/FormPage.java (original)
+++ incubator/wicket/trunk/wicket-examples/src/main/java/wicket/examples/ajax/builtin/FormPage.java Sat Oct 14 13:20:18 2006
@@ -84,9 +84,16 @@
// add a button that can be used to submit the form via ajax
new AjaxSubmitButton(form, "ajax-submit-button", form)
{
- @Override
protected void onSubmit(AjaxRequestTarget target, Form form)
{
+ // repaint the feedback panel so that it is hidden
+ target.addComponent(feedback);
+ }
+
+ @Override
+ protected void onError(AjaxRequestTarget target, Form form)
+ {
+ // repaint the feedback panel so errors are shown
target.addComponent(feedback);
}
};