chain the constructors the form is never created when the ctor with PageParameters is used, i.e when you submit
On Thu, Apr 7, 2011 at 8:30 PM, Juansoft <[email protected]> wrote: > Hello i am getting a strange problem when i use stateless form in a simple > wicket stateless page. > > this is the HTML side: > > > > > Test! > > > > Enter > > > > > > And this is the java side: > > public final class Test extends WebPage { > public Test () { > super (); > > StatelessForm Form = new StatelessForm("formData"){ > > public void onSubmit() { > System.out.println("Enter");} > }; > > > add(Form); > > this.setStatelessHint(true); > } > > public Test (PageParameters params) { > //TODO: process page parameters > } > } > > > When i click submit button called "enter", wicket throws one runtime > exception like this: > > WicketMessage: unable to find component with path formData on stateless > page > [Page class = com.pages.Test, id = 0, version = 0] it could be that the > component is inside a repeater make your component return false in > getStatelessHint() > > ¿Where is the repeater component? > > I'm going crazy with this error, ¿can someone help me? > Thanks a lot! > > PD. I'm using wicket 1.4.17 > > > ----- > Another "wicket" newbie programmer > ******************************** > Wicket en Español - > > http://aprendiendowicket.wordpress.com > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Stateless-form-throws-Unexpected-RuntimeException-tp3434187p3434187.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] > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>
