Posted By:
guru_prasanth
Posted On:
Tuesday, January 19, 2010 05:32 AM
I have the following scenario.I have to implement a field which would validate based on a pattern.But the catch here is the pattern is not fixed.It's dynamic in nature.
Let's take an example of currency.I have a drop down which has list of countries.I have few text feilds of amounts.Now based on the currency i should enable the validations for textfields.Forexample japanese currency has 3 dicimal digits.100.000.US currency has 100.00.Similarly some currency does't have any decimal at all.I can use validators and use patterns but the problem is i can not be tied to single pattern.What's the best JSF way of doing this.