myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhijit Ghosh" <abhijit.s.gh...@gmail.com>
Subject Re: [Trinidad] inputText: autocomplete="off" ?!
Date Sat, 29 Sep 2007 12:27:54 GMT
Hi Stephen,
Can you please attach your changed SimpleInputTextRenderer?

Thanks,
Abhi

On 9/29/07, Stephen Friedrich <trinidad@eekboom.com> wrote:
>
> Well, I did try, but I am too stupid.
> How do I get a new attribute to be recognized? I just don't understand how
> the taglib generation works.
> I edited
>
>     trinidad/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputText.xml
> and added a propety:
>      <property>
>        <description><![CDATA[hint to the web browser whether values in
> this
>            text field should be remembered and offered for auto
> completion.]]>
>        </description>
>        <property-name>autoComplete</property-name>
>        <property-class>boolean</property-class>
>        <default-value>true</default-value>
>      </property>
>
> I changed the SimpleInputTextRenderer.
>
> Finally I tried adding an attribute to UIConstants (to be safe in case it
> is magically used somewhere):
>    public static final AttributeKey AUTO_COMPLETE_ATTR = new
> AttributeKey("autoComplete");
>
> Yet after doing
>     mvn clean
>     mvn install
> I get the following error during renderer test:
> java.lang.NullPointerException
>         at org.apache.myfaces.trinidad.bean.FacesBeanImpl._checkNotListKey
> (FacesBeanImpl.java:472)
>         at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(
> FacesBeanImpl.java:55)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputTextRenderer.getAutoComplete
> (SimpleInputTextRenderer.java:769)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputTextRenderer.renderAllAttributes
> (SimpleInputTextRenderer.java:235)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputTextRenderer.encodeAllAsElement
> (SimpleInputTextRenderer.java:129)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputListOfValuesRenderer.renderTextField
> (SimpleInputListOfValuesRenderer.java:197)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputColorRenderer.renderTextField
> (SimpleInputColorRenderer.java:189)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputListOfValuesRenderer.encodeAllAsElement
> (SimpleInputListOfValuesRenderer.java:154)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputColorRenderer.encodeAllAsElement
> (SimpleInputColorRenderer.java:168)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer.encodeAll
> (FormElementRenderer.java:109)
>         at
> org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(
> CoreRenderer.java:330)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputLabelAndMessageRenderer.encodeAll
> (InputLabelAndMessageRenderer.java:119)
>         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(
> CoreRenderer.java:220)
>         at
> org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(
> UIXComponentBase.java:710)
>         at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(
> RenderUtils.java:69)
>         at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(
> RenderUtils.java:64)
>         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(
> CoreRenderer.java:294)
>         at
> org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(
> CoreRenderer.java:316)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent
> (PanelPartialRootRenderer.java:64)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent
> (BodyRenderer.java:139)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll
> (PanelPartialRootRenderer.java:119)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll
> (BodyRenderer.java:79)
>         at
> org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(
> CoreRenderer.java:330)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll
> (DocumentRenderer.java:80)
>         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(
> CoreRenderer.java:220)
>         at
> org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(
> UIXComponentBase.java:710)
>         at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(
> RenderUtils.java:69)
>         at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(
> RenderUtils.java:64)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.RenderUtils.encodeRecursive(
> RenderUtils.java:47)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.RenderKitTestCase$BaseTest.renderRoot
> (RenderKitTestCase.java:213)
>         at
> org.apache.myfaces.trinidadinternal.renderkit.RenderKitTestCase$RendererTest.runTest
> (RenderKitTestCase.java:361)
>
> Any comments? Pointers to development documentation?
>
>
> Stephen Friedrich wrote:
> >> Do you mind to file an enhancement request ?
> >
> > Thanks for the answer. I'll try and create a patch and submit it with a
> > jira issue.
> >
> >
> >
> > On 9/26/07, Stephen Friedrich <trinidad@eekboom.com> wrote:
> >> Is there any reason that Trinidad's inputText tag does not support an
> > autocomplete
> >> attribute to disable completion in the browser?
> >>
> >> That should be very easy to implement as it should only be passed
> through to
> > html, right?
> >
> >
>
>

Mime
View raw message