cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: CForms Wizards
Date Fri, 12 Nov 2004 22:52:25 GMT
Sylvain Wallez wrote:

> That could be something like:
>
> function validateWizard() {
>  currentPage.setState(WidgetState.INVISIBLE); // another one may be 
> chosen below
>  for (page in pageList) {
>    page.setState(WidgetState.ACTIVE);
>    if (page.validate()) {
>      page.setState(WidgetState.INVISIBLE);
>    } else {
>      return false; // validation failed
>    }
>  }


return true; // all pages validated

> }


Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }


Mime
View raw message