Skip to Main Content

JSF -How to retrieve component values

user10416178Sep 15 2013

I need to check whether of mandatory fields in the form at the business layer,for example the XHTML has name,age,address,occupation fields I need to check if name and age details are entered with some specific values say name should be xyz ..etc.. but at the same point I do not want hard code the check for the mandatory fields in code instead It will be way I can think of is to covert the managed bean into a map and pass it to business layer this I would have use reflection or JSON , I am thinking of not using reflection ,so trying to explore other options.

please suggest

Post Details
Locked due to inactivity on Oct 13 2013
Added on Sep 15 2013