[ http://issues.apache.org/jira/browse/COCOON-1758?page=all ]
Carlos Chávez updated COCOON-1758: ---------------------------------- Attachment: patch1.txt patch.txt Hi to all. the first patch try to get correctly the locale parameter from the sitemap parameters, if the locale parameter does not exists we pass a empty string. the second patch fix the method to test against empty string not only null value, for example from the jx-macro we pass a empty string if the locale parameter does not exists, so we want to use the default Locale. Cheers. Carlos Chávez. > Form locale never used in JXMacros > ---------------------------------- > > Key: COCOON-1758 > URL: http://issues.apache.org/jira/browse/COCOON-1758 > Project: Cocoon > Issue Type: Bug > Components: Blocks: Forms > Affects Versions: 2.1.8, 2.2-dev (Current SVN), 2.1.9 > Reporter: Philippe Gassmann > Attachments: 20060201-cocoon-forms-1758, patch.txt, patch1.txt > > > The JXMacroHelper is created with : <jx:set var="cformsHelper" > value="#{org.apache.cocoon.forms.generation.JXMacrosHelper.createHelper($cocoon/consumer,$cocoon/request,$cocoon/parameters/locale)}"/> > So the locale is get from sitemap parameters. > the locale attribute of the form is then never used. > I will provide a patch as soon as possible -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira