I am looking for a solution to update a specific part of my webpage without having to refresh the entire content. On my index.html page, I have three panels displaying various ticket statuses. I want to automatically update the number of resolved tickets shown in one of the panels whenever a new ticket is created or an existing one is updated. My application is built using Java with Spring Boot and Thymeleaf.
Here is a snapshot of my current view:
https://i.sstatic.net/fxyqc.png
This is how I am currently handling the updates:
model.addAttribute("resolvedTickets", atendimentoService.findAllTicketsByStatus(STATUS_RESOLVED).size());
I have experimented with using web sockets, but I am struggling to implement a solution that efficiently updates these panels in real-time.