spring mvc radiobuttons -


i have view loops on list of results set in controller. trying achieve display group of radiobuttons per item in results list. field represents status e.g yes | no | maybe

if status populated relevant radiobutton selected if not user can select button , save performed (via ajax call)

as radiobutton must tied form thinking need multiple mini forms on page each set of radiobuttons?

<c:foreach var="myvar" items="${results}" varstatus="status">  <form:form modelattribute="results" method="post">  <form:radiobutton path="" value="yes" label="yes"/>  <form:radiobutton path="" value="no" label="no"/>  <form:radiobutton path="" value="maybe" label="maybe"/> </form:form>  </c:foreach> 

this render buttons need have them populated actual value in model object


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -