select option by FTL
Posted by joysaha123 on Sep 09, 2011; 4:45am
URL: http://ofbiz.116.s1.nabble.com/select-option-by-FTL-tp3800803.html
I am trying to create a select option by FTL, I declared entity in the screens
<entity-and entity-name="ProductPriceType" list="productPriceType">
<field-map field-name="productPriceTypeId" />
<field-map field-name="description" />
</entity-and>
And my ftl part is like
<select name='productPriceTypeId'>
<#list productPriceTypes as productPriceType>
<option value='${productPriceTypes.productPriceTypeId}'>${productPriceTypes.description}</option>
</#list>
<option value="">---</option>
</select>
on launching page, values are not getting in the option , but it is fine when i use form widget.
Am i missing something ?