You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2006/05/31 15:55:21 UTC
svn commit: r410526 - in /myfaces/core/branches/jsf12/impl/src/main:
java/org/apache/myfaces/taglib/html/HtmlInputTextTag.java
tld/myfaces_html.tld
Author: matzew
Date: Wed May 31 06:55:19 2006
New Revision: 410526
URL: http://svn.apache.org/viewvc?rev=410526&view=rev
Log:
jsf 1.2 autocomplete for h inputText
Modified:
myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/taglib/html/HtmlInputTextTag.java
myfaces/core/branches/jsf12/impl/src/main/tld/myfaces_html.tld
Modified: myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/taglib/html/HtmlInputTextTag.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/taglib/html/HtmlInputTextTag.java?rev=410526&r1=410525&r2=410526&view=diff
==============================================================================
--- myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/taglib/html/HtmlInputTextTag.java (original)
+++ myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/taglib/html/HtmlInputTextTag.java Wed May 31 06:55:19 2006
@@ -27,6 +27,28 @@
public class HtmlInputTextTag
extends HtmlInputTextTagBase
{
+
+ //special attribut added to jsf 1.2
+ private String _autocomplete;
+
+ public void release()
+ {
+ super.release();
+ _autocomplete = null;
+ }
+
+ protected void setProperties(UIComponent component)
+ {
+ super.setProperties(component);
+
+ setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.AUTOCOMPLETE_ATTR, _autocomplete);
+ }
+
+ public void setAutocomplete(String autocomplete)
+ {
+ _autocomplete = autocomplete;
+ }
+
public String getComponentType()
{
return HtmlInputText.COMPONENT_TYPE;
Modified: myfaces/core/branches/jsf12/impl/src/main/tld/myfaces_html.tld
URL: http://svn.apache.org/viewvc/myfaces/core/branches/jsf12/impl/src/main/tld/myfaces_html.tld?rev=410526&r1=410525&r2=410526&view=diff
==============================================================================
--- myfaces/core/branches/jsf12/impl/src/main/tld/myfaces_html.tld (original)
+++ myfaces/core/branches/jsf12/impl/src/main/tld/myfaces_html.tld Wed May 31 06:55:19 2006
@@ -252,6 +252,13 @@
Unless otherwise specified, all attributes accept static values
or EL expressions.
</description>
+ <attribute>
+ <name>autocomplete</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>Autocomplete function of the web browser (on | off).</description>
+ </attribute>
&standard_input_text_attributes;
</tag>