How to update an <h:form> every 30 seconds JAVA WEB

Asked

Viewed 112 times

0

I’m trying to create a panel showing the sales results on a screen in my company.

I need to time the panel every 30 seconds so that the results are always up to date.

I have no idea how to do, all help is welcome.

1 answer

1


Try it Brother?

<h:form id="formulario">
    <p:poll interval="3" listener="#{bean.atualizaForm}" update="formulario" />
    ...

</h:form>
  • I’m testing here, but I’ve seen that it will work! Thank you very much!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.