myfaces-commits mailing list archives

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

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


The following commit(s) were added to refs/heads/tobago-3.0.x by this push:
     new af528b5  TOBAGO-1902: Password fields shouldn't render it's value
af528b5 is described below

commit af528b5e26ece6bf3db5863bbe24cb57fd3cbd3b
Author: Udo Schnurpfeil <lofwyr@apache.org>
AuthorDate: Thu Jun 14 13:22:25 2018 +0200

    TOBAGO-1902: Password fields shouldn't render it's value
---
 .../apache/myfaces/tobago/internal/renderkit/renderer/InRenderer.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/InRenderer.java
b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/InRenderer.java
index 9de251c..3d6a544 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/InRenderer.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/InRenderer.java
@@ -96,7 +96,7 @@ public class InRenderer extends LabelLayoutRendererBase {
     writer.writeNameAttribute(clientId);
     writer.writeIdAttribute(fieldId);
     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