| Author |
Customer Validator - List always empty
|
Marc Huber
Greenhorn
Joined: May 16, 2011
Posts: 1
|
|
Hi,
I have two Array-Lists. One Array-List (VersorgDataEntryListCompare) contains only data from database; the other (VersorgDataEntryList) is filled with data from database, too. The data of VersorgDataEntryList are shown by h:dataTable e.g.
If the user press the button "Speichern", the data from the inputfields are load into VersorgDataEntryList (the old values are deleted before)
The problem:
I want to proof, if the date from VERSORGUNG_VON is after the date of VERSORGUNG_BIS and if the inputvalues are not the same as in database.
For example:
Correct:
VERSORGUNG_VON.........VERSORGUNG_BIS
22.10.2000......................30.11.2004
Wrong
VERSORGUNG_VON........VERSORGUNG_BIS
12.10.2006.....................30.11.2004
Also wrong
VERSORGUNG_VON (database).....VERSORGUNG_VON (inputfield)
12.10.2006...................................12.10.2006
So i have written my own Validator.
I use the id-number of the component to know the number of fields and to know, from which field the value come from.
But my two list's are empty in this method. If I write a "normal" method (not a validator-method) to test, but there the list's are filled.
Why are both list's in the validator-method empty?
Or is there a better way to compare two fields?
Thank you
Greets Veni_Vidi_Vici
|
 |
 |
|
|
subject: Customer Validator - List always empty
|
|
|