ItEr33S08ValidacionEProbasFuncionaisItEr32S09: [Bug #87] Fixing exception on managing criterions.

On managing criterions screen it was not possible to set the resource over which the criteriontype
might be applied. The problem was an incorrect bind in listbox component.
This commit is contained in:
Javier Moran Rua 2009-11-07 22:48:16 +01:00
parent 19fb6961dc
commit eb4f7aafcd

View file

@ -38,11 +38,8 @@
</row>
<row>
<label value="${i18n:_('Type')}" />
<listbox id="lbResource" mold="select" selectedItem="@{controller.criterionType.resource}">
<listitem label="${i18n:_('Generic')}" value="RESOURCE" />
<listitem label="${i18n:_('Worker')}" value="WORKER" />
<listitem label="${i18n:_('Machine')}" value="MACHINE" />
</listbox>
<zscript>Object[] resourceTypes = org.navalplanner.business.resources.entities.ResourceEnum.values();</zscript>
<listbox id="lbResource" mold="select" model="@{resourceTypes}" selectedItem="@{controller.criterionType.resource}"/>
</row>
<row>
<label value="${i18n:_('Multiple values per resource')}"/>