You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by David Uebelacker <da...@uebelacker.eu> on 2007/06/05 18:43:41 UTC

[Trinidad] e.getFacesMessage is no Function

Hi,

I'm using the trinidad SVN source.

When i want to save a simple form, i get the JS error "e.getFacesMessage
is no Function".

There seems to be a problem initialising the TrConverterException in
Locale.js cause the LocaleElements array is empty.

Someone familiar with Locale.js could help me understanding that file ;-)
... and tell me how the LocaleElements gets filled?


Thanks

David




Re: [Trinidad] e.getFacesMessage is no Function

Posted by David Uebelacker <da...@uebelacker.eu>.
Hi,

for the moment I can absolutly live with java 5 ;-).

Anyway I was interested to look in the generator code and i found out
following:

The generator uses the following resource bundles to get the locale
dependent data:

sun.text.resources.DateFormatZoneData
sun.text.resources.LocaleElements

These are part of the rt.jar file until java 5. With java 6 these bundles
doesn't exist anymore, are hard coded and can be accessed through
sun.util.resources.LocaleData (not on the public API :-().

Next week i could make a proposition to solve the problem ...


Regards,

David



> To clarify:  running Trinidad with J6 should work without
> problems, and any issues there would be high priority bugs!
>
> This is a build issue.  Specifically, the LocaleElements
> generator, which is grabbing things like days of the week
> and months from the JDK to send over in .js, relies on
> undocumented array structure information, as there wasn't
> a public API to get this information.
>
> The sad thing is that this breaks on each major new
> version of the JDK.  It'd be great to get the build working
> on J6 without breaking it on J5, if someone wanted
> to take a look at it.
>
> -- Adam
>
>
> On 6/6/07, Matthias Wessendorf <ma...@apache.org> wrote:
>> I noticed J6 issues in the past as well.
>> Currently Java5 is the first class choice, IMO
>>
>> -M
>>
>>
>> On 6/6/07, David Uebelacker < david@uebelacker.eu> wrote:
>> > hi,
>> >
>> > now i solved the problem ... i found out, that my
>> LocaleElements_x_x.js
>> > files where empty.
>> >
>> > These files are generated during the build process and the generator
>> seems
>> > not to work with jdk 1.6.0. With java 1.5 it worked fine ...
>> >
>> > regards,
>> >
>> > david
>> >
>> >
>> > > hi,
>> > >
>> > > im using the tr:inputText with Double values ... but i will strip it
>> > > down to a small example tomorrow....
>> > >
>> > > David
>> > >
>> > > Matthias Wessendorf schrieb:
>> > >> what values are you binding to your input controls ?
>> > >>
>> > >> looks like a JS issue, when trying to throw JS TrConverterException
>> > >>
>> > >> -M
>> > >>
>> > >> On 6/5/07, David Uebelacker <david@uebelacker.eu > wrote:
>> > >>> Hi,
>> > >>>
>> > >>> I'm using the trinidad SVN source.
>> > >>>
>> > >>> When i want to save a simple form, i get the JS error
>> > >>> "e.getFacesMessage
>> > >>> is no Function".
>> > >>>
>> > >>> There seems to be a problem initialising the TrConverterException
>> in
>> > >>> Locale.js cause the LocaleElements array is empty.
>> > >>>
>> > >>> Someone familiar with Locale.js could help me understanding that
>> file
>> > >>> ;-)
>> > >>> ... and tell me how the LocaleElements gets filled?
>> > >>>
>> > >>>
>> > >>> Thanks
>> > >>>
>> > >>> David
>> > >>>
>> > >>>
>> > >>>
>> > >>>
>> > >>
>> > >>
>> > >
>> > >
>> > >
>> >
>> >
>> > --
>> >
>> >
>>
>>
>>
>> --
>> Matthias Wessendorf
>>
>> further stuff:
>> blog: http://matthiaswessendorf.wordpress.com/
>> mail: matzew-at-apache-dot-org
>
>


-- 
David Uebelacker
mailto:david@uebelacker.eu
http://david.uebelacker.eu/


Re: [Trinidad] e.getFacesMessage is no Function

Posted by Adam Winer <aw...@gmail.com>.
To clarify:  running Trinidad with J6 should work without
problems, and any issues there would be high priority bugs!

This is a build issue.  Specifically, the LocaleElements
generator, which is grabbing things like days of the week
and months from the JDK to send over in .js, relies on
undocumented array structure information, as there wasn't
a public API to get this information.

The sad thing is that this breaks on each major new
version of the JDK.  It'd be great to get the build working
on J6 without breaking it on J5, if someone wanted
to take a look at it.

-- Adam


On 6/6/07, Matthias Wessendorf <ma...@apache.org> wrote:
> I noticed J6 issues in the past as well.
> Currently Java5 is the first class choice, IMO
>
> -M
>
>
> On 6/6/07, David Uebelacker < david@uebelacker.eu> wrote:
> > hi,
> >
> > now i solved the problem ... i found out, that my LocaleElements_x_x.js
> > files where empty.
> >
> > These files are generated during the build process and the generator seems
> > not to work with jdk 1.6.0. With java 1.5 it worked fine ...
> >
> > regards,
> >
> > david
> >
> >
> > > hi,
> > >
> > > im using the tr:inputText with Double values ... but i will strip it
> > > down to a small example tomorrow....
> > >
> > > David
> > >
> > > Matthias Wessendorf schrieb:
> > >> what values are you binding to your input controls ?
> > >>
> > >> looks like a JS issue, when trying to throw JS TrConverterException
> > >>
> > >> -M
> > >>
> > >> On 6/5/07, David Uebelacker <david@uebelacker.eu > wrote:
> > >>> Hi,
> > >>>
> > >>> I'm using the trinidad SVN source.
> > >>>
> > >>> When i want to save a simple form, i get the JS error
> > >>> "e.getFacesMessage
> > >>> is no Function".
> > >>>
> > >>> There seems to be a problem initialising the TrConverterException in
> > >>> Locale.js cause the LocaleElements array is empty.
> > >>>
> > >>> Someone familiar with Locale.js could help me understanding that file
> > >>> ;-)
> > >>> ... and tell me how the LocaleElements gets filled?
> > >>>
> > >>>
> > >>> Thanks
> > >>>
> > >>> David
> > >>>
> > >>>
> > >>>
> > >>>
> > >>
> > >>
> > >
> > >
> > >
> >
> >
> > --
> > David Uebelacker
> > Laettenstr. 16, CH-8952 Schlieren
> > Mobil +41 (0) 76/496 654 0
> > Phone +41 (0) 43/433 826 4
> > Voip +49 (0) 89/420 954 788
> >
> > mailto:david@uebelacker.eu
> > http://www.uebelacker.eu/
> >
> >
>
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> mail: matzew-at-apache-dot-org

Re: [Trinidad] e.getFacesMessage is no Function

Posted by Matthias Wessendorf <ma...@apache.org>.
I noticed J6 issues in the past as well.
Currently Java5 is the first class choice, IMO

-M

On 6/6/07, David Uebelacker <da...@uebelacker.eu> wrote:
>
> hi,
>
> now i solved the problem ... i found out, that my LocaleElements_x_x.js
> files where empty.
>
> These files are generated during the build process and the generator seems
> not to work with jdk 1.6.0. With java 1.5 it worked fine ...
>
> regards,
>
> david
>
>
> > hi,
> >
> > im using the tr:inputText with Double values ... but i will strip it
> > down to a small example tomorrow....
> >
> > David
> >
> > Matthias Wessendorf schrieb:
> >> what values are you binding to your input controls ?
> >>
> >> looks like a JS issue, when trying to throw JS TrConverterException
> >>
> >> -M
> >>
> >> On 6/5/07, David Uebelacker <da...@uebelacker.eu> wrote:
> >>> Hi,
> >>>
> >>> I'm using the trinidad SVN source.
> >>>
> >>> When i want to save a simple form, i get the JS error
> >>> "e.getFacesMessage
> >>> is no Function".
> >>>
> >>> There seems to be a problem initialising the TrConverterException in
> >>> Locale.js cause the LocaleElements array is empty.
> >>>
> >>> Someone familiar with Locale.js could help me understanding that file
> >>> ;-)
> >>> ... and tell me how the LocaleElements gets filled?
> >>>
> >>>
> >>> Thanks
> >>>
> >>> David
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
>
>
> --
> David Uebelacker
> Laettenstr. 16, CH-8952 Schlieren
> Mobil +41 (0) 76/496 654 0
> Phone +41 (0) 43/433 826 4
> Voip +49 (0) 89/420 954 788
>
> mailto:david@uebelacker.eu
> http://www.uebelacker.eu/
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

Re: [Trinidad] e.getFacesMessage is no Function

Posted by David Uebelacker <da...@uebelacker.eu>.
hi,

now i solved the problem ... i found out, that my LocaleElements_x_x.js
files where empty.

These files are generated during the build process and the generator seems
not to work with jdk 1.6.0. With java 1.5 it worked fine ...

regards,

david


> hi,
>
> im using the tr:inputText with Double values ... but i will strip it
> down to a small example tomorrow....
>
> David
>
> Matthias Wessendorf schrieb:
>> what values are you binding to your input controls ?
>>
>> looks like a JS issue, when trying to throw JS TrConverterException
>>
>> -M
>>
>> On 6/5/07, David Uebelacker <da...@uebelacker.eu> wrote:
>>> Hi,
>>>
>>> I'm using the trinidad SVN source.
>>>
>>> When i want to save a simple form, i get the JS error
>>> "e.getFacesMessage
>>> is no Function".
>>>
>>> There seems to be a problem initialising the TrConverterException in
>>> Locale.js cause the LocaleElements array is empty.
>>>
>>> Someone familiar with Locale.js could help me understanding that file
>>> ;-)
>>> ... and tell me how the LocaleElements gets filled?
>>>
>>>
>>> Thanks
>>>
>>> David
>>>
>>>
>>>
>>>
>>
>>
>
>
>


-- 
David Uebelacker
Laettenstr. 16, CH-8952 Schlieren
Mobil +41 (0) 76/496 654 0
Phone +41 (0) 43/433 826 4
Voip +49 (0) 89/420 954 788

mailto:david@uebelacker.eu
http://www.uebelacker.eu/


Re: [Trinidad] e.getFacesMessage is no Function

Posted by David Übelacker <da...@uebelacker.eu>.
hi,

im using the tr:inputText with Double values ... but i will strip it 
down to a small example tomorrow....

David

Matthias Wessendorf schrieb:
> what values are you binding to your input controls ?
>
> looks like a JS issue, when trying to throw JS TrConverterException
>
> -M
>
> On 6/5/07, David Uebelacker <da...@uebelacker.eu> wrote:
>> Hi,
>>
>> I'm using the trinidad SVN source.
>>
>> When i want to save a simple form, i get the JS error "e.getFacesMessage
>> is no Function".
>>
>> There seems to be a problem initialising the TrConverterException in
>> Locale.js cause the LocaleElements array is empty.
>>
>> Someone familiar with Locale.js could help me understanding that file 
>> ;-)
>> ... and tell me how the LocaleElements gets filled?
>>
>>
>> Thanks
>>
>> David
>>
>>
>>
>>
>
>


Re: [Trinidad] e.getFacesMessage is no Function

Posted by Matthias Wessendorf <ma...@apache.org>.
what values are you binding to your input controls ?

looks like a JS issue, when trying to throw JS TrConverterException

-M

On 6/5/07, David Uebelacker <da...@uebelacker.eu> wrote:
> Hi,
>
> I'm using the trinidad SVN source.
>
> When i want to save a simple form, i get the JS error "e.getFacesMessage
> is no Function".
>
> There seems to be a problem initialising the TrConverterException in
> Locale.js cause the LocaleElements array is empty.
>
> Someone familiar with Locale.js could help me understanding that file ;-)
> ... and tell me how the LocaleElements gets filled?
>
>
> Thanks
>
> David
>
>
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org