I have the following list, and I pass a find, which returns a list of Access Registry
private List<RegistroAcceso> listRegistroAcceso;
listRegistroAcceso = registroAccesoService.findRegistroAccesoByNuserid(cvePersona);
Within that list there are 3 fields: NREADERIDN, NEVENTIDN and NDATETIME, each of them has numerical values, for example for the NREADERIDN field, if the values of that field are 52739, 52731 and 52733, then the value corresponds to it INDEPENDENCE, but if its values are 3320, and 3321, it corresponds INDEPENDENCE1
for example for the NEVENTIDN field, if its value is 55, 40 and 41 then it corresponds to SUCCESSFUL, if not corresponds ERRONEO then I want to convert those numerical values that the fields bring, in String type values, and that I can show that list, but with its value in text as well as in the image
I have this table, but right now it only shows me the value of the fields in numeric
<p:dialog header="Análisis de Registros" widgetVar="modalIntentos" modal="true" height="200" width="600px" appendTo="@(body)">
<h:form>
<p:dataTable styleClass="columns" style="max-width:3000px;max-height:770px;" var="biometrico" value="#{RegistroAccesoComponent.listRegistroAcceso}">
<p:column headerText="DISPOSITIVO" style="width:150px;">
<h:outputText value="#{biometrico.nreaderidn}" />
</p:column>
<p:column headerText="EVENTO" style="width:150px;">
<h:outputText value="#{biometrico.neventidn}" />
</p:column>
<p:column headerText="FECHA / HORA" style="width:150px;">
<h:outputText value="#{biometrico.ndatetime}" />
</p:column>
</p:dataTable>
</h:form>
</p:dialog>
How can I show the data in string in the table?