Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1342

passwordStrength does not render passthrough attributes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.8-SNAPSHOT
    • 1.1.8
    • None
    • None
    • tomcat 6.0.16
      java 1.6.0
      tomahawk 1.1.8-snapshot
      tomahawk sandbox 1.1.8-snapshot
      myfaces 1.1.7-snapshot

    Description

      passwordStrength doesn't seem to be rendering pass through attributes declared in myfaces_sandbox.tld like:
      Accesskey, dir, lang, title, onfocus, onblur, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, style, styleClass, and tabindex.

      given a jsf page:
      <h:outputText value="Password:"/>
      <s:passwordStrength preferredPasswordLength="10" prefixText="Strength : "
      textStrengthDescriptions="Very Poor;Weak;Average;Strong;Excellent" strengthIndicatorType="text"
      style="color: orange;" onfocus="myfocusFunc();" onkeyup="mykeyupfunc();"
      onblur="myOnblurFunc();"/>

      this is what gets rendered:
      Password:
      <script type="text/javascript">var myfaces__idJsp1 = new org.apache.myfaces.passwordStrength();window.addEventListener('load',function()

      {myfaces__idJsp1.startUpPasswordStrength('_idJsp1indicatorMessage'); }

      , false);</script><div><table><tr><td><span><input type="password" id="idJsp1" name="_idJsp1" value="" onkeyup="myfacesidJsp1.updateStatusValue('_idJsp1',10, 'Strength : ', 'Very Poor;Weak;Average;Strong;Excellent', '_idJsp1indicatorMessage', '_idJsp1leftCharsMessage', 'text', '_idJsp1_PROGRESSBAR', 'true', 'characters are left', 'false', 'A1', '50');myfacesidJsp1.show('_idJsp1indicatorMessage');" onblur="myfacesidJsp1.hide('_idJsp1indicatorMessage');myfaces_idJsp1.hide('_idJsp1leftCharsMessage');" /></span></td><td><span id="_idJsp1indicatorMessage" class="org_apache_myfaces_passwordStrength_progress_indicatorMessage"></span></td></tr><tr><td><div id="_idJsp1leftCharsMessage"></div></td></tr></table></div>

      not all of the attributes I pass in s:passwordStrength gets rendered.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            paulr1984 Paul Rivera
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: