Ignore:
Timestamp:
Mar 17, 2010, 3:18:54 PM (10 years ago)
Author:
duh
Message:
  • improved try catch block in wizard data saving
  • if saving fails, the generated exception is shown in the client's error feedback dialog and a stacktrace is shown in the console
  • navigating away from last wizard page does not result in a warning anymore
  • last page does not contain a 'previous' button anymore as this makes no sense at all
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/wizard/common/_navigation.gsp

    r247 r279  
    1515%>
    1616    <div class="navigation">
    17       <g:if test="${page>1}"><wizard:ajaxButton name="previous" value="&laquo; prev" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /></g:if>
     17      <g:if test="${page>1 && page<pages.size}"><wizard:ajaxButton name="previous" value="&laquo; prev" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /></g:if>
    1818      <g:if test="${page>1 && page<pages.size}"> | </g:if>
    1919      <g:if test="${page<pages.size}"><wizard:ajaxButton name="next" value="next &raquo;" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /></g:if>
Note: See TracChangeset for help on using the changeset viewer.