Ignore:
Timestamp:
Jan 20, 2010, 5:01:26 PM (11 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)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/wizard/pages/_one.gsp

    r92 r101  
    11<%
    22/**
    3  * Wizard page one
     3 * Study page
    44 *
    55 * @author  Jeroen Wesbeek
     
    1616%>
    1717<wizard:pageContent>
    18         <wizard:textFieldElement name="studyTitle" help="The title of the study you are creating">Title</wizard:textFieldElement>
    19         <wizard:textFieldElement name="studyCode" help="A code to reference your study by">Code</wizard:textFieldElement>
    20         <wizard:textFieldElement name="studyResearchQuestion" help="The research question">Research Question</wizard:textFieldElement>
    21         <wizard:textFieldElement name="studyDescription">Description</wizard:textFieldElement>
    22         <wizard:textFieldElement name="studyEcCode">Ethical Committee Code</wizard:textFieldElement>
     18        <wizard:textFieldElement name="studyTitle" description="Title">
     19                The title of the study you are creating
     20        </wizard:textFieldElement>
     21        <wizard:textFieldElement name="studyCode" description="Code">
     22                A code to reference your study by
     23        </wizard:textFieldElement>
     24        <wizard:textFieldElement name="studyResearchQuestion" description="Research Question">
     25                The research question
     26        </wizard:textFieldElement>
     27        <wizard:textFieldElement name="studyDescription" description="Description" />
     28        <wizard:textFieldElement name="studyEcCode" description="Ethical Committee Code" />
    2329</wizard:pageContent>
Note: See TracChangeset for help on using the changeset viewer.