autocomplete « IceFaces « JSF Q&A

1. Error adding auto-complete component to ICEFaces screen

I am trying to create a pretty straight forward screen that has a text field with auto-complete functionality. I have been following the examples found on the ICEFaces website

2. Hiding icefaces autocomplete list when there are no matches

Friends! I use icefaces ice:selectInputText item to represent input box with autocomplete hints list. Backing bean is returning list of suitable hints (it selects hints from one big list on condition that ...

3. datatable and autocomplete

4. Autocomplete with selectInputText

I have followed the Autocomplete tutorial very carefully but still I'm unsuccessful in using the selectInputText component. Specifically, I get the HTTP Status 500 - error when I start entering text in the selectInputText component. The server.log file tells me: [#|2008-10-23T14:11:01.894-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=15;_ThreadName=httpSSLWorkerThread-11506-0;_RequestID=e79336db-a5eb-4f10-8e17-342b092813d1;|StandardWrapperValve[Blocking Servlet]: PWC1406: Servlet.service() for servlet Blocking Servlet threw exception java.lang.IllegalStateException: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'AutoCompleteBean' resolved to null I'm new ...

6. autocomplete list not showed

8. Fill JSF Fields from an autocomplete

11. Enabling/Disabling autocomplete moves around on the page

I have a ice:selectInputText autocomplete that is enabled and disabled by selecting radio buttons. The autocomplete works great, but it moves about 10px up and down when it gets changed from enabled to disabled and the other way around. The style is set to this: style="height: 22px; left: 336px; top: 350px; position: absolute" It's not inside any other components besides the ...

12. AutoComplete with Row Selection Bug

14. autocomplete style not applied

I also copied these styles into the showcase.css file Code: /* AUTOCOMPLETE EXAMPLE */ .cityCol { width: 125px; } .stateCol { width: 125px; } .zipCol { width: 50px; } .serverFeedbackBorderHighlight { vertical-align: top; border: 1px solid #CCCCCC; padding: 10px; width: 300px; } .iceSelInpTxtRow,.iceSelInpTxtSelRow { height: 15px; } .iceSelInpTxtSelRow { color: #FFFFFF; } iceSelInpTxtTxt { border: 1px solid #ABABAB; background-color: #FFFFFF; margin: ...

15. SelectInputText (AutoComplete)

17. Autocomplete component

18. autocomplete random behavior

19. Autocomplete in icefaces not working.

public List getList() {"Inside getList method:" + matchesList); if (matchesList != null && matchesList.size() <= 0) { matchesList.add("sam"); matchesList.add("sharath"); matchesList.add("sampath"); matchesList.add("robert"); matchesList.add("roger"); matchesList.add("alex"); } return matchesList; } //End of getList() public void updateList(ValueChangeEvent event) { String search = (String) event.getNewValue(); String[] Names = (String[]) this.matchesList.toArray(); List selItems = new ArrayList(); List newNamesList = new ArrayList(); for (String names: Names){ if ...

21. AutoComplete Component

22. autocomplete for a webmail

24. auto complete values being trimmed in unexpected way

in the autocomplete feature of the icefaces, I could see the data being shown is trimmed in the following way.If there is more than one space in between the words, it gets trimmed to one space and shown in the autocomplete. Is it a bug? Could any one of you please give any suggestion/solution?

25. ice:selectInputText autocomplete can not work to input Chinese characters

jsp code: java code: public void updateList(ValueChangeEvent event) { setMatches(event); if (event.getComponent() instanceof SelectInputText) { SelectInputText autoComplete = (SelectInputText) event.getComponent(); // if no selected item then return the previously selected item. if (autoComplete.getSelectedItem() != null) { currentCity = (City) autoComplete.getSelectedItem().getValue(); } // otherwise if there is a selected item get the ...

26. Auto complete

27. SelectInputText, autocomplete, and other stuff

Hi all, I'am new to Icefaces, and I like it. But I have some question about using the component SelectInputText. I got a simple data model like this : Code: class City{ long id; String name; ... } class Person{ private City city1; private City city2 ... } In my interface, I can edit an instance of Person, and I have ...

29. Autocomplete

30. Auto complete

[9/24/09 17:04:26:274 EDT] 00000028 SystemErr R Stream closed at at at at org.apache.xerces.impl.XMLEntityManager$ Source) at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at java.beans.XMLDecoder.readObject( at com.icefaces.AutoCompleteDictionary.init( at com.icefaces.AutoCompleteDictionary.( at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance( at java.beans.Beans.instantiate( at java.beans.Beans.instantiate( at com.sun.faces.config.ManagedBeanFactory.newInstance( at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans( ...

31. AutoComplete example

Hi I am using icefaces(1.8.1) with RAD 7.5.2 for the application autocomplete When try to run the application I am getting the followin error log AutoCompleteB E com.icefaces.AutoCompleteBean setMatches Erorr finding autocomplete matches java.lang.NullPointerException at java.util.Collections.binarySearch( at com.icefaces.AutoCompleteBean.setMatches( at com.icefaces.AutoCompleteBean.updateList( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at com.sun.faces.el.MethodBindingImpl.invoke( at javax.faces.component.UIInput.broadcast( at com.icesoft.faces.component.ext.HtmlInputText.broadcast( at com.icesoft.faces.component.selectinputtext.SelectInputText.broadcast( at javax.faces.component.UIViewRoot.broadcastEvents( at javax.faces.component.UIViewRoot.processValidators( ...

32. autocomplete it IE 7 does not work

33. ice:selectInputText multiple autocomplete, is it possible ?

Hi everyone, I'm using ice faces 1.8 and I'm trying to use the component "selectInputText" to do a multiple auto-complete into a webmail. Per example, if i choose an email from the autocomplete list, i want a "," to complete the first choice and after, if i tape "b" the list appears again to give me another possibility. I saw from ...

34. Icefaces autocomplete component doesn't work with Chinese characters.

Hello everyone. I am facing this severe issue with Icefaces autocomplete component. For english characters, its working fine. However whenever i type Chinese characters(Chinese character is made up of a combination of letter keys on our keyboard and the space character), the autocomplete doesn't work. If u press down key after keying in ur chinese character it will work. However, no ...

35. Eclipse auto complete

Huh? IMHO the document snippet above IS a jspx. Either way, my test file is named test1.jspx and so-called autocomplete is working fine in "Exadel JSP Editor" AND "JSP Editor" (I think from WTP). This worked for me: 1) install fresh eclipse 3.2.1 + free version of exadel studio 4.0.2 (for jsf / spring plugins) 2) download icefaces eclipse ide integration: ...

36. BUG IN IE autocomplete

39. not autocomplete with facelets

40. Autocomplete is not working

46. Auto complete capturing a carriage return

Is there any way to capture a carriage return within the valueChangeListener. I want to create a similar search to google. When you type you get a list of suggested search terms. However you do not need to select these and you can press return at any time to invoke the search.

47. Autocomplete and minimum characters

48. AutoComplete causes IE 7/8 crash

49. Rendering Autocomplete

50. Autocomplete layout issue

Hi there! My guess is, that it has to do with your CSS. The list box seems to be using the wrong origin for calculating its offset. If it works on other browsers... there has also been a bug in 1.8.2 under Internet-Explorer that needed to be fixed by yourself since the bugfix was part of 1.8.3, which has not been ...

51. SelectInputText Autocomplete Problem

52. autocomplete in 1.8

Hello, I have an ice:selectInputText component and I want to show its autocomplete list onClick. More specifically, when the user clicks (and focuses) on the component, I want the list to popup and as the user presses keys, the list would obviously become smaller and smaller. Is there a way to do this? Thanks in advance, Antonios

54. ice:inputText browser autocomplete

56. Autocomplete list issue in ie9

57. autocomplete / selectInputText: problems with row number + clearing list

Hi everybody, I need help with the autocomplete (selectInputText) field. 1) With 'rows", you are able to say how many items should be displayed in the list. The value I get returned in the bean is always 10, but I defined it with 20. call in bean: int rows=((SelectInputText)event.getComponent()).getRows(); 2) I only want to display the item list ...

58. Two Columns in autocomplete

I paste the code, my question its.... when i select data of cursor (cities) in auntocomplete i get data for a, if I select city new york the data a= 571, then i get this data. Can you help me? Thank You list = new ArrayList(); while (cursor.toNextSelection()) //cursor contains cities{ a=a+1 list.add( new SelectItem(cursor1.getTextValue( ),a)); } } catch (XmlException e) ...

59. Autocomplete component not working

60. [ bug report] compnent autocomplete and jsf navigation

Hello all, I found one problem with the component autoComplete when i use navigation rules of my faces-config.xml. I have made a small exemple of this bug join to this topic. When i use the action of commandButton or commandLink for navigate to a another page has contain the autoComplete component, when page appear, this one is same as inputText component. ...

63. Problem with autocomplete.

64. Autocomplete Problem

Hi All, I have two questions. I am using autocomplete for selecting a value. My first problem is that after using autocomplete and navigating to another i receive a error message "Error destroying Autocomplete [Object required]" My second problem is that in edit mode how do get the previously selected values. Thanks and Regards Subodh

66. selectInputDate autocomplete

67. problem with selecinputtext and autocomplete

package; import javax.annotation.Resource; ... import com.icesoft.faces.component.ext.HtmlSelectOneMenu; public class EnterpriseDataBean extends BaseDataItemManager { private String city; .... public String getCity() { return city; } public void setCity(String city) { = city; } .... public void setEnterpriseDao(EnterpriseDao enterpriseDao) { this.enterpriseDao = enterpriseDao; } .... @Override protected boolean readItemData() { Enterprise enterprise = enterpriseDao.getEnterprise(getId()); EnterpriseAddress address = enterpriseDao.getDefaultAddress(getId()); city = address.getCity().getLabel(); .... ...

70. Autocomplete not working

Hi, I use the example on the showcase sample of ICEFaces to try put the autocomplete funcionality on my system, but i got a NullPointerException every time... I create an action that listen to the ValueChangeEvent and create my comparator class, and it is all ok... It works! it takes the data from the selectInputText and process it generating a list ...

71. Simple autocomplete

72. autocomplete not showing list items

73. Question of autoComplete component

74. Autocomplete on Browser causing partial submit

I am using Mozilla as my browser. On my xhtml page I have a few required ice:inputText fields for city, state and zip information. After entering in a few records, the browser begins to use autocomplete on the inputText fields. If I select one of values on the autocomplete and hit enter, all of the required inputText values are validated. I've ...

75. Autocomplete Child components

77. AutoComplete

78. Autocomplete example using Glazed Lists

public class AutoCompleteBean { private TextMatcherEditor matcher; private List autoList = new ArrayList(); public void updateAutoList(ValueChangeEvent event) { if (matcher == null) { //load your data into the SelectItem list List tempList = new ArrayList(); tempList.add(new SelectItem("1002000", "1002000")); tempList.add(new SelectItem("1002100", "1002100")); tempList.add(new SelectItem("1002200", "1002200")); tempList.add(new SelectItem("1402000", "1402000")); tempList.add(new SelectItem("1502000", "1502000")); //create an event list and configure your TextMatcherEditor EventList eventList = ...

79. AutoComplete

80. iceface Autocomplete problem using SelectInputText in IE6/7

We had a simliar issue in IE 6/7 but not in Firefox. We found that every element in the xhtml page needed to be inside a form-element. We had a single ice:outputText outside the form and it would lead to the autocomplete not working after the first usage (and query against the backend). Our suggestion: Try this or start from the ...

82. SelectInputText autocomplete issue

83. AutoComplete

Does anybody have a working example of the tutorial that is posted on the website? I am talking about the example where you can show multiple fields. I tried more or less the same, but it doesn't work for me. When I modify the code so that my xhtml-page looks exactly the same as the example, I get an error because ...

84. autocomplete in PanelPopup

89. problem with autocomplete in the selectInputText: submit of the form done

Ok but why in this case i have the validation message displayed for the others component? For all the others fields of my form, I have the parameter "required" set to true and "partialsubmit" set to true. By filling the field of this autocomplete component, messages for all the others component are displayed: Validation value is required

90. Autocomplete with tabs

91. Autocomplete different value same label problem

Hello Another problem with this component, this time I suspect that this may be bug... It is simple search for big tree. Let say we have two people with same name "John" but different id's 242 248. When I type John autocomplete is showing two John's. When I choose first John ...