- -- index.xhtml
- <h:body>
- <ui:include src="clock.xhtml" />
- </h:body>
- -- clock.xhtml
- <h:form>
- <a4j:poll id="poll" interval="1000" enabled="#{pollBean.pollEnabled}" render="poll,grid" />
- </h:form>
- <h:form>
- <h:panelGrid columns="2" width="80%" id="grid">
- <h:outputText id="serverDate" style="font-size:16px" value="Server Date: #{pollBean.date}" />
- </h:panelGrid>
- </h:form>