Last change
on this file since 105 was
101,
checked in by duh, 13 years ago
|
- refactored the wizard initial page to dynamically load pageOne, instead of rendering pageOne within the template itself. This was done because otherwise both the mainPage and pageOne had to contain duplicate logic. The ajaxified webflow works better this way.
- added an <wizard:ajaxFlowRedirect...> tag which renders javascript code executing a jQuery ajax call (it actually wraps around <wizard:button...> tag but lifts the ajax call out of the button and wraps javascript tags around it)
- improved the help / tooltip workings
- extended the <wizard:button...> with an afterSuccess argument which executes some javascript after success. This is different from the default submitToRemote 'after' behaviour which is always executed in parallel with the ajax success call (hence, you javascript cannot access ajax result data while the afterSuccess method can)
|
-
Property svn:keywords set to
Rev Author Date
|
File size:
816 bytes
|
Line | |
---|
1 | <% |
---|
2 | /** |
---|
3 | * Wizard navigational buttons |
---|
4 | * |
---|
5 | * @author Jeroen Wesbeek |
---|
6 | * @since 20100113 |
---|
7 | * @package wizard |
---|
8 | * @see dbnp.studycapturing.WizardController |
---|
9 | * |
---|
10 | * Revision information: |
---|
11 | * $Rev: 101 $ |
---|
12 | * $Author: duh $ |
---|
13 | * $Date: 2010-01-20 16:01:26 +0000 (wo, 20 jan 2010) $ |
---|
14 | */ |
---|
15 | %> |
---|
16 | <div class="navigation"> |
---|
17 | <g:if test="${page>1}"><wizard:ajaxButton name="previous" value="« prev" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="attachHelpTooltips()" class="prevnext" /></g:if> |
---|
18 | <g:if test="${page>1 && page<pages.size}"> | </g:if> |
---|
19 | <g:if test="${page<pages.size}"><wizard:ajaxButton name="next" value="next »" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="attachHelpTooltips()" class="prevnext" /></g:if> |
---|
20 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.