Is there a way in JSF/JSP to display dynamic fields (particularly text fields) without extensive java script? Its almost like I want dynamic setting/getter on fields on the bean but I don't know the field names until run time.
I am guessing the best way is to have a HashMap of (fieldname, value) and have the JSP page iterate the map for each fieldname.
for example, the hashMap could be ("FirstName","Ben"),("LastName","Smith"),("SSN","555-55-5555"),("DOB","1-1-1960")
I basically want the page to display FirstName, LastNameSSN (keys from the HashMap).
However, I can't find a tag that iterates or code that does this for me.
I am trying to find an elegant way to do it with minimal java script if possible and even better if JSF validates it for me.