TimeZone
ユーザーの に別のベースを使用したいと思いますTimeZone
。
質問:またはにデフォルトを設定する機能はありますJSF
かSeam
? アプリケーション全体に影響します。
属性を使用せずに使用するたびに、機能が効果、、、などにs:convertDateTime
なることを願っています。f:convertDateTime
p:calendar
timezone
また、以下のようにSeam
コンポーネントを使用しようとしました。TimeZoneSelector
@In
private TimeZoneSelector timeZoneSelector;
....
timeZoneSelector.setTimeZone(user.getTimeZone());
<f:convertDateTime pattern="hh:mm a"/>
ただし、自動的には影響しません。TimeZone
フォーム バッキング Bean を再度取得する必要があります。
<f:convertDateTime pattern="hh:mm a" timeZone="#{mybean.timeZone}"/>