Show
Ignore:
Timestamp:
20-01-10 17:01:26 (4 years ago)
Author:
duh
Message:

- 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)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r100 r101  
    2121 
    2222        static constraints = { 
    23                 owner(nullable:true,blank:true) 
    24                 template(nullable:true,blank:true) 
     23                owner(nullable: true, blank: true) 
     24                title(nullable: false, blank: false) 
     25                template(nullable: true, blank: true) 
    2526        } 
    2627