mercredi 7 octobre 2015

need help in setting values to

I have a page layout like the below and I need to set values in <form:checkboxes/> as I have a form.

enter image description here

<form:form commandName="foo" class="form">
    <div class="form-group form-group-label">
        <div class="row">
            <div class="col-md-10 col-md-push-1">
                <label class="floating-label" for="login-username">Title</label>
                <form:input path="title" cssClass="form-control"/>
            </div>
        </div>
    </div>
    <div class="form-group form-group-label">
        <div class="row">
            <div class="col-md-10 col-md-push-1">
                 <form:checkboxes items="${bars}" path="bars" cssClass="form-control" itemValue="id" itemLabel="name"/>                                         
            </div>
        </div>
    </div>

I want to add values to above <form:checkboxes/> from the checkboxes out side of the form which are

<div class="form-group">
    <div class="checkbox checkbox-adv">
        <label for="input-checkbox-1">
            <input class="access-hide" id="input-checkbox-1" name="input-checkbox" type="checkbox">Option 1
            <span class="circle"></span>
            <span class="circle-check"></span>
            <span class="circle-icon icon icon-done"></span>
        </label>
    </div>
    <div class="checkbox checkbox-adv">
        <label for="input-checkbox-2">
            <input class="access-hide" id="input-checkbox-2" name="input-checkbox" type="checkbox">Option 2
            <span class="circle"></span>
            <span class="circle-check"></span>
            <span class="circle-icon icon icon-done"></span>
        </label>
    </div>
    <div class="checkbox checkbox-adv">
        <label for="input-checkbox-3">
            <input class="access-hide" id="input-checkbox-3" name="input-checkbox" type="checkbox">Option 3
            <span class="circle"></span>
            <span class="circle-check"></span>
            <span class="circle-icon icon icon-done"></span>
        </label>
    </div>
</div>

any body tell me a solution to this need.




Aucun commentaire:

Enregistrer un commentaire