Support autocomplete attribute for input fields
-----------------------------------------------

                 Key: TRINIDAD-745
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-745
             Project: MyFaces Trinidad
          Issue Type: New Feature
    Affects Versions: 1.0.3-core
            Reporter: Stephen Friedrich


My app has some fields where it isn't  useful to have the browser remember and 
try to auto complete values.
In HTML you can switch that off with the non-standard "autocomplete" attribute.
JSF 1.2 also added the same attribute, but Trinidad is still missing it.

Please see the attached patch for a possible implementation. I added the 
attribute to all subclasses of InputText, with the exception of InputFile, 
because the browser (well at least firefox) seems to never auto complete those 
fields, anyway. To keep in line with the rest of Trinidad's attribute names I 
used "autoComplete" with an upper case "C".

I have not added/modified any tests, because frankly I did not understand what 
is currently tested and how it is tested.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to