You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Victoria Vitaver <vi...@tt.com.au> on 2006/01/03 07:16:37 UTC
RE: Error message handling in repeater rows
Hmmm .. that's funny. I also have error handling inside repeater rows and
its seems to work ok. Are you by any chance hiding rows(and hence the error
messages)?
Vica
-----Original Message-----
From: Derek Hohls [mailto:DHohls@csir.co.za]
Sent: Saturday, 31 December 2005 8:25 PM
To: users@cocoon.apache.org
Subject: Error message handling in repeater rows
I'd appreciate it if anyone could point to how to setup
handling of error messages for fields in repeater rows...
the method I am using does not seem to be working?
I have setup a new error message widget inside of the
repeater row, but it does not seem to receive a fail message
when, for example, an integer is out of range e.g.
<fd:form
xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"
xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
<fd:widgets>
<fd:field id="message" required="false"> <!-- message for outer widgets-->
<fd:label></fd:label>
<fd:datatype base="string">
</fd:datatype>
</fd:field>
<fd:field id="GroupLabel" required="true">
<fd:label>Label</fd:label>
<fd:datatype base="string"/>
</fd:field>
<fd:repeater id="dsdata" size="5">
<fd:widgets>
<fd:field id="dsmessage" required="false"> <!-- message for repeater
widgets-->
<fd:label></fd:label>
<fd:datatype base="string"/>
</fd:field>
<fd:field id="dsYear">
<fd:label>Year</fd:label>
<fd:datatype base="integer"><fd:convertor type="plain"/></fd:datatype>
<fd:validation>
<fd:range max="2100" min="1900">
<fd:failmessage>Not in the required range (1900 to
2100)!</fd:failmessage>
</fd:range>
</fd:validation>
</fd:field>
Thanks!
Derek
--
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html
For electronic copies of the CSIR Copyright, Terms and Conditions and the
CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
HelpDesk@csir.co.za.
This message has been scanned for viruses and dangerous content by
MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for
their support.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org