myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmarinsc...@apache.org
Subject svn commit: r294827 - /myfaces/tomahawk/trunk/src/java/org/apache/myfaces/renderkit/html/ext/HtmlLinkRenderer.java
Date Tue, 04 Oct 2005 16:59:06 GMT
Author: mmarinschek
Date: Tue Oct  4 09:59:03 2005
New Revision: 294827

URL: http://svn.apache.org/viewcvs?rev=294827&view=rev
Log:
fix for MYFACES-637 - thanks to Sascha GroƟ

Modified:
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/renderkit/html/ext/HtmlLinkRenderer.java

Modified: myfaces/tomahawk/trunk/src/java/org/apache/myfaces/renderkit/html/ext/HtmlLinkRenderer.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/renderkit/html/ext/HtmlLinkRenderer.java?rev=294827&r1=294826&r2=294827&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/src/java/org/apache/myfaces/renderkit/html/ext/HtmlLinkRenderer.java
(original)
+++ myfaces/tomahawk/trunk/src/java/org/apache/myfaces/renderkit/html/ext/HtmlLinkRenderer.java
Tue Oct  4 09:59:03 2005
@@ -17,10 +17,12 @@
 
 import org.apache.myfaces.component.UserRoleUtils;
 import org.apache.myfaces.renderkit.html.HtmlLinkRendererBase;
+import org.apache.myfaces.renderkit.JSFAttr;
 
 import javax.faces.component.UIComponent;
 import javax.faces.component.UIOutput;
 import javax.faces.context.FacesContext;
+import javax.faces.context.ResponseWriter;
 import java.io.IOException;
 
 /**
@@ -43,6 +45,16 @@
         if (UserRoleUtils.isEnabledOnUserRole(component))
         {
             super.renderCommandLinkStart(facesContext, component, clientId, value, style,
styleClass);
+        }
+        else
+        {
+            // render value as required by JSF 1.1 renderkitdocs
+            if(value != null)
+            {
+                ResponseWriter writer = facesContext.getResponseWriter();
+
+                writer.writeText(value.toString(), JSFAttr.VALUE_ATTR);
+            }
         }
     }
 



Mime
View raw message