Search code examples
grailsgsp

Grails GSP button conditioning


How to disable or just hide button conditionaly depending of some controller logic?


Solution

  • Use the <if> tags,

    <g:if test="${showButton}">
         <input type="submit" value="Submit" />
    </g:if>