This content has been marked as final.
Show 1 reply
-
1. Re: <a4j:poll> is not working
venu2008 Oct 24, 2008 7:55 PM (in response to venu2008)Hi
In jsp Screen i am Displaying updated time ..
I used <a4j:poll> tag to display updated time in seconds..
But the seconds are not updating ..
Here is Code..
JSP CODE.....
<h:form>
<a4j:poll id="poll" interval="1000" enabled="true" reRender="serverDate"/>
</h:form>
<h:outputText id="serverDate" styleClass="FrmItalTypeForPopup" style="font-size: 7pt"
value="updated #{utilityBean.dateTime} pst" />
JAVA CODE.....
public String getDateTime(){
DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss a");
Date date = new Date();
return dateFormat.format(date);
}
Please Help me ..........
Thanks
Bill