asked
2021-10-26 17:15:45 +0800
daniapesteguia 7 ● 2 Hi, I'm having a lot of problems fixing a Integer as value of my selected items. Example:
<combobox id="tipoRestringido" readonly="true" selecteditem="@bind(fx.accessType)">
<comboitem value="0" label="${labels.public}"/>
<comboitem value="1" label="${labels.private}"/>
</combobox>
I want to have Integer as value for my comboitem but ZK only seems to accept String.
I tried making a accessTypeStr setter method and parse to Integer but didn't work since I have to create the attribute, ZK doesn't accept just a Setter apparently.
¿Anyone had to deal with this already with a solution?