The Myfaces Trinidad resource LocaleElements JS does not appear when
using Seam and the forms do not work when using a trinidad component that displays
translated messages
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBSEAM-4532
URL:
https://jira.jboss.org/jira/browse/JBSEAM-4532
Project: Seam
Issue Type: Bug
Affects Versions: 2.2.0.GA
Environment: Windows XP, JBoss 5.1, Myfaces Trinidad 1.2.12, Facelets 1.1.15,
Seam 2.2.1
Reporter: A. Nieves
Some Myfaces Trinidad components use, when rendered, the Trinidad resource
LocaleElements_<locale>_<trinidad-version>.js.
The resource is included in the rendered page source (e.g.: <script
type="text/javascript">var _locale='es';var
_tLocale='es';</script><script type="text/javascript"
src="/TestSeam/adf/jsLibs/resources/LocaleElements_es1_2_12.js?loc=es"></script>)
but when you try to access that js the server gives an error:
HTTP Status 403 - Access to the requested resource has been denied
This only happens using Seam.
Example EAR project to reproduce:
https://docs.google.com/leaf?id=0B1ms0mMJOqpPM2M5Zjg1ZWEtMDZlNC00MjViLWEy...
Example Source:
https://docs.google.com/leaf?id=0B1ms0mMJOqpPYzAyMDI0ZWYtMTZkMC00NzI5LWE1...
If the test form included in the example is tried a javascript error notifying that the
TrMessageFactory._TRANSLATIONS (that is defined in the LocaleElements_es1_2_12.js) is
undefined (using FireBug) and the form will not submit.
If the <tr:validateRegExp> is removed the form will be submitted correctly because
it will not try yo use the TrMessageFactory._TRANSLATIONS.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: