gt; Hi,
>
> thanks for the reply,
> well.. good question, this would propably be the validator, i need to check
> the validity of the personal data fields before the form gets submitted.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Inter-
Hi,
thanks for the reply,
well.. good question, this would propably be the validator, i need to check
the validity of the personal data fields before the form gets submitted.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Inter-Component-Validation-or-how-to-marry
d expose the inner components from Panel B and Panel A to a
> FormValidator, OR ..
>
> Everything looks like a Hack, is there a really clean way how to solve this
> in Wicket?
>
> Thanks in advance for ANY hints and help
>
>
> --
> View this message in context:
> http://
Panel B and Panel A to a
> FormValidator, OR ..
>
> Everything looks like a Hack, is there a really clean way how to solve this
> in Wicket?
>
> Thanks in advance for ANY hints and help
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabb
42946.n4.nabble.com/Inter-Component-Validation-or-how-to-marry-two-strangers-tp2550675p2550675.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.or
n the Wicket jar (in /org/apache/wicket).
>>>>>> Make a similar properties file for your own application, and in the
>>>>>> same package as your application class with your own IConverter
>>>>>> property.
>>>>>>
>>>>>
James,
We have just never before had to do this for specific type conversions
(as opposed to for validation message which we specify and
internationalize on almost every system we build), and I solved
fachoch's problem by looking through the Wicket source code first
rather than at its Ja
ext of type bigdecimal validates user entered value to check if
>>> it is bigdecimal and it gives error message 'xxx' is not a valid
>>> bigddecimal, can I customize this message
>>>
&
gt;>>>> in Application.properties in the Wicket jar (in /org/apache/wicket).
>>>>> Make a similar properties file for your own application, and in the
>>>>> same package as your application class with your own IConverter
>>>>> property.
>
erty.
>>>>
>>>> Regards - Cemal
>>>> jWeekend
>>>> Training, Consulting, Development
>>>> http://jWeekend.com
>>>>
>>>>
>>>> On 17 September
ting, Development
>>> http://jWeekend.com
>>>
>>>
>>> On 17 September 2010 22:21, fachhoch wrote:
>>>>
>>>> input text of type bigdecimal validates user entered value to check if
>>>> i
or message 'xxx' is not a valid
>>> bigddecimal, can I customize this message
>>>
>>> --
>>> View this message in context:
>>> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544469.html
>>> Sent from the Us
pe bigdecimal validates user entered value to check if
>> it is bigdecimal and it gives error message 'xxx' is not a valid
>> bigddecimal, can I customize this message
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.co
;>>
>>> this change will apply only for bigdecimal ?
>>> I want customized only for bigdecimal
>>> --
>>> View this message in context:
>>> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544526.html
>>> Sent from the
2, fachhoch wrote:
>>
>> this change will apply only for bigdecimal ?
>> I want customized only for bigdecimal
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nab
will apply only for bigdecimal ?
> I want customized only for bigdecimal
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544526.html
> Sent from the Users forum mai
this change will apply only for bigdecimal ?
I want customized only for bigdecimal
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544526.html
Sent from the Users forum mailing list archive at Nabble.com
this message
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544469.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
input text of type bigdecimal validates user entered value to check if
it is bigdecimal and it gives error message 'xxx' is not a valid
bigddecimal, can I customize this message
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/bigdecimal-
id process(IFormSubmittingComponent submittingComponent) {
draftMode = !(submittingComponent == submitButton);
super.process(submittingComponent);
}
This is necessary since we need to update the flag prior to validation being
run.
This does mean that you can't use Wicke
my validations, but still update the underlying model objects so i
> can persist them in a partially completed state, then have the full
> validation run when the Submit button is clicked.
>
> If I call setDefaultFormProcessing(false) then the underlying model isn't
> updated
I have a form with 2 buttons: Save and Submit. If the user hits Save I want
to bypass my validations, but still update the underlying model objects so i
can persist them in a partially completed state, then have the full
validation run when the Submit button is clicked.
If I call
Cool, thanks Ernesto.
>-Original Message-
>From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
>Sent: Tuesday, 14 September 2010 6:28 PM
>To: users@wicket.apache.org
>Subject: Re: DropDownChoice - performing extra validation before model
>changed
>
>AjaxR
AjaxRequestTarget .get() will return it your are in a middle of an
AJAX request.
Ernesto
On Tue, Sep 14, 2010 at 10:24 AM, Chris Colman
wrote:
> I am trying to open up a message box inside the IValidator's validate
> method but I need an AjaxRequestTarget to open the MessageBox.
>
> Is there any
I am trying to open up a message box inside the IValidator's validate
method but I need an AjaxRequestTarget to open the MessageBox.
Is there anyway to get an AjaxRequestTarget in the validate method?
Regards,
Chris
-
To unsubsc
On Mon, Sep 13, 2010 at 10:33 PM, Chris Colman wrote:
> So both form and component validators will have access to the value?
>
>
Yes
--
Jeremy Thomerson
http://www.wickettraining.com
So both form and component validators will have access to the value?
Chris
>-Original Message-
>From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
>Sent: Tuesday, 14 September 2010 12:55 PM
>To: users@wicket.apache.org
>Subject: Re: DropDownChoice - performing extra va
rely on the Feedback
> panel to show an error message).
>
> DropDownChoice doesn't seem to have any methods to get the currently
> selected item (or null if none is selected).
>
> The only way seems to be checking the model but that would not be
> updated until after the v
item (or null if none is selected).
The only way seems to be checking the model but that would not be
updated until after the validation process is complete (I would tnink).
Any ideas?
-
To unsubscribe, e-mail: users-uns
46.n4.nabble.com/Re-AjaxButton-OnSubmit-Validation-Overridden-tp2298251p2298343.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
Hi,
Read
http://www.wicketframework.org/apidocs/wicket/markup/html/form/Form.html
about nested forms.
Also your can put your ListMultipleChoice and buttons to separate Panel
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Re-AjaxButton-OnSubmit-Validation-Overridden
efore for the
> Cancel operation. Just did not occur to me.
> Cheers
>
>
>
> On Thu, Jul 22, 2010 at 3:41 PM, MattyDE wrote:
>
>>
>> you could Try to set
>>
>>/**
>> * Sets the defaultFormProcessing property. When false (default
fault is
> true),
> all validation and
> * form updating is bypassed and the onSubmit method of that button
> is
> called directly, and the
> * onSubmit method of the parent form is not called. A common use
> for this
> is to create a cancel
>
you could Try to set
/**
* Sets the defaultFormProcessing property. When false (default is
true),
all validation and
* form updating is bypassed and the onSubmit method of that button is
called directly, and the
* onSubmit method of the parent form is not
I have an WebMarkupContainer that contains a
ListMultipleChoice control with Add and Add buttons. These buttons are of
type AjaxButton.
When I select some items form the ListMultipleChoice control and hit Add or
Add ALL, it triggers the form validation for the 'required fields' and in
this case I have
Update: I was able to confirm my theory below. It was specifically
MultiFileUploadField's validation of file size via Form#setMaxSize that was
causing the problem. Again, I question the value of this method if this is
the result. It sounds like you have to put attachment uploading in it
Form#setMaxSize.
What you said earlier, about how only fields that failed validation should
fail to be retained in the form, got me to thinking: since this restriction
is set in the Form object, does that block the model update for ALL fields?
That would make sense, but it would also make thi
Only the fields that failed conversion or validation should
> be
> > blank.
>
>
> See, that throws me off, too. Yes, the supposedly valid fields are not
> being preserved after submit and fail validation. I would have thought
> that
> they should have been preserved, L
>
> Back to the original question, when you say "all changes to the form
> are lost" - do you mean that the form rerenders with absolutely no values
> filled out? Only the fields that failed conversion or validation should be
> blank.
See, that throws me off, too.
ible. the sequence is basically
>
> * load entity - model
> * call setters - form component models
> * flush/close session - somewhere
>
Right, which is why I said in the second paragraph:
Only the fields that failed conversion or validation should be blank.
> Others should have
On Tue, Jul 20, 2010 at 12:53 AM, Jeremy Thomerson
wrote:
> Typically, I use LDM's for every place that I am viewing data, and a regular
> serializable model for places that I'm editing data. You must be able to
> persist changes across requests (without persisting to the long-term
> storage), wh
ing data. You must be able to
persist changes across requests (without persisting to the long-term
storage), which means that you'll need to be able to serialize things.
Back to the original question, when you say "all changes to the form are
lost" - do you mean that the form rerender
> solve. I have a form with a model that is a LoadableDetachableModel
> > wrapped
> > in a CompoundPropertyModel. I wouldn't expect that to be unusual.
> > However,
> > when a form submit is failing validation for , all changes to the form
> are
> > lost
undPropertyModel. I wouldn't expect that to be unusual.
> However,
> when a form submit is failing validation for , all changes to the form are
> lost. I'm guessing that the LoadableDetachableModel, when combined with
> the
> blocked update to the model, is causing thi
Hi all,
I have what I would think to be a fairly common usecase that I'd like to
solve. I have a form with a model that is a LoadableDetachableModel wrapped
in a CompoundPropertyModel. I wouldn't expect that to be unusual. However,
when a form submit is failing validation for , all
terator(int first, int count) {
> return takeBackPallet.getRollInfoList().iterator();
> }
>
> public int size() {
> return takeBackPallet.getRollInfoList().size();
> }
>
> public IModel model(TakeBackPalletRollInfo
> object) {
> return new
kPalletRollInfo
object) {
return new Model(object);
}
}
After form submit, when validation error occurs (like not filled
required field) on some field which is not in table, values in table
resets to it's initial values.
validation is needed because you cant stuff "abc" into an Integer
field, so it cannot be turned off completely. if you dont add any
validators and dont call setrequired then you should be good to go
because the only remaining bit wicket will do before pushing into your
models is type ch
Thanks for your reply, Jeremy. I just got around to reading it. I had been
under the impression that I'd have to call something from the #onSubmit to
trigger the feedback, but I tried it out based on your suggestion, and it
fits the bill.
This "deferred validation" is actually p
> Igor (or anyone else who knows the answer),
>
> There is one problem with my implementation of the FormValidator in the
> code
> that I included earlier. It performs validation using the Form's model
> object, which is a problem because the input hasn't been mapped ont
Igor (or anyone else who knows the answer),
There is one problem with my implementation of the FormValidator in the code
that I included earlier. It performs validation using the Form's model
object, which is a problem because the input hasn't been mapped onto it at
this stage of
t writing already has its own validation
> > logic, but I would like to integrate its results into the existing Wicket
> > form validation so as to unify the feedback. To this end, I'm trying to
> > extend AbstractFormValidator to wrap my system's logic.
> >
>
On Mon, Jun 28, 2010 at 9:27 PM, Ray Weidner
wrote:
> Hi all,
>
> The application that I'm current writing already has its own validation
> logic, but I would like to integrate its results into the existing Wicket
> form validation so as to unify the feedback. To this end, I&
Hi all,
The application that I'm current writing already has its own validation
logic, but I would like to integrate its results into the existing Wicket
form validation so as to unify the feedback. To this end, I'm trying to
extend AbstractFormValidator to wrap my system's log
On Tue, Jun 15, 2010 at 5:24 PM, Brian Mulholland wrote:
> The two are added to the same component, but have no direct
> relationship to each other. It IS true that the non-working one is
> added 2nd. However in the test where I am trying to get control to
> the 2nd one, I typed input that did n
The two are added to the same component, but have no direct
relationship to each other. It IS true that the non-working one is
added 2nd. However in the test where I am trying to get control to
the 2nd one, I typed input that did not evoke a message from the first
validator.
But could you elabor
On Tue, Jun 15, 2010 at 4:57 PM, Brian Mulholland wrote:
> I have two validations on a textbox. One is extended from the
> EmailValidation class that comes with wicket and works fine. The
> other is an extension of AbstractValidator. That one never gets
> called. It never gets to the onValidat
message in context:
http://apache-wicket.1842946.n4.nabble.com/Easy-fast-question-properties-file-for-validation-tp2256542p2256611.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail
I have two validations on a textbox. One is extended from the
EmailValidation class that comes with wicket and works fine. The
other is an extension of AbstractValidator. That one never gets
called. It never gets to the onValidate(). Why would one validator
get invoked and function perfectly w
t..
what¿?
cheersss
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Easy-fast-question-properties-file-for-validation-tp2256542p2256573.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---
ket.1842946.n4.nabble.com/Easy-fast-question-properties-file-for-validation-tp2256542p2256542.html
Sent from the Wicket - User 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
first call setlabel on your formcomponent with the value that you want
to show up, then in the error message template use ${label} variable.
-igor
On Mon, Jun 7, 2010 at 10:54 AM, Brian Mulholland
wrote:
> This is probably a stupid question, but when I set up a validation
> like require
This is probably a stupid question, but when I set up a validation
like required or a custom validator, I want the "label" in the message
to reflect a value other than the Id of the component. How can I set
that to a value I'd prefer?
B
this message in context:
http://apache-wicket.1842946.n4.nabble.com/Simple-Validation-question-tp2221798p2221979.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr
laboration!
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Simple-Validation-question-tp2221798p2221939.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user
Why not use accurate iban validator?
http://www.google.fi/search?q=iban+validation+formula
**
Martin
2010/5/19 Victor_Trapiello :
>
> True my friend,
>
> IBAN example: CY1700200128001200527600
>
> but still I have the same doubt imagen it has only numbers, should I do a
&
use patternvalidator that can check based on a regex
-igor
On Tue, May 18, 2010 at 2:14 PM, Victor_Trapiello wrote:
>
> True my friend,
>
> IBAN example: CY1700200128001200527600
>
> but still I have the same doubt imagen it has only numbers, should I do a
> custom vali
True my friend,
IBAN example: CY1700200128001200527600
but still I have the same doubt imagen it has only numbers, should I do a
custom validation saying that in this string I do not want find A or B or
C. WHAT A WASTE OF TIME ISN´T IT¿?
Thank you very much for your cooperation
is too big to store it and validate with the
> integer class...
>
> Discuss!!
>
> Thank you very much guys!!
>
> Victor Trapiello
> www.trapiello.net
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Simple-V
in context:
http://apache-wicket.1842946.n4.nabble.com/Simple-Validation-question-tp2221798p2221798.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apac
che-wicket.1842946.n4.nabble.com/dynamic-forms-retrieve-a-component-for-validation-tp2219721p2219721.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsub
.nabble.com/dynamic-forms-retrieve-a-component-for-validation-tp2219721p2219839.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional
component?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/dynamic-forms-retrieve-a-component-for-validation-tp2219721p2219721.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsu
validation with ajax before user submits the
form
On 1) Why not call AjaxRequestTarget.get().addComponent(yourFeedbackPanel)?
Ernesto
On Mon, May 17, 2010 at 1:17 PM, Erich W Schreiner wrote:
> Dear all,
>
> I would like to perform form validation using Ajax before the user actually
On 1) Why not call AjaxRequestTarget.get().addComponent(yourFeedbackPanel)?
Ernesto
On Mon, May 17, 2010 at 1:17 PM, Erich W Schreiner wrote:
> Dear all,
>
> I would like to perform form validation using Ajax before the user actually
> submits the form, similar to Ajax-based fiel
Dear all,
I would like to perform form validation using Ajax before the user actually
submits the form, similar to Ajax-based field validation. I have added an
implementation of AbstractFormValidator to the form, and an Ajax behavior that
sends the current data to the server triggered by the
Hi,
I just came across this same issue... I was just wondering why the
wicket:id attributes wouldn't pass validation? Isn't that what this
"xmlns:wicket" is for?
Thanks!
Jamie
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Str
Jame, thanks for quick reply on a Saturday evening.. Exactly what I want. Best,
David
--- On Sat, 3/27/10, James Carman wrote:
> From: James Carman
> Subject: Re: How to put a validation error message near its field?
> To: users@wicket.apache.org
> Date: Saturday, March 27, 20
http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/panel/ComponentFeedbackPanel.html
On Sat, Mar 27, 2010 at 10:11 PM, David Chang wrote:
> FeedbackPanel is great in in terms of gathering messages in a central
> place. But I saw many great sites have messages near their fields.
>
> H
FeedbackPanel is great in in terms of gathering messages in a central place.
But I saw many great sites have messages near their fields.
How can we do this in Wicket?
Thank in advance for any info or pointer!
Regards.
-
. When I move to a different field, this
>> > feedback
>> > message is no longer in the session. Can somebody explain that?
>> >
>> > Thanks,
>> > Anna
>> >
>> >
>>
>> --
>> View this message in context:
>> htt
a different field, this
> > feedback
> > message is no longer in the session. Can somebody explain that?
> >
> > Thanks,
> > Anna
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Feedback-and-field-validation-tp27924233p28022371.html
>
ger in the session. Can somebody explain that?
>
> Thanks,
> Anna
>
>
--
View this message in context:
http://old.nabble.com/Feedback-and-field-validation-tp27924233p28022371.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
>
>>> Thanks for your help but I don't understand. I even got the source code
>>> for
>>> http://www.wicket-library.com/wicket-examples/signin/?wicket:bookmarkablePage=:org.apache.wicket.examples.signin.SignInand
>>> when I run this in my environmen
Hi,
I validate fields using AjaxFormComponentUpdatingBehavior("onblur"). When I
am on field 1, and data is invalid, it displays feedback message, and I can
see this message in session. When I move to a different field, this feedback
message is no longer in the session. Can somebody explain that?
suggested.
>>
>> - Tristan
>>
>>
>> Martijn Dashorst wrote:
>>>
>>> You might try to return an empty array..
>>>
>>> Martijn
>>>
>>
>> --
>&g
Antoine,
I think this was discussed 3 days ago in the thread titled
"Form#anyComponentError change in 1.4 breaks validation" (Russel
Morrisey), basically noting that in a recent release of Wicket, the
form "onError" behavior was changed to checking for errors on ANY
component
make your button setusedefaultformprocessing(false) and trigger
validation of the form yourself.
-igor
On Thu, Feb 11, 2010 at 10:28 AM, Tony Wu wrote:
> For form submission I can override onSubmit to do my own processing, but is
> there anything I can override that happens BEFORE th
For form submission I can override onSubmit to do my own processing, but is
there anything I can override that happens BEFORE the form validation? I
need to for example, based on which Button they press, .setRequired(false)
on some components before the form processing kicks in.
I tried @Override
please create a quickstart and attach it to jira
-igor
On Thu, Feb 11, 2010 at 6:53 AM, Antoine van Wel
wrote:
> hi,
>
> In a nested form the onValidate() is overridden.
> It sets an error message on a component inside this form - so not on
> the form itself.
>
> However the submit on the form i
hi,
In a nested form the onValidate() is overridden.
It sets an error message on a component inside this form - so not on
the form itself.
However the submit on the form itself is executed as if no error
exists. What I see when debugging is that hasErrorMessages on the
inside nested form returns
gt; Martijn
>>
>
> --
> View this message in context:
> http://www.nabble.com/Form-validation-without-a-form-component-tp22682572p22866535.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> --
-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
Sent: Monday, February 08, 2010 10:00 PM
To: users@wicket.apache.org
Subject: Re: Form#anyComponentError change in 1.4 breaks validation
yes, that would definately help, as well as a testcase.
-igor
On Mon, Feb 8, 2010 at 6
ssionse.com | www.missionse.com
> 304 West Route 38, Moorestown, NJ 08057
>
> -Original Message-
> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> Sent: Monday, February 08, 2010 1:20 PM
> To: users@wicket.apache.org
> Cc: Juergen Donnerstag
> Subject: Re:
PM
To: users@wicket.apache.org
Cc: Juergen Donnerstag
Subject: Re: Form#anyComponentError change in 1.4 breaks validation
Juergen,
do you remember what the problem was taking out the instanceof checks
for Form and FormComponent? i dont see why they were added or why
removing them would cause
27;s
> child hierarchy were checked for component.hasErrorMessage() during form
> validation; any error registered against a component would cause a validation
> failure. In the new version, only instances of Form or FormComponent are
> checked; errors registered against other components are ignored.
uring form validation;
any error registered against a component would cause a validation failure. In
the new version, only instances of Form or FormComponent are checked; errors
registered against other components are ignored.
Example use case: We have a customized inmethod DataGrid (excellent
Great thank you very much !
-Original Message-
From: Stefan Droog [mailto:sdr...@educator.eu]
Sent: Donnerstag, 21. Januar 2010 17:13
To: users@wicket.apache.org
Subject: RE: Validation errors
Try
form.error(getString("error.SolrConnectionFault"));
-Original Message
Try
form.error(getString("error.SolrConnectionFault"));
-Original Message-
From: Riccardo Trombini [mailto:riccardo.tromb...@csnc.ch]
Sent: Thursday, January 21, 2010 5:09 PM
To: users@wicket.apache.org
Subject: Validation errors
Hi
I have problems with FormValidation.
Hi
I have problems with FormValidation. Everything works perfect till
Wicket has to promt the Errormessages.
Something with the localization went wrong, instead of the message I
receive : "[ValidationError message=[null],
keys=[error.SolrConnectionFault], variables=[null]]"
I use a Feedbac
401 - 500 of 1124 matches
Mail list logo