Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment:

Update formatting and nomenclature

Description

The following is the step to Let's create a Client-Side validation workflow, step by step.

(info) The using webwork. Note the validate attribute is set to true. Note also that not all themes support this feature (

(info) Some themes do not support client-side validation).

Step 1

Create the jsp page. Note the <ww:head > tag being used, it will setup the css in this case (xhtml theme)form.

Wiki Markup
{snippet:id=clientValidation|lang=xml|javadoc=false|url=webwork/webapps/showcase/src/webapp/validation/quiz-client.jsp}

(info) This case uses the default xhtml theme, so the <saf:head > tag is used to link a style sheet.

Step 2

Create the action Action class.

Wiki Markup
{snippet:id=quizAction|javadoc=false|lang=java|url=webwork/webapps/showcase/src/java/com/opensymphony/webwork/showcase/validation/QuizAction.java}

Step 3

Create the validation.xml to configure the validators to be used.

...