Struts 2テキスト領域における数値化の疑問


Struts 2.0.1.1バージョンで、対応するガイドの中で
http://struts.apache.org/2.0.11.1/docs/formatting-dates-and-numbers.html
Localizing form data with get Text
Localizing form data with get Text
Placing a textfield in a form like this
<s:textfield key="orderItem.price" />
参照
to input a number、one might have noticed that the numbes always shown in the Java default number format.Not onlythisisisisnot“nie”、iiyou are in non locan locacacacacacacacacation、it will alsosocaustrtre e e e e e e e e e mmmmmmbobobobobobobobobobobobobobobobobobobobobobobobottte e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e fined above,by using the get Text Method ofアクションSupport:
<s:textfield key="orderItem.price" value="%{getText('format.number',{'orderItem.price'})}" />
参照
This maps to the method signature get Text(String key,Object[]params)inアクションSupport.
私はページで次のように使います。
<s:textfield key="orderOprRecord.jsFee" value="%{getText('format.number',{'orderOprRecord.jsFee'})}" size="8"/>
呼び出しが見つかりました
get Text(String key、List args)inアクションSupport.
非を鳴らす
get Text(String key,Object[]params]inアクションSupport
もちろん、この二つの方法は同じ手紙を呼んでいます。
LocalizedTextUtil.findText(clazz, key, getLocale(), defaultValue, argsArray);
詳細は、xwork-2.04、Text Provider Support.java
最終的には、args Araysは、['order Oprrecords.jsFee']であることが判明した。
最後にLocalized TextUtil.javaで、590行目です。
if (message != null) {
                MessageFormat mf = buildMessageFormat(TextParseUtil.translateVariables(message, valueStack), locale);

                String msg = mf.format(args);
                result = new GetDefaultMessageReturnArg(msg, found);
            }
String msg=mf.format(args)
この時、agrs内の値は相変わらずです。[order Oprrecords.jsFee]
最初から最後まで処理されていませんでした。ValueStockから対応する値を取り出すことができませんでした。
だからmsgの最後の値は空です。
これはstruts 2のマニュアルの著者の誤記ですか?
<s:textfield key="orderItem.price" value="%{getText('format.number',{'orderItem.price'})}" />