Hi ;

There are many ways of doing that. For now i will assume that you are not
using ajax. I will assume that you are using Model .

you can do this.

on your page, add a message property.

    private String message ;

//then add a label that reads and rights to the message

add(new Label("mylabel", new Model<String>(){

              public String getObject(){
                  return message ;
              }

             public void setObject(String object){
                  message = object ;
             }
}))

Then on your form submit , set the message value.

When ever page refreshes, the label will display the new value.

Hope that helps.

Josh.

On Tue, Jan 31, 2012 at 11:45 AM, srinash <[email protected]> wrote:

> Hello, I am a beginner to wicket. I am currently having a form with email
> and
> password. I am able to validate the fields, now the next challenge is how I
> can display a text just above the form (like 'email' submission successful)
> after both fields do not have errors and clear the form fields.
>
> Help will be appreciated
>
> TIA
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/help-with-form-submit-tp4343850p4343850.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to