Updated message Hello Folks,
A simple problem which I have been breaking my head on....There is a simple javascript function that I have: function errorAlert(){ var temp = "dialog.close"; var x1 = "<fmt:message key="dialog.close"/>"; var x2 = "<fmt:message key='"+temp+"'/>"; alert(x1); alert(x2); } While alert(x1) always returns the internationalized message from the ApplicationResources.properties alert(x2) gives the message ???dialog.close??? which seems to indicate that the message cannot be retrieved...Any help is glady appreciated.... Thanks...Vijay VJ22 wrote: > > Hello, > > I am using DWR within appfuse for any ajax-requests.....I seem to have > reached a peculiar problem..Some of the modules return error messages as > code e.g. "CORE-001".... I need to convert them into the corresponding > internationlized message in the javascript callback function which takes > this error code as the parameter..... > > The <fmt:tag> does not seem to be working....any help wud be > appreciated..... > > Tks...Vijay > > function errorAlert(error){ > var x = "<fmt:message key="error"/>"> > } > -- View this message in context: http://www.nabble.com/DWR-and-i18n-tf3702862s2369.html#a10355968 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]