mardi 6 septembre 2016

Setting a Java Entity field using a checkbox?

I have a checkbox in a HTML page of my Java Web Application. I would like it to set the field finished in my Java Homework Object to "yes" if checked and "no" if the box is left unticked.

I have the service and rest handlers created to call this, its the front end logic I need to write, how can I do this?

Below is my current checkbox:

<li>
                    <label for="finished">Finished: </label>

                    <input id="finished" name="finished" type="checkbox" />

                </li>

Aucun commentaire:

Enregistrer un commentaire