Hey, I'm looking to periodically call a back bean from a JavaScript function in order to refresh a panel on my page without refreshing the entire page. Here's the script I've written:
$('#submitbutton').click();
<h:commandButton id="submitbutton" immediate="true" value="" styleClass="ui-day" style="border:0;display : none;"
action="#{liveGraphBean.plotInterval1('daily')}" >
Instead of refreshing the whole page, I want to only refresh a specific panel on the page.
<p:panel id="dailyGraphPanel">
<div id="chartdiv" style="width: 100%; height: 400px;"></div>
</p:panel>
Any suggestions on how I can achieve this? Thanks!