tomahawk-1.1.3を入れてみて
S2JSF1.1のファイルアップロードには、TomahawkというMyFaces拡張コンポーネントを使っています。
アップロードが上手く行かなかったので、tomahawk-1.1.1から最新版に入れ替えてみます。
(ちなみにTomahawkは関係なかった。単純ミス)
MyFacesのサイトから、tomahawk-1.1.3をダウンロードして適用。
ExtensionsFilterのクラスは下記のものに変えるように警告がでます。
というわけで、web.xmlの抜粋
<filter> <filter-name>extensionsFilter</filter-name> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class> <init-param> <param-name>uploadMaxFileSize</param-name> <param-value>100m</param-value> <description>Set the size limit for uploaded files. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB </description> </init-param> <init-param> <param-name>uploadThresholdSize</param-name> <param-value>200k</param-value> <description>Set the threshold size - files below this limit are stored in memory, files above this limit are stored on disk. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB </description> </init-param> <init-param> <param-name>uploadRepositoryPath</param-name> <param-value>/work</param-value> <description>Set the path where the intermediary files will be stored. </description> </init-param> </filter>
結局tomahawk-1.1.1.jarに戻しました。出力されるHTMLの日本語が、すべてUnicodeに変換されてしまいます。
これだと画面の見た目から、HTMLソースを追いにくい。
このExtensionsFilterが悪さしているようです。どうやればいいんだろう。。TomahawkのinputCalenderは1.1.3のが使いたかったんですが....