People, I am with the following problem:
I have an object A that has a list of objects B.
But the number of objects in the list B is fixed (equal to 12, is an object with the month of the year and a value)
public class A{
private Map<Integer, B> itens;
//gets e sets
}
public class B{
private BigDecimal valor;
private Date mes;
//gets e sets
}
I have the following question:
How can I be able to access this attribute value using JSF?
I've tried the following ways:
<h:outputLabel value="#{msg['label.mes.janeiro']}:" />
<h:inputText id="janeiro" styleClass="input-large money"
value="#{levantamentoBean.itemCrud.itens[0].valor}">
</h:inputText>
and
<h:outputLabel value="#{msg['label.mes.janeiro']}:" />
<h:inputText id="janeiro" styleClass="input-large money"
value="#{levantamentoBean.itemCrud.itens[0].valor}">
<f:convertNumber pattern="#,##0.00" minFractionDigits="2" />
</h:inputText>
When I receive the object in my Bean, it does not come with the updated value, that I entered in the input. Someone can tell me if this is possible?