I am using <ui:repeat>
to display the data of a list of an object called DiscountPorWeight, which has 3 attributes:
-
An Object called Service Type
-
An integer called kilograms
-
A double called cost
The code I use to show it in the view is as follows:
<ui:repeat value="#{descuentosCtrl.descuentosPorPeso}" var="descuento">
<br/>
#{descuento.tipoServicio.nombre} #{descuento.kilogramos} Kg :
<p:inputText value="#{descuento.costo}" style="width: 200px;"/>
<br/>
</ui:repeat>
The way it ends up showing itself is as follows:
However, the way I want it to show is as follows:
But I can not think of how to do it using <ui:repeat>
Does anyone have an idea of how to achieve it?