There is a
Map<String,Map<Double,Double>> priceMatrix
I want to use it in a
<ui:repeat value="#{calcModel.priceMatrix.keySet().toArray()}" var="x">
<div style="display: inline-block; margin-right: 10px">
<h:inputText value="#{x}" />
</div>
<ui:repeat value="#{calcModel.priceMatrix.get(x).keySet().toArray()}" var="y">
<div style="display: inline-block; margin-right: 10px">
<h:inputText value="#{y}" />
</div>
<div style="display: inline-block;">
<h:inputText value="#{calcModel.priceMatrix.get(x).get(y)}" />
</div>
<br />
</ui:repeat>
</ui:repeat>
if i post the formular, i get a UpdateModelException with the Message:
value="#{calcModel.priceMatrix.get(x).get(y)}": Illegal Syntax for Set Operation
This issue is making me terrible since over 6 hours. My first idea was to provide own getter and setter in my bean. This dosn't work because jsf calls the getter before calling the setter.
Is there a solution for my problem?
Would it be better to work with List?
Thank you!