Grails: how to reset a form in grails -
i've created form , reset button application.
my reset button looks this
<g:render template="/layouts/pagebuttons" model="[type:'reset', value:'reset', reset:true]"/>
and form composed of textfields , radiobuttons.
this how made radio button:
<g:render template="/layouts/customelements" model="[type: 'radio', radioname: 'gender', radiolabels: ['male','female'], radiovalues: ['m','f'], radiovalue: employeeinstance?.gender]" />
i have portion in page shows error messages if have invalid input, etc.
my question if, if tried click existing reset button have, fields affected except radiobutton , errormessages. means if chose "female button" not reset value. , error messages remain in page.
what can radio buttons affected reset , error messages cleared?
note: need use render tag reset , radio button, please give me solution use well. thank you.
Comments
Post a Comment