0

Hi I am trying to disable sync id in vaadin or set it to -1 how can i achieve this.

i have tried following things but it didn't worked.

@WebServlet(initParams = { @WebInitParam(name = "syncIdCheck", value = "false") }) // UI class

// this is in web.xml
<context-param>
    <param-name>syncId</param-name>
    <param-value>false</param-value>
</context-param>
herman shafiq
  • 499
  • 2
  • 8
  • 26

1 Answers1

2

The correct web.xml context parameter is following:

<context-param>
   <param-name>syncIdCheck</param-name>
   <param-value>false</param-value>
</context-param>

Unfortunately there is no @WebContextParamin Servlet 3.0: Replace a context-param element with a Servlet 3.0 annotation