you should check your configuration.
In my configuration i get the message and when i click on the ! a popup window is
opened and the Errormessage is displayed.
The Messages must be declared in the sitemap.xml
Just like this:
<map:transformers default="xalan">
<map:transformer name="i18n" src="org.apache.cocoon.transformation.I18nTransformer">
<catalogues default="other">
<catalogue id="other" name="OtherMessages" location="messages" />
<catalogue id="forms" name="FormsMessages" location="messages" />
</catalogues>
<cache-at-startup>true</cache-at-startup>
</map:transformer>
</map:transformers>
The files OtherMessages and FormsMessages find you in the forms sample of Cocoon.
Path: cocoon/samples/blocks/forms/messages/
To open the popup-window you need the mattkruse javascript libs found for example in
cocoon/samples/blocks/forms/resources
In the sitemap.xml you must add a matcher for the resources
just like this:
<map:match pattern="*/htmlarea/**">
<map:read src="gui/htmlarea/{2}" />
<map:serialize />
</map:match>
<map:match pattern="*/mattkruse-lib/*">
<map:read src="gui/mattkruse-lib/{2}" />
<map:serialize />Check also the sitemap.xml in cocoon/samples/blocks/forms
Wolfgang
Derek Hohls wrote:
Two issues, which I think are related:
1. I have inserted a:
<fi:validation-errors> <header><p>Please correct errors! Look at fields marked with !!</p></header> <footer><p>Send your Form again./p></footer> </fi:validation-errors>
at the start of the form; now when a field fails a validation (eg. required), the following appears at the top of the form as:
The following errors have been detected (marked with !):
: general.field-required : general.field-required : general.field-required
Please correct them and re-submit the form.
BUT I need the messages to be in the format:
field label : This field needs an integer from 1 to 10.
Where and how do I go about creating the data that should comprise these messages?
2. When the "!" sign appears next to an invalid field, it
is linked to a <a href="#"> hyperlink - this seems very strange - should it not be linked to a popup error message of
some sort? If so, how and where do I create this facility?
Thanks Derek
-- Mit freundlichen Gr��en.
Wolfgang Klaus
transparent solutions | Tel: +49(0)911/462625-0 Software Systems & Consulting GmbH | Fax: +49(0)911/462625-29 Allersberger Str. 185 Geb. F | e-mail: [EMAIL PROTECTED] 90461 N�rnberg | Internet: www.tpso.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
