Project

General

Profile

« Previous | Next » 

Revision 0cb4f241

Added by Andreas Kohlbecker over 5 years ago

setting vaadin production mode to true - globally

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/ui/CheckUI.java
21 21
//			@WebInitParam(name="org.atmosphere.cpr.asyncSupport", value="org.atmosphere.container.Jetty9AsyncSupportWithWebSocket")
22 22
//	})
23 23

  
24
    /*
25
     * NOTE: productionMode=true seems not to have any effect here, maybe because we are using multiple Servlets?
26
     * The is therefore set globally in the web.xml
27
     */
24 28
    @WebServlet(value = {"/app/*"}, asyncSupported = true)
25 29
    @VaadinServletConfiguration(productionMode = true, ui = CheckUI.class, widgetset = "eu.etaxonomy.cdm.vaadin.AppWidgetSet")
26 30
    public static class Servlet extends VaadinServlet {
src/main/java/eu/etaxonomy/cdm/vaadin/ui/ConceptRelationshipUI.java
37 37

  
38 38
    private final static Logger logger = Logger.getLogger(ConceptRelationshipUI.class);
39 39

  
40
    /*
41
     * NOTE: productionMode=true seems not to have any effect here, maybe because we are using multiple Servlets?
42
     * The is therefore set globally in the web.xml
43
     */
40 44
    @WebServlet(value = {"/app/concept/*"}, asyncSupported = true)
41 45
    @VaadinServletConfiguration(productionMode = true, ui = ConceptRelationshipUI.class, widgetset = "eu.etaxonomy.cdm.vaadin.AppWidgetSet")
42 46
    public static class Servlet extends VaadinServlet {
src/main/java/eu/etaxonomy/cdm/vaadin/ui/DbStatusUI.java
19 19

  
20 20
	private static final String FIRST_VIEW = "firstView";
21 21

  
22
    /*
23
     * NOTE: productionMode=true seems not to have any effect here, maybe because we are using multiple Servlets?
24
     * The is therefore set globally in the web.xml
25
     */
22 26
	@WebServlet(value = {"/app/distribution/*"}, asyncSupported = true)
23 27
	@VaadinServletConfiguration(productionMode = true, ui = DbStatusUI.class, widgetset = "eu.etaxonomy.cdm.vaadin.AppWidgetSet")
24 28
	public static class Servlet extends CdmVaadinConversationalServlet {
src/main/java/eu/etaxonomy/cdm/vaadin/ui/StatusEditorUI.java
41 41
    private final static Logger logger =
42 42
            Logger.getLogger(StatusEditorUI.class.getName());
43 43

  
44
    /*
45
     * NOTE: productionMode=true seems not to have any effect here, maybe because we are using multiple Servlets?
46
     * The is therefore set globally in the web.xml
47
     */
44 48
    @WebServlet(value = {"/app/editstatus/*"}, asyncSupported = true)
45 49
    @VaadinServletConfiguration(productionMode = true, ui = StatusEditorUI.class, widgetset = "eu.etaxonomy.cdm.vaadin.AppWidgetSet")
46 50
    public static class Servlet extends VaadinServlet {
src/main/webapp/WEB-INF/web.xml
49 49
      <filter-name>charsetFilter</filter-name>
50 50
      <url-pattern>/*</url-pattern>
51 51
    </filter-mapping>
52

  
52
    
53
    <!-- 
54
      The production mode is disabled per default.
55
      
56
      There are also productionMode=true settings in the eu.etaxonomy.cdm.vaadin.ui package
57
      which don't seem to have an effect. 
58
    -->
59
    <context-param>
60
      <description>Vaadin production mode</description>
61
      <param-name>productionMode</param-name>
62
      <param-value>true</param-value>
63
    </context-param>
53 64
</web-app>

Also available in: Unified diff