You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2015/06/03 14:12:08 UTC

svn commit: r1683306 - in /myfaces/tobago/trunk: tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/ tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/ tobago-theme/tobago-theme-s...

Author: lofwyr
Date: Wed Jun  3 12:12:08 2015
New Revision: 1683306

URL: http://svn.apache.org/r1683306
Log:
cleanup

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/HtmlUtils.java
    myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SeparatorRenderer.java
    myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/HtmlUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/HtmlUtils.java?rev=1683306&r1=1683305&r2=1683306&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/HtmlUtils.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/HtmlUtils.java Wed Jun  3 12:12:08 2015
@@ -25,9 +25,15 @@ import javax.faces.component.UIComponent
 import javax.faces.component.UIInput;
 import javax.faces.context.FacesContext;
 
+/**
+ *  @deprecated since 2.0.8
+ */
 public final class HtmlUtils {
 
   public static final String LAYOUT_ATTRIBUTE_PREFIX = "layout.";
+  /**
+   *  @deprecated since 2.0.8, use HtmlRendererUtils
+   */
   public static final String CHAR_NON_BEAKING_SPACE = "\u00a0";
 
   private HtmlUtils() {
@@ -54,6 +60,7 @@ public final class HtmlUtils {
         ? attribute.toString() + " " + appendValue : appendValue;
   }
 
+  /** @deprecated Since 2.0.8. Not allowed with CSP */
   public static String generateOnchange(final UIInput component,
       final FacesContext facesContext) {
 

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SeparatorRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SeparatorRenderer.java?rev=1683306&r1=1683305&r2=1683306&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SeparatorRenderer.java (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SeparatorRenderer.java Wed Jun  3 12:12:08 2015
@@ -27,7 +27,6 @@ import org.apache.myfaces.tobago.context
 import org.apache.myfaces.tobago.internal.util.Deprecation;
 import org.apache.myfaces.tobago.internal.util.StringUtils;
 import org.apache.myfaces.tobago.layout.Measure;
-import org.apache.myfaces.tobago.renderkit.HtmlUtils;
 import org.apache.myfaces.tobago.renderkit.LayoutComponentRendererBase;
 import org.apache.myfaces.tobago.renderkit.css.Classes;
 import org.apache.myfaces.tobago.renderkit.css.Style;
@@ -52,7 +51,7 @@ public class SeparatorRenderer extends L
 
     if (label != null) {
       if (ClientProperties.getInstance(facesContext).getUserAgent().isMsie()) {
-        label = StringUtils.replace(label, " ", HtmlUtils.CHAR_NON_BEAKING_SPACE);
+        label = StringUtils.replace(label, " ", HtmlRendererUtils.CHAR_NON_BEAKING_SPACE);
       }
 
       writer.startElement(HtmlElements.TABLE, component);

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java?rev=1683306&r1=1683305&r2=1683306&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java Wed Jun  3 12:12:08 2015
@@ -69,6 +69,7 @@ public final class HtmlRendererUtils {
   private static final Logger LOG = LoggerFactory.getLogger(HtmlRendererUtils.class);
   private static final String ERROR_FOCUS_KEY = HtmlRendererUtils.class.getName() + ".ErrorFocusId";
   private static final String FOCUS_KEY = HtmlRendererUtils.class.getName() + ".FocusId";
+  public static final String CHAR_NON_BEAKING_SPACE = "\u00a0";
 
   private HtmlRendererUtils() {
     // to prevent instantiation