Hmm...

I have alreeady copied the "messages" directory (and the
"resources")  under my application directory; in fact
I have been using HTMLarea already.

I have the :

     <map:match pattern="resources/**">
       <map:read src="{0}"/>
     </map:match>

to enable the resources to work!

Still no signs that the either the popup is working
or the field gets translated via the i18n: my
pipeline looks as:

     <map:match pattern="*-display-pipeline">
       <map:generate src="cocoon:/internal/form/{1}"/> <!-- internal pipeline -->
       <map:transform type="i18n">
         <map:parameter name="locale" value="en-US"/>
       </map:transform>
       <map:call resource="simple-page2html"/>
       <map:serialize type="html"/>
     </map:match> 

where the "internal" form comes from 

     <map:match pattern="internal/form/*">
       <map:generate src="forms/{1}/{1}_template.xml"/>
       <map:transform type="forms"/>
       <map:transform src="stylesheets/forms/forms.xsl"/>
       <map:serialize type="xml"/>
     </map:match> 

The map:transformer name="i18n" is setup as per your
example below.


Where else could be the source of the problem?!

Thanks
Derek

>>> [EMAIL PROTECTED] 2004/09/03 02:46:42 PM >>>
Derek
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] 


-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to