Run method by JSF automatically

Asked

Viewed 137 times

0

I have a JSF with a p:panelGrid with columns that together form a screen that we call telemetry (large screen with various information passing in real time), in each column I added a method in which I passed an ID as a parameter to search in the database and then the value is returned. Some infomations are too big, so I used the for the values to walk in the cells of the columns. This screen needs to be constantly updated, but I couldn’t configure the restful correctly to help me, so I used the p:Poll of the primefaces to update the panel every 10 seconds, but this way it’s not being very useful. I needed some way to update the information of each cell automatically.

Below is a piece of the panel with the method:

<p:column styleClass=" columnDark " >
    <marquee>#{telemetriaManagedBean.getTags("AFM1_Status")}</marquee>
 </p:column>
<p:column styleClass=" columnDark " >
    <marquee>#{telemetriaManagedBean.getTags("AFM2_Status")}</marquee>
</p:column>

p:Poll is the current solution:

<p:poll interval="10" update="panelTelemetria" immediate="true" listener="#{telemetriaManagedBean.resetPage()}" />

I’m looking for another solution, this screen will be open on a TV for other users while you can.

  • Post your p:poll

  • post more information so we can help you

  • I need to update the screen information according to the database information. If the value of Afm1_status is changed, jsf should notice and change this value in the panelGrid.

No answers

Browser other questions tagged

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