Hi,
Im using Cocoon 2.1.10 CFORMS,Hibernate,mysql 5.0.67 as DB for my
application.

I need to add locale support to pages. Below i've added some patterns for
different locale for my date field. I've stored my locale name in session.
When i run the application,the fields automatically changed as per the
locale and after the once loaded, i performed some submit actions,the
application throws a validation error as INVALID DATA and shows the
exclamation mark near the date field. My MySQL DB in english language and
database is in utf8 as character set. 

When i run the application as locale as en_US the application works
perfectly., I dont no whats the exact problem.

In my defn file:

<fd:field id="UpdatedDate">
        <fd:label><i18n:text>updatedTime</i18n:text></fd:label>
        <fd:datatype base="date">
                <fd:convertor type="formatting" variant="datetime">
                        <fd:patterns>
                                <fd:pattern>dd-MMM-yyyy HH:mm:ss</fd:pattern>
                                <fd:pattern locale="fr_FR">dd-MMM-yyyy 
HH:mm:ss</fd:pattern>
                                                   <fd:pattern
locale="en_US">dd-MMM-yyyy HH:mm:ss</fd:pattern>
                                                   <fd:pattern
locale="de">dd/MMM/yyyy</fd:pattern>
                        </fd:patterns>
                </fd:convertor> 
        </fd:datatype>
</fd:field>

In tmpl file:

<fi:validation-errors>
        
<header><p><i18n:text>validationErrorMessageHeader</i18n:text></p></header>
        
<footer><p><i18n:text>validationErrorMessageFooter</i18n:text></p></footer>
</fi:validation-errors>

Any suggestions to solve this problem,
Regards,
Aashik.
-- 
View this message in context: 
http://www.nabble.com/How-to-add-locale-support-to-CForms-pages--Problem-in-locale-in-DATE-field-tp21514623p21514623.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to