I am having an functionality through which I am displaying the properties of a document on JSF. The properties are coming through a map and I am iterating it over the JSF as follows:
<af:iterator var="list" value="#{MainContentBean.documentProperties}" id="i1">
<af:inputText label="#{list.key}" id="it1"editable="always" value="list.value">
</af:iterator>
This is working fine till I want to use it only for the display purpose, but if I want to make it up datatable, i.e the user can change the values of the input text box it's not working. The input text box is always displayed in read only mode if the setters and getters are not present. The values I am getting in map is uncertain, so in this situation, how can I generate setters and getters for each property value at runtime? Is this possible to do that?