Is there a way to get the field name with the given getter method.
i get all the getter(s) (getYYY) by using reflection API. now i want to know that ‘yyy’ value. so that i can access that getter method by using expression like #{bean.yyy}.
Example are as given below.
getId — id
getID — ID ( i thought it could be ‘iD’, but it should be ‘ID’)
getNPI — NPI
getNPi — NPi
getNpi — npi
getNpI — npI
Please point me to the java bean convention resources if any.
You can download the JavaBeans spec from the Oracle website.
You can introspect beans using the
java.beanspackage:If you decide you really want to, you can also test your property binding expressions using a an EL implementation.