我想TimeZone根据用户的TimeZone.
问题:是否有任何功能可以在JSFor中设置默认值Seam?它将影响整个应用程序。
我希望,每次我在不使用属性的情况下使用时,该功能都会产生效果s:convertDateTime,,等等。f:convertDateTimep:calendartimezone
我也尝试使用如下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}"/>