Hi Dipita,

I've not seen this issue before. Does it occur when you return a textfield from the server or does it occur when manipulating a textfield value?


If you want to set this attribute you can set it on the field:

  TextField tf = new TextField("firstname");
  tf.setAttribute("autocomplete", "off");

If you want to do this across the application you can create something like a "control factory" that creates the controls for you:

public class ControlFactory {

  public static TextField createTextField(String name) {
    TextField tf = new TextField(name);
    tf.setAttribute("autocomplete", "off");
    return tf;
  }
}

Lastly you can create a custom container (eg Form) and override the insert method to set this attribute when adding the child.

kind regards

bob

dshah wrote:
Hi,
I am using basic ajax calls to render a sub part of my form..  I am running
into this issue with firefox (which doesn't happen in IE) - Permission
denied to get property XULElement.accessibleType.
It seems that firefox has a bug where the autocomplete in firefox is having
a problem - someone suggested a solution -
http://www.seopher.com/articles/fixing_the_permission_denied_to_get_property_xulelement_selectedindex_error
whereby you have to set all input fields to have "autocomplete=off".

My question is if I am using Click Controls to render and create the html,
then is there another easy way to fix this issue?

Regards,
Dipita

Reply via email to