Re: Validate before convert

2017-10-20 Thread Sven Meier
Oops, forgot one thing :/ All wrapping models have to forward detach calls to nested models, i.e.: public void detach() {    model.detach(); } Have fun Sven Am 20.10.2017 um 09:34 schrieb Sandor Feher: Cool solution. Works like charm :), thanks! s -- Sent from: http://apache-

Re: Validate before convert

2017-10-20 Thread Sandor Feher
Cool solution. Works like charm :), thanks! s -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: user

Re: Validate before convert

2017-10-19 Thread Sven Meier
Hi, you can do your md5-hashing in a model wrapper instead:   public class Md5Model implements IModel {     private IModel model;     public Md5Model(IModel model) {   this.model = model;     }     public String getObject() {   return null;     }     public void setObject(String string)

Validate before convert

2017-10-19 Thread Sandor Feher
Hi, I have a form used for changing users' data e.g, mail address, password and so one. I have a custom converter to convert clear text password to md5 hash on the fly. I set up some validators for password (length, complexity..) but the problem is that the validator fires only after the input val

Re: Validate FormComponent raw input before conversion

2014-07-18 Thread Jack Berg
Thank you for the replies. You are right. It can be done like this. Though right now it seems that implementing my own rawvalidator would require a comparable amount of effort. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validate-FormComponent-raw-input-before

Re: Validate FormComponent raw input before conversion

2014-07-12 Thread Martin Grigorov
gt; field in the database. > > The maximum number the database can hold is less than Integer.MAX_VALUE > so I > > have added a validator which checks that and reports the valid range. > > > > The problem is that when the user enters a value larger than > > Integer

Re: Validate FormComponent raw input before conversion

2014-07-12 Thread Francois Meillet
l everywhere in models seems excessive. > And it seems I can't validate the raw input string before conversion? Would > you consider adding this feature or is there a better way? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Validate

Validate FormComponent raw input before conversion

2014-07-11 Thread Jack Berg
value larger than Integer.MAX_VALUE, the conversion fails and user recieves a generic message. Using BigInteger and BigDecimal everywhere in models seems excessive. And it seems I can't validate the raw input string before conversion? Would you consider adding this feature or is there a bette

Re: Not to validate the Html while rendering in wicket

2012-08-13 Thread vinitty
I was thinking the same thing but it looks like it is not and its throwing an exception -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Not-to-validate-the-Html-while-rendering-in-wicket-tp4651202p4651205.html Sent from the Users forum mailing list archive at

Re: Not to validate the Html while rendering in wicket

2012-08-13 Thread Bertrand Guay-Paquet
ge in context: http://apache-wicket.1842946.n4.nabble.com/Not-to-validate-the-Html-while-rendering-in-wicket-tp4651202.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-uns

Not to validate the Html while rendering in wicket

2012-08-13 Thread vinitty
I want to disable the Html validation while rendering in wicket 1.5.7 I am running wicket in deployment mode Please suggest its urgent -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Not-to-validate-the-Html-while-rendering-in-wicket-tp4651202.html Sent from

Re: Validate form on page start

2011-11-14 Thread Ernesto Reinaldo Barreiro
> >> You need to call >> >> org.apache.wicket.markup.html.form.FormComponent.inputChanged() before >> >> that. >> >> See org.apache.wicket.markup.html.form.FormComponent.inputChanged() >> >> >> >> >> >> >> >> 2011/11/14 Илья Нарыжный :

Re: Validate form on page start

2011-11-14 Thread Илья Нарыжный
inputChanged() before > >> that. > >> See org.apache.wicket.markup.html.form.FormComponent.inputChanged() > >> > >> > >> > >> 2011/11/14 Илья Нарыжный : > >> > Hi, > >> > > >> > Unfortunatly, it doesn't work too

Re: Validate form on page start

2011-11-14 Thread Martin Grigorov
.wicket.markup.html.form.FormComponent.inputChanged() before >> that. >> See org.apache.wicket.markup.html.form.FormComponent.inputChanged() >> >> >> >> 2011/11/14 Илья Нарыжный : >> > Hi, >> > >> > Unfortunatly, it doesn't work too

Re: Validate form on page start

2011-11-14 Thread Илья Нарыжный
#x27;t work too. Process doesn't propogate parameters > > from Models to FormComponents, so validation just validate empty > fields... > > > > Ilia > > > > 2011/11/14 Martin Grigorov > > > >> Hi Ilia, > >> > >> You are correct.

Re: Validate form on page start

2011-11-14 Thread Martin Grigorov
rs > from Models to FormComponents, so validation just validate empty fields... > > Ilia > > 2011/11/14 Martin Grigorov > >> Hi Ilia, >> >> You are correct. >> May be there is no need of #myvalidate() at all. >> Just call form#process(null); >> &g

Re: Validate form on page start

2011-11-14 Thread Илья Нарыжный
Hi, Unfortunatly, it doesn't work too. Process doesn't propogate parameters from Models to FormComponents, so validation just validate empty fields... Ilia 2011/11/14 Martin Grigorov > Hi Ilia, > > You are correct. > May be there is no need of #myvalidate() at all. &g

Re: Validate form on page start

2011-11-14 Thread Martin Grigorov
Hi Ilia, You are correct. May be there is no need of #myvalidate() at all. Just call form#process(null); 2011/11/14 Илья Нарыжный : > Hello, Martin, > > I tried, as you propose, but that doesn't work: page is not initilized, so > all validators just validate "empty"

Re: Validate form on page start

2011-11-14 Thread Илья Нарыжный
Hello, Martin, I tried, as you propose, but that doesn't work: page is not initilized, so all validators just validate "empty" fields without propagated values to it. Maybe I should done that in some onXXX method? (in onBeforeRender and onComponentTag - it doesn't work)

Re: Validate form on page start

2011-11-14 Thread Martin Grigorov
Hi, On Sun, Nov 13, 2011 at 2:20 PM, Илья Нарыжный wrote: > Hello, > > I have following case: > There is RegistrationPage in the project. This page fill attributes of new > User and persists in the database. > But for registration from social networks we want to implement following: > show to new

Validate form on page start

2011-11-13 Thread Илья Нарыжный
Hello, I have following case: There is RegistrationPage in the project. This page fill attributes of new User and persists in the database. But for registration from social networks we want to implement following: show to new user the same RegistrationPage with filled fields according to data reci

Re: Good practice to validate two form components hidden deep in component structure

2011-10-01 Thread Igor Vaynberg
; My usecase: Validate that payment method "cash in advance" is only accepted > for shipping countries (DE, AT, CH). > My rule: No different shipping country -> ship to invoice country, otherwise > ship to shipping country. > My problem: Payment method is a group of radios on payment

Re: Good practice to validate two form components hidden deep in component structure

2011-10-01 Thread Martin Makundi
Hi! In my opinnion, best practice is type safe testing: https://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html 2011/10/1 Per Newgro : > Hello everybody, > > My environment: Wicket 1.5 > My usecase: Validate that payment method "cash in advance" is only a

Good practice to validate two form components hidden deep in component structure

2011-10-01 Thread Per Newgro
Hello everybody, My environment: Wicket 1.5 My usecase: Validate that payment method "cash in advance" is only accepted for shipping countries (DE, AT, CH). My rule: No different shipping country -> ship to invoice country, otherwise ship to shipping country. My problem: Paymen

Re: Model detached before Validate of FormValidator

2011-06-06 Thread Tito
Wow, you tryed hard to do this. I had no more ideas, I'll try with this. Thank you very much. Tito 2011/6/5 Per Newgro > Hi Tito, > > i hope i got a valid solution for you. Please check it: > > a) You need to use a bean. I've tried it with simple strings like > (1,2,7,24) > and it wasn't worki

Re: Model detached before Validate of FormValidator

2011-06-05 Thread Per Newgro
Hi Tito, i hope i got a valid solution for you. Please check it: a) You need to use a bean. I've tried it with simple strings like (1,2,7,24) and it wasn't working. I think because the renderer is called only with index 0. I don't know if this is a palette bug or a needed feature. b) you have

Re: Model detached before Validate of FormValidator

2011-06-03 Thread Tito
/3 Per Newgro > Afaik no. Your right. I missed the "alidator" part of the interface > IFormValidator. My explanation was related > the FromVisitor. Sorry for that. > > But you could make palette final and access it inside the validate method. > Then you could do a p

Re: Model detached before Validate of FormValidator

2011-06-03 Thread Per Newgro
Afaik no. Your right. I missed the "alidator" part of the interface IFormValidator. My explanation was related the FromVisitor. Sorry for that. But you could make palette final and access it inside the validate method. Then you could do a palette.|getRecorderComponent().getSelec

Re: Model detached before Validate of FormValidator

2011-06-03 Thread Tito
Does it means that Model of form is populated before Validate? I didn't know that. In that way I also can use palette model in form and it would have to work too. Thanks for the solution! Tito 2011/6/3 Per Newgro > Sorry, i missed to say that you have to connect bunsinessModel and

Re: Model detached before Validate of FormValidator

2011-06-03 Thread Per Newgro
e public void Validate(Form form) { // how to get a list of selected tasks??? } }); You have to set the model to the form by assigning the list or wrap it in a business model. Then you can do a form.getModelObject() in validate method and cast it to the assigned list or b

Re: Model detached before Validate of FormValidator

2011-06-03 Thread Per Newgro
Palette palette = new Palette(.); form.add(palette); form.add(new IFormValidator() { @Override public void Validate(Form form) { // how to get a list of selected tasks??? } }); You have to set the model to the form by assigning the list or wrap it in a business

Re: Model detached before Validate of FormValidator

2011-06-01 Thread Tito
te palette = new Palette(.); form.add(palette); form.add(new IFormValidator() { @Override public void Validate(Form form) { // how to get a list of selected tasks??? } }); So I made validation on "onSubmit" method of form. Now I'm fighting with lo

Re: Model detached before Validate of FormValidator

2011-05-31 Thread Per Newgro
Am 31.05.2011 15:10, schrieb Tito: Is this ok? I have to validate model object but it's detached when validate of form validator is called. How can I make this validation? Thanks Provide some code describing the problem please. Cheer

Model detached before Validate of FormValidator

2011-05-31 Thread Tito
Is this ok? I have to validate model object but it's detached when validate of form validator is called. How can I make this validation? Thanks

Re: how to validate a ListView?

2010-12-15 Thread rolandpeng
That's really what I want!Thank you very much. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-validate-a-ListView-tp3088381p3090257.html Sent from the Users forum mailing list archive at Nabbl

Re: how to validate a ListView?

2010-12-15 Thread Alexander Morozov
@Override protected void onInitialize() { super.onInitialize(); Form.findForm(this).add(new AbstractFormValidator() { private static final long serialVersionUID = 1L; @Override public void validate(Form form) { if

Re: how to validate a ListView?

2010-12-15 Thread rolandpeng
thanks for your reply.I'd like to try your second suggestion. But after looking into AbstractFormValidator and other related examples, I find that in my case I don't have any FormComponet to pass to error(FormComponent fc) after validate. Is there any way or examples to valida

Re: how to validate a ListView?

2010-12-14 Thread Alexander Morozov
context: http://apache-wicket.1842946.n4.nabble.com/how-to-validate-a-ListView-tp3088381p3088394.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

how to validate a ListView?

2010-12-14 Thread rolandpeng
Hi, I've a Listview and the content of list is selected by a modal window. The content of list should be validate to be required. I've tried to create a custom validator , but I have no idea how to bind the validator to the Listview. Is it possible to validate the Listview as requi

Re: how to validate a Label?

2010-12-13 Thread James Carman
icket.1842946.n4.nabble.com/how-to-validate-a-Label-tp3086348p3086380.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: how to validate a Label?

2010-12-13 Thread rolandpeng
oh, thank you for the hint. I find a HiddenField in the form package. I'll try this component later. Thank you again! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-validate-a-Label-tp3086348p3086380.html Sent from the Users forum mailing list archi

Re: how to validate a Label?

2010-12-13 Thread rolandpeng
I've tried a Label + TextField/setVisible(false)/setRequired(true) as well. But as the TextField is hidden,the required validation also disable ,either. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-validate-a-Label-tp3086348p3086378.html Sent fro

Re: how to validate a Label?

2010-12-13 Thread James Carman
hidden field? On Mon, Dec 13, 2010 at 8:35 PM, rolandpeng wrote: > > Hi, >   I need to validate a readonly Label with required which displays some > selection from a modalwindow. But a Label is not a formcomponent , so I > cannot use setRequired() to fulfill my requirement.

how to validate a Label?

2010-12-13 Thread rolandpeng
Hi, I need to validate a readonly Label with required which displays some selection from a modalwindow. But a Label is not a formcomponent , so I cannot use setRequired() to fulfill my requirement. If I use a TextField/setEnable(false)/setRequired(true) for instead, the validator also

Re: Validate after Submit?

2010-12-04 Thread splitshade
.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

Re: Validate after Submit?

2010-12-03 Thread andrea del bene
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 su

Validate after Submit?

2010-12-02 Thread splitshade
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

Re: How to Ajax-validate CheckBoxMultipleChoice?

2010-06-26 Thread David Chang
Yes. When I click Save button, wickets reports "required" error message for the CheckBoxMultipleChoice component. Thanks for chiming in! Best. --- On Sat, 6/26/10, yaniv kessler wrote: > From: yaniv kessler > Subject: Re: How to Ajax-validate CheckBoxMultipleCho

Re: How to Ajax-validate CheckBoxMultipleChoice?

2010-06-26 Thread yaniv kessler
Is that element placed / added to a form ? On Sat, Jun 26, 2010 at 5:32 AM, David Chang wrote: > Hi, I am unable to addres this need and have to ask the group. > > I am using the ajax approach to validate each field on a form. See the > following: > > > > > > If

How to Ajax-validate CheckBoxMultipleChoice?

2010-06-25 Thread David Chang
Hi, I am unable to addres this need and have to ask the group. I am using the ajax approach to validate each field on a form. See the following: If the above field gets focus and loses the focus without any value in it, there will be a red box around the input field. If it gets a value and

Re: FormComponentPanel's components onblur can't call validate?

2010-06-02 Thread Steve Mactaggart
idator). > > > > But when I try to do it dynamically by attaching a onchange > > AjaxFormUpdatingBehavior event to the 3 drop downs to call > > FormComponentPanel.validate() (@Override onUpdate, and only when all 3 > drop > > downs are selected of course), I know the on

Re: How to validate an entire object in a form (rather than a particular property of that object)

2010-04-20 Thread Dan Haywood
ok, thanks ... that worked. It threw up a different problem, but that'll be another post. Dan On 20/04/2010 01:53, Igor Vaynberg wrote: you can override form.onvalidate() and do your validation there -igor On Mon, Apr 19, 2010 at 4:51 PM, Dan Haywood > wrote:

Re: How to validate an entire object in a form (rather than a particular property of that object)

2010-04-19 Thread Igor Vaynberg
you can override form.onvalidate() and do your validation there -igor On Mon, Apr 19, 2010 at 4:51 PM, Dan Haywood wrote: > Hi Pedro, > but my problem is that there is no form component to represent the form > itself, is there? > > Any other thoughts? > > Dan > > > > On 19/04/2010 20:27, Pedro

Re: How to validate an entire object in a form (rather than a particular property of that object)

2010-04-19 Thread Dan Haywood
Hi Pedro, but my problem is that there is no form component to represent the form itself, is there? Any other thoughts? Dan On 19/04/2010 20:27, Pedro Santos wrote: Hi Dan On Mon, Apr 19, 2010 at 2:04 PM, Dan Haywood > wrote: Another form-related question.

Re: How to validate an entire object in a form (rather than a particular property of that object)

2010-04-19 Thread Pedro Santos
Hi Dan On Mon, Apr 19, 2010 at 2:04 PM, Dan Haywood wrote: > Another form-related question. > > I can see how to install a validator on a Form - Form#add(IFormValidator) - > but it seems that AbstractFormValidator, the adapter, always requires a > specific FormComponent to be specified in its e

How to validate an entire object in a form (rather than a particular property of that object)

2010-04-19 Thread Dan Haywood
Another form-related question. I can see how to install a validator on a Form - Form#add(IFormValidator) - but it seems that AbstractFormValidator, the adapter, always requires a specific FormComponent to be specified in its error(...) method. How does one raise an error on the state of the

Re: FormComponentPanel's components onblur can't call validate?

2010-03-10 Thread Cemal Bayramoglu
ll 3 drop > downs are selected of course), I know the onchange triggers (because it's > @Override onUpdate runs - had a system.out.println which runs), but the > validate() function doesn't run the age validator. I

Re: FormComponentPanel's components onblur can't call validate?

2010-03-09 Thread Igor Vaynberg
the behavior is attached to the child form component, why would it call validate on the parent? you will have to do that yourself. -igor On Tue, Mar 9, 2010 at 3:52 PM, Tony Wu wrote: > I have a FormComponentPanel which holds 3 dropdowns for month-day-year (it's > a birthday FormCom

FormComponentPanel's components onblur can't call validate?

2010-03-09 Thread Tony Wu
I know the onchange triggers (because it's @Override onUpdate runs - had a system.out.println which runs), but the validate() function doesn't run the age validator. It actually *never even calls convertInput* on the FormComponentPanel. Any ideas?

Re: validate

2010-03-02 Thread Ivan Dudko
pattern validator with >> > http://www.regular-expressions.info/regexbuddy/ipaccurate.html would >> > be better? >> > >> > Martijn >> > >> > On Tue, Mar 2, 2010 at 4:09 PM, Ivan Dudko wrote: >> >> Hello! >> >&g

Re: validate

2010-03-02 Thread Riyad Kalla
would > > be better? > > > > Martijn > > > > On Tue, Mar 2, 2010 at 4:09 PM, Ivan Dudko wrote: > >> Hello! > >> > >> I can't understand how can i validate ip a

Re: validate

2010-03-02 Thread Ivan Dudko
> http://www.regular-expressions.info/regexbuddy/ipaccurate.html would > be better? > > Martijn > > On Tue, Mar 2, 2010 at 4:09 PM, Ivan Dudko wrote: >> Hello! >> >> I can't understand how can i validate ip address (e.g. 192.168.0.238) >> using

Re: validate

2010-03-02 Thread Martijn Dashorst
Why do you want to use a UrlValidator? An ip-address is not a URL? Maybe a pattern validator with http://www.regular-expressions.info/regexbuddy/ipaccurate.html would be better? Martijn On Tue, Mar 2, 2010 at 4:09 PM, Ivan Dudko wrote: > Hello! > > I can't understand how can

validate

2010-03-02 Thread Ivan Dudko
Hello! I can't understand how can i validate ip address (e.g. 192.168.0.238) using UrlValidator. Thank you for help. Ivan Dudko - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e

Ad: Re: Validate with info messages, instead of errors

2010-02-25 Thread espen . pedersen
e messages from MaximumValidator. -- Espen Ønvik Pedersen Fra: Antoine van Wel Til: users@wicket.apache.org Dato: 25.02.2010 16:04 Emne: Re: Validate with info messages, instead of errors As for the link you show, the author is building something which is available in the Wicket core, which he seems to

Re: Validate with info messages, instead of errors

2010-02-25 Thread Antoine van Wel
ith a ComponentFeedbackMessageFilter so you will only see the info/error messages relevant to the FormComponent you attach that filter to. I don't really see the problem with adapting a MaximumValidator output info messages instead of errors, just override validate or copy and paste the whole thing and adapt it, it'

Validate with info messages, instead of errors

2010-02-25 Thread espen . pedersen
Hi all! I'm Looking for a way to perform validation, but print the messages as INFO (with Ajax), instead of ERRORs. I'd like to have a combination of error and info validators. An error will prevent the user from submitting the form, the info message will give the user a warning/info message. T

SV: validate() form (Form.class) - how to validate form by hand?

2009-12-11 Thread Wilhelmsen Tor Iver
> But in Wicket 1.4.3 the validate() method is protected so it's not > visible. By the way actually only hasError() method is public. In your Form class you can just override it with public visibility when you need it to be.

validate() form (Form.class) - how to validate form by hand?

2009-12-11 Thread Bernhard Michal
Hello everyone, How to run validation of form (Form.class) by hand? Form.class javadoc says: "If you want you can call validate() to execute form validation, hasError() to find out whether validate() resulted in validation errors, and updateFormComponentModels() to update the models of n

Validate RefreshingView

2009-09-22 Thread Hakan . Steisjo
Hi, I've got a problem that I hope someone can help me with and point me in the right direction. Is there a way in the validation phase to validate that a refreshingview contain items? My scenario: I've got a page that holds a form, an ajaxsubmitlink and a panel. The panel in tur

Re: Validate refreshingview

2009-09-22 Thread Igor Vaynberg
mitlink, and a panel containing > formcomponents. The panel also holds two other panels, where one of the > panels holds a refreshingview to which the user can add items, using a > textfield in the same panel. Is there a way to add a validator to the panel > or refreshingview that in t

Validate refreshingview

2009-09-22 Thread Hakan . Steisjo
ing a textfield in the same panel. Is there a way to add a validator to the panel or refreshingview that in the validate phase can check that the user has added atleast one item to the refreshingview? I can make this check in the onSubmit function of the ajaxsubmitlink in the page, but that c

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-08 Thread Vladimir K
o create an ajax behavior that will send >> the >> values from the form components we want. Maybe with the option to >> validate >> them or not. >> What do you think? >> >> Thierry >> >> >> 2009/7/7 Stefan Malmesjö >> >>> I

Re: Form : should it be possible to call validate() onBeforeRender ?

2009-07-07 Thread Joseph Pachod
Thanks for this answer to validate some extra components, I would override the onValidate() method of a form to add my own specific validation. The issue I'm encountering is due to calling the validate() method, the one which, I guess, then call onValidate(). I don't know if one ca

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-07 Thread Igor Vaynberg
st time I >> encounter >> > this problem. The first time, I found a workaround but this time I am >> stuck. >> > There should be a simple way to create an ajax behavior that will send >> the >> > values from the form components we want. Maybe with the opt

Re: Form : should it be possible to call validate() onBeforeRender ?

2009-07-07 Thread Fernando Wermus
Joseph, I think it is. For instance, If you need to validate some items from a Palette which is not a FormComponent, how do you achieve it? On Tue, Jul 7, 2009 at 7:01 AM, Joseph Pachod wrote: > Hi > > I just had some issue because I was calling validate() in some form > on

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-07 Thread Thierry Leveque
vior that will send > the > > values from the form components we want. Maybe with the option to > validate > > them or not. > > What do you think? > > > > Thierry > > > > > > 2009/7/7 Stefan Malmesjö > > > >> I just realized that m

Form : should it be possible to call validate() onBeforeRender ?

2009-07-07 Thread Joseph Pachod
Hi I just had some issue because I was calling validate() in some form onBeforeRender() : it was working with some components but not all of them. However, the question now arises whether it was a good idea at all : should validate() work if called in onBeforeRender ? Thanks in advance

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-07 Thread Igor Vaynberg
first time, I found a workaround but this time I am stuck. > There should be a simple way to create an ajax behavior that will send the > values from the form components we want. Maybe with the option to validate > them or not. > What do you think? > > Thierry > > > 2009/7/7 Stef

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-07 Thread Vladimir K
t; value >> of multiple form fields. >> >> I think this should be part of Wicket. It is not the first time I >> encounter >> this problem. The first time, I found a workaround but this time I am >> stuck. >> There should be a simple way to create an ajax behavi

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-07 Thread Vladimir K
rom the form components we want. Maybe with the option to validate > them or not. > What do you think? > > Thierry > > > 2009/7/7 Stefan Malmesjö > >> I just realized that maybe you need to extend your validators, too, at >> least if you want your modelobjec

Form : should it be possible to call validate() onBeforeRender ?

2009-07-07 Thread Joseph Pachod
Hi I just had some issue because I was calling validate() in some form onBeforeRender() : it was working with some components but not all of them. However, the question now arises whether it was a good idea at all : should validate() work if called in onBeforeRender ? Thanks in advance

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-07 Thread Thierry Leveque
this time I am stuck. There should be a simple way to create an ajax behavior that will send the values from the form components we want. Maybe with the option to validate them or not. What do you think? Thierry 2009/7/7 Stefan Malmesjö > I just realized that maybe you need to extend y

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-06 Thread Stefan Malmesjö
ch should have the same > > contents that were on INPUT1 before: > > > >|OPERATOR |V| > > > >|INPUT3="aBc"| > > > > The problem is that, when changing OPERATOR, I need to read the value > from

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-06 Thread Stefan Malmesjö
required (when they are visible, of course). > > > > > > When I change the value on "OPERATOR", the UI will change, hiding > INPUT1 > > and > > > INPUT2 but showing INPUT3, another TextField which should have the same > > > contents that were on INPUT1 be

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-06 Thread Thierry Leveque
d > > INPUT2 but showing INPUT3, another TextField which should have the same > > contents that were on INPUT1 before: > > > >|OPERATOR |V| > > > >|INPUT3="aBc"| > > > > The problem is that, when changing OPERATOR, I need to read

RE: Using validators to validate page parameters

2009-06-29 Thread Fouche, Pierre
Thanks Igor. > -Original Message- > From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] > Sent: Friday, June 26, 2009 5:09 PM > To: users@wicket.apache.org > Subject: Re: Using validators to validate page parameters > > Validatable v=new Validatable(value

Re: Using validators to validate page parameters

2009-06-26 Thread Igor Vaynberg
Validatable v=new Validatable(value); new FooValidator().validate(v); boolean valid=v.isValid(); -igor On Fri, Jun 26, 2009 at 12:56 AM, Fouche, Pierre wrote: > Is there a way to use Wicket validators (implementations of IValidator) to > validate PageParameters? It seems to me that vali

Using validators to validate page parameters

2009-06-26 Thread Fouche, Pierre
Is there a way to use Wicket validators (implementations of IValidator) to validate PageParameters? It seems to me that validators can only be added to form components. Thanks, Pierre

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-06-02 Thread Igor Vaynberg
problem is that, when changing OPERATOR, I need to read the value from > INPUT1 to set it into INPUT3, but if INPUT2 is empty I will receive a > validation message telling me that it is required... which it is, but I just > want Wicket to validate that when I want to *really* submit the for

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-06-02 Thread dfernandez
me that it is required... which it is, but I just want Wicket to validate that when I want to *really* submit the form, and not now that I am only changing the operator. Thanks. Regards, Daniel. igor.vaynberg wrote: > > how are you planning on reading the other values? you cannot access

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-06-02 Thread Igor Vaynberg
how are you planning on reading the other values? you cannot access the model so you will have to call getinput(), are you also planning on doing type conversion yourself then? -igor 2009/6/2 Daniel Fernández : > Hello, > > I have a form with a DropDownChoice, on which "onchange" event I want to

Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-06-02 Thread Daniel Fernández
Hello, I have a form with a DropDownChoice, on which "onchange" event I want to update some form components. But I need to read data from other fields of the form for doing so, and so I added an AjaxFormSubmitBehavior to the DropDownChoice. My intention is to read the data from the drop down and

Re: How to validate unique constraint?

2009-05-22 Thread Clint Popetz
--- > Von: Clint Popetz [mailto:cl...@42lines.net] > Gesendet: Dienstag, 19. Mai 2009 13:49 > An: users@wicket.apache.org > Betreff: Re: How to validate unique constraint? > > It's relatively straightforward to use the hibernate validator api to > apply JPA constraints: > >

Re: How to validate unique constraint?

2009-05-20 Thread Igor Vaynberg
Pass the id of the entity being edited into the validator and check the database in validate() Alternatively catch the exception in the form's onsubmit and call error on the right component. -igor On Tuesday, May 19, 2009, Christian Helmbold wrote: > > How can I validate a unique

Re: AW: How to validate unique constraint?

2009-05-19 Thread Vladimir K
nt Popetz [mailto:cl...@42lines.net] > Gesendet: Dienstag, 19. Mai 2009 13:49 > An: users@wicket.apache.org > Betreff: Re: How to validate unique constraint? > > It's relatively straightforward to use the hibernate validator api to > apply JPA constraints: > > import

AW: How to validate unique constraint?

2009-05-19 Thread Dorothée Giernoth
I would find this very useful! So a contribution to wicket-stuff would be awesome. Thnx. - dg -Ursprüngliche Nachricht- Von: Clint Popetz [mailto:cl...@42lines.net] Gesendet: Dienstag, 19. Mai 2009 13:49 An: users@wicket.apache.org Betreff: Re: How to validate unique constraint

Re: How to validate unique constraint?

2009-05-19 Thread Clint Popetz
27;ve done this locally; if folks would find it useful I'll contribute it to wicketstuff. -Clint On Tue, May 19, 2009 at 2:15 AM, Christian Helmbold wrote: > > How can I validate a unique constraint with Wicket? Because only the value of > an input field is passed to onValidate(

How to validate unique constraint?

2009-05-19 Thread Christian Helmbold
How can I validate a unique constraint with Wicket? Because only the value of an input field is passed to onValidate(IValidatable validatable), there is no chance to check if this value belongs to a specific object to update or if it would violate a unique constraint when creating a new object

Re: Validate, Navigate Wizards

2009-05-04 Thread jackkilian
been selected. > > Matt > > jackkilian wrote: >> Hi, >> >> my intention is to check if special mandatory fields are filled. >> What I found in the examples is the RequiredTextField... within the >> Wicket >> lib. >> >> I use a RadioBtnGroup

  1   2   >