myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1701249 - /myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/FacesContextUtils.java
Date Fri, 04 Sep 2015 13:19:43 GMT
Author: lofwyr
Date: Fri Sep  4 13:19:43 2015
New Revision: 1701249

URL: http://svn.apache.org/r1701249
Log:
mark deprecated code

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/FacesContextUtils.java

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/FacesContextUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/FacesContextUtils.java?rev=1701249&r1=1701248&r2=1701249&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/FacesContextUtils.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/FacesContextUtils.java
Fri Sep  4 13:19:43 2015
@@ -35,8 +35,16 @@ public final class FacesContextUtils {
   private static final String TOBAGO_AJAX_COMPONENT_ID = "org.apache.myfaces.tobago.ajaxComponentId";
   private static final String TOBAGO_ENCTYPE = "org.apache.myfaces.tobago.enctype";
   private static final String TOBAGO_SCRIPT_FILES = "org.apache.myfaces.tobago.scriptFiles";
+  /**
+   * @deprecated since Tobago 2.0, because of CSP
+   */
+  @Deprecated
   private static final String TOBAGO_SCRIPT_BLOCKS = "org.apache.myfaces.tobago.scriptBlocks";
   private static final String TOBAGO_STYLE_FILES = "org.apache.myfaces.tobago.styleFiles";
+  /**
+   * @deprecated since Tobago 2.0, because of CSP
+   */
+  @Deprecated
   private static final String TOBAGO_STYLE_BLOCKS = "org.apache.myfaces.tobago.styleBlocks";
   private static final String TOBAGO_ONLOAD_SCRIPTS = "org.apache.myfaces.tobago.onloadScripts";
   private static final String TOBAGO_ONUNLOAD_SCRIPTS = "org.apache.myfaces.tobago.onunloadScripts";
@@ -109,6 +117,10 @@ public final class FacesContextUtils {
 
   }
 
+  /**
+   * @deprecated since Tobago 2.0, because of CSP
+   */
+  @Deprecated
   public static Set<String> getScriptBlocks(final FacesContext context) {
     final Set<String> set = (Set<String>) context.getAttributes().get(TOBAGO_SCRIPT_BLOCKS);
      if (set == null) {
@@ -117,6 +129,10 @@ public final class FacesContextUtils {
     return set;
   }
 
+  /**
+   * @deprecated since Tobago 2.0, because of CSP
+   */
+  @Deprecated
   public static void addScriptBlock(final FacesContext context, final String script) {
     Set<String> set = (Set<String>) context.getAttributes().get(TOBAGO_SCRIPT_BLOCKS);
     if (set == null) {
@@ -144,6 +160,10 @@ public final class FacesContextUtils {
     set.add(script);
   }
 
+  /**
+   * @deprecated since Tobago 2.0, because of CSP
+   */
+  @Deprecated
   public static Set<String> getStyleBlocks(final FacesContext context) {
     final Set<String> set = (Set<String>) context.getAttributes().get(TOBAGO_STYLE_BLOCKS);
     if (set == null) {
@@ -152,6 +172,10 @@ public final class FacesContextUtils {
     return set;
   }
 
+  /**
+   * @deprecated since Tobago 2.0, because of CSP
+   */
+  @Deprecated
   public static void addStyleBlock(final FacesContext context, final String script) {
     Set<String> set = (Set<String>) context.getAttributes().get(TOBAGO_STYLE_BLOCKS);
     if (set == null) {



Mime
View raw message