myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject [myfaces-tobago] 02/02: TOBAGO-1904: Password fields shouldn't render it's value
Date Thu, 14 Jun 2018 11:24:37 GMT
This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch tobago-2.0.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git

commit af7635a659de8dbb28b2b374784cc26e0768b4ce
Author: Udo Schnurpfeil <lofwyr@apache.org>
AuthorDate: Thu Jun 14 13:23:58 2018 +0200

    TOBAGO-1904: Password fields shouldn't render it's value
---
 .../myfaces/tobago/renderkit/html/standard/standard/tag/InRenderer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/InRenderer.java
b/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/InRenderer.java
index af69fc8..616880f 100644
--- a/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/InRenderer.java
+++ b/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/InRenderer.java
@@ -79,7 +79,7 @@ public class InRenderer extends InputRendererBase {
     writer.writeNameAttribute(id);
     writer.writeIdAttribute(id);
     HtmlRendererUtils.writeDataAttributes(facesContext, writer, input);
-    if (currentValue != null) {
+    if (currentValue != null && !password) {
       writer.writeAttribute(HtmlAttributes.VALUE, currentValue, true);
     }
     if (title != null) {

-- 
To stop receiving notification emails like this one, please contact
lofwyr@apache.org.

Mime
View raw message