getText returns NULL when formating number using l10n

2011-11-21 Thread Felipe Issa
Hi. I'm trying to internationalize my application, and for that i need to use the struts l10n. I have managed to parse the number according to the user locale, but I'm having some troubles to display the number using the user locale. On Struts 2 documentation it says: to input a number, one

Maven archetype struts2-archetype-blank

2011-11-21 Thread David F. Newman
Hi there, So I've been trying to use the struts2-archetype-blank maven archetype to create a new project and it seems to generate a pom file that doesn't work out of the box. I run: $ mvn archetype:generate \ -DarchetypeGroupId=org.apache.struts \

Re: Maven archetype struts2-archetype-blank

2011-11-21 Thread Dave Newton
Appears to be an issue in 2.2.3; normally you'd want to explicitly specify -DarchetypeVersion (or at least I generally do). For 2.2.1 it works, for 2.2.3 the property isn't filled in. Dave On Mon, Nov 21, 2011 at 6:11 PM, David F. Newman d...@exchange.mit.eduwrote: mvn archetype:generate \

Re: getText returns NULL when formating number using l10n

2011-11-21 Thread Li Ying
I have read the source of java.text.MessageFormat, looks like it output a null text to the result String when the argument is null. I think you can create a read-only property in your action (or your data model class), and implement the null check and format process in this property, code like:

Re: getText returns NULL when formating number using l10n

2011-11-21 Thread Li Ying
or you can do the null check in the jsp code, before you create the param list for the format string. Code like: s:textfield key=orderItem.price value=%{getText('format.number',{orderItem.price == null ? : orderItem.price})} / 2011/11/22 Felipe Issa felipe.i...@simova.com.br: Hi.

Re: Maven archetype struts2-archetype-blank

2011-11-21 Thread Łukasz Lenart
Could you register an issue about that ? https://issues.apache.org/jira/browse/WW Thanks in advance -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2011/11/22 David F. Newman d...@exchange.mit.edu: Hi there, So I've been trying