tony1223 / zkfiddle

a writable and runnable environment for zk
22 stars 14 forks source link

selectbox issue #186

Open SergeBud opened 10 years ago

SergeBud commented 10 years ago

Hi. I'm new in zk. Have a small problem. In model class i hav a field which has a Set of objects property. I use select box : < selectbox model="@load(fmm.fClasses)" selectedIndex="@{fmm.fClass.id}" > < template name="model" var="cl"> ${cl.id} < /template > < /selectbox >

when a click a command button, selectbox send a selected index, not id value. how to pass id value via command ? thnx

SergeBud commented 10 years ago

i found another way to solve my problem, but i still wonder if there's any way to pass not selected index but the id value of my object via selectbox? tnx again