I'am trying to get timezone property from backing bean but it fail because getter() is called before its value is initiated.
Here is pieces of code:
<p:outputLabel value="#{bean.startDate}">
<f:convertDateTime pattern="#{msg['dateformat.yyymmdd']}"
timeZone="#{bean.timezone}" />
</p:outputLabel>
And backing bean:
public void init(){
timezone= getUserTimeZone();
}
public String getTimezone() {
return timezone;
}
Can anyone explain why this happen?