> 1.how do i use reset in java code.I have just declare a reset button in my > html which is working as expected but wana know is there any other > alternative of doin it.
A HTML input of type="reset" will by default do nothing server-side but just reset input fields of a form to the initial values. As an alternative you could have a Wicket Button which resets the form inputs (remember to turn off default form processing). Unless you have updated stuff with Ajax, just re-rendering the Form will be equivalent to the browser-side reset. > 2.I am unable to use generics in my app,it shows error as this is supported > in 1.5 version.What do i need to do for this...? Do you mean Java 1.5 or Wicket 1.5? If you use Maven, ensure that the build section of the POM tells the compiler plugin to use 1.5 compatibility. If you use Eclipse, check the Java compiler compliance settings in the project properties. > 3.In case i am using a markup which has a text field inside a form,Then > the order of adding should it be like > wmc.add(textField); > form.add(wmc); The order does not matter, adding does not have any side-effects and the hierarchy matters when you get around to the lifecycle methods (processing, rendering etc.) later. - Tor Iver --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
