If you return false you stop the wizard process, so the idea is that
you have to handle it yourself (usually with a redirect) just like
with the filters. For example
public bool OnBeforeStep(...)
{
if (SomethingIsWrong())
{
currentStepInstance.Redirect("somethere");
return false;
}
return true;
}
You might also watch this issue
http://support.castleproject.org/jira/browse/MR-128
Probably when MR-128 is completed, the OnBeforeStep will be deprecated.
On 8/29/06, Mircea Jivoin <[EMAIL PROTECTED]> wrote:
> Does some one has an example of how to use OnBeforeStep how to handle if is
> false?
> I what it to check there if all the things I need in that step are ready.
> Thanks,
> Mircea
--
Cheers,
hammett
http://hammett.castleproject.org/
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
CastleProject-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/castleproject-users