Re: Bypassing form validation

2009-07-23 Thread Jeremy Thomerson
setDefaultFormProcessing(false) http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/Button.html#setDefaultFormProcessing(boolean) -- Jeremy Thomerson http://www.wickettraining.com 2009/7/23 carlson weber filho - Master CIM Informática cwe...@mastercim.com.br: I have a form

RE: Bypassing form validation

2009-07-23 Thread Craig McIlwee
See http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/Button.html#setDefaultFormProcessing(boolean) -Original Message- From: carlson weber filho - Master CIM Informática [mailto:cwe...@mastercim.com.br] Sent: Thursday, July 23, 2009 3:31 PM To: users@wicket.apache.org

Re: Bypassing form validation

2009-07-23 Thread carlson weber filho - Master CIM Informá tica
I already tried using setDefaultFormProcessing, but I want to actually process the form without validating it, on one of these buttons but using this method, I can't update my data, . Let me explain better. I have a master-detail form, supose I have fields M1, M2 and M3 on master-side and D1,

Re: Bypassing form validation

2009-07-23 Thread Igor Vaynberg
you should use embedded forms. make a form for M1 inside it add another form D1 a button in D1 form will only process D1 form, a button in M1 form will process both. -igor 2009/7/23 carlson weber filho - Master CIM Informática cwe...@mastercim.com.br: I already tried using

Re: Bypassing form validation

2009-07-23 Thread carlson weber filho - Master CIM Informá tica
Isn't invalid to nest forms inside forms? Igor Vaynberg escreveu: you should use embedded forms. make a form for M1 inside it add another form D1 a button in D1 form will only process D1 form, a button in M1 form will process both. -igor 2009/7/23 carlson weber filho - Master CIM

Re: Bypassing form validation

2009-07-23 Thread Jeremy Thomerson
Wicket takes care of that for you - you can do it in Wicket. -- Jeremy Thomerson http://www.wickettraining.com 2009/7/23 carlson weber filho - Master CIM Informática cwe...@mastercim.com.br: Isn't invalid to nest forms inside forms? Igor Vaynberg escreveu: you should use embedded forms.

Re: Bypassing form validation

2009-07-23 Thread Dane Laverty
This is sounding like a Chuck Norris joke -- Wicket doesn't create invalid code -- it roundhouse kicks the rules until they submit! On Thu, Jul 23, 2009 at 12:48 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Wicket takes care of that for you - you can do it in Wicket. -- Jeremy

Re: Bypassing form validation

2009-07-23 Thread carlson weber filho - Master CIM Informá tica
Well, I almost got what I want, but there's a problem. When I submit the inner form, on the onSubmit I want to check some values of the master form, and the model doesn't get updated... Any hints here? tx carlson Dane Laverty escreveu: This is sounding like a Chuck Norris joke -- Wicket

Re: Bypassing form validation

2009-07-23 Thread Igor Vaynberg
you said you do not want to process the outer form. without validation you cannot update the model. eg if you put aa into an integer field how do we push that into an integer model? what you can do is call formcomponent.getinput() to get at the raw values of those components. -igor 2009/7/23

Re: Bypassing form validation

2009-07-23 Thread carlson weber filho - Master CIM Informá tica
Yes, I don't want to process it, but I want to do some processing based on the form values. But I got the point, If I don't validate form, I won't get my model updated. Now my problem goes back when I wanted to validate only parts of my values, so let's supose the folowing scenario Master

Re: Bypassing form validation

2009-07-23 Thread Igor Vaynberg
M1.processInput(); if (M1.isValid()) { value=M1.getModelObject(); } else { handleerrror } -igor 2009/7/23 carlson weber filho - Master CIM Informática cwe...@mastercim.com.br: Yes, I don't want to process it, but I want to do some processing based on the form values. But I got the point, If I

Re: Bypassing form validation

2009-07-23 Thread carlson weber filho - Master CIM Informá tica
you're the man! tx a lot carlson Igor Vaynberg escreveu: M1.processInput(); if (M1.isValid()) { value=M1.getModelObject(); } else { handleerrror } -igor 2009/7/23 carlson weber filho - Master CIM Informática cwe...@mastercim.com.br: Yes, I don't want to process it, but I want to do some