Re: Validate after Submit?
well, attaching a validator to a specific id could possibly work, but this is not very usable, because thus i would need to know about the internal structure of a component. But i do not have any better idea either, so thanks for the hint! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validate-after-Submit-tp3070168p3072763.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Validate after Submit?
Hi, you can implement a custom IValidator to attach to userid field or a custom IFormValidato for your input form. Do you think they could work for your application? Hi, a general Question, and I am interested in how you would solve that? I have a couple of form elements, that I want to submit. I send some values to a backend and get an error code back - say an Enum with errorcode and Message Error, User-ID already registered. What I want to do now is, i want to assign this errormessage to the inputtextfield for userid. All Fields are hidden within Panels, so in the Page, I do not have access to the TextFIeld itself, and I do not want to make it accessible through some kind of getters or something. is there a way to assign an Error to a component from outside (with a FormVisitor or something)? Just looking for some directions. Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Validate after Submit?
Hi, a general Question, and I am interested in how you would solve that? I have a couple of form elements, that I want to submit. I send some values to a backend and get an error code back - say an Enum with errorcode and Message Error, User-ID already registered. What I want to do now is, i want to assign this errormessage to the inputtextfield for userid. All Fields are hidden within Panels, so in the Page, I do not have access to the TextFIeld itself, and I do not want to make it accessible through some kind of getters or something. is there a way to assign an Error to a component from outside (with a FormVisitor or something)? Just looking for some directions. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validate-after-Submit-tp3070168p3070168.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org