File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Customer Validator - List always empty Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Customer Validator - List always empty" Watch "Customer Validator - List always empty" New topic

Customer Validator - List always empty

Marc Huber

Joined: May 16, 2011
Posts: 1

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:



Also wrong
VERSORGUNG_VON (database).....VERSORGUNG_VON (inputfield)

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
I agree. Here's the link:
subject: Customer Validator - List always empty
Similar Threads
Custom validator not validating
JSF validation not validating
Custom input validator
Problem jsf cutom validation -- validate method dont call
empty space validation