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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -