pass all params values from javascript to controller grails -
after checking check box, have check entered values in form , have pass params form controller, if values not equal, has raise alert,is there simple way that?
do want validation on front-end? or back-end?
to raise alert end comparison params , if there issue, add :
flash.message = "what ever error is" flash.alerttype = "danger" and in gsp
<g:if test="${flash.message}"> <div class="alert<g:if test="${flash.alerttype}"> alert-${flash.alerttype}</g:if> fade in"> <button class="close" data-dismiss="alert">×</button> ${flash.message} </div>
Comments
Post a Comment