cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark H" <>
Subject Woody - action widget disables validation
Date Thu, 09 Oct 2003 14:06:17 GMT
Can someone tell me why an action widget disables validation in Woody? I'm
trying out a simple form that doesn't involve validation, but it can never
get onto the success page because of the following code:

public boolean process(FormContext formContext) {
	if (formContext.doValidation())
		return validate(formContext);
	return false;

formContext.validation will be set to false when it calls the action
widget's readFromRequest method and so will return false which in turn
returns a null sitemap map to the sitemap and never shows the success page
contained within the action tags.


my widgets:

<?xml version="1.0" encoding="ISO-8859-1"?>
<wd:form xmlns:wd="">
	<wd:field id="username" required="true">
		<wd:datatype base="string"/>
	<wd:field id="password" required="true">
		<wd:datatype base="string" />
	<wd:action id="login" action-command="login">

my form view:

<?xml version="1.0"?>
<page xmlns:wt=""
xmlns:wi="" title="A Form">
	<wt:form-template action="form" method="POST">
		<wt:widget id="username"/>
		<wt:widget id="password"/>
		<wt:widget id="login"/>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message