autocomplete « IceFaces « JSF Q&A





1. Error adding auto-complete component to ICEFaces screen    stackoverflow.com

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    stackoverflow.com

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    icefaces.org

4. Autocomplete with selectInputText    icefaces.org

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    icefaces.org

8. Fill JSF Fields from an autocomplete    icefaces.org





11. Enabling/Disabling autocomplete moves around on the page    icefaces.org

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    icefaces.org

14. autocomplete style not applied    icefaces.org

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)    icefaces.org





17. Autocomplete component    icefaces.org

18. autocomplete random behavior    icefaces.org

19. Autocomplete in icefaces not working.    icefaces.org

public List getList() { log.info("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    icefaces.org

22. autocomplete for a webmail    icefaces.org

24. auto complete values being trimmed in unexpected way    icefaces.org

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    icefaces.org

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    icefaces.org

27. SelectInputText, autocomplete, and other stuff    icefaces.org

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    icefaces.org

30. Auto complete    icefaces.org

[9/24/09 17:04:26:274 EDT] 00000028 SystemErr R java.io.IOException: Stream closed at java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:145) at java.io.BufferedInputStream.fill(BufferedInputStream.java:229) at java.io.BufferedInputStream.read(BufferedInputStream.java:246) at org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.read(Unknown 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(XMLDecoder.java:220) at com.icefaces.AutoCompleteDictionary.init(AutoCompleteDictionary.java:112) at com.icefaces.AutoCompleteDictionary.(AutoCompleteDictionary.java:36) at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1328) at java.beans.Beans.instantiate(Beans.java:219) at java.beans.Beans.instantiate(Beans.java:63) at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:226) at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:264) ...

31. AutoComplete example    icefaces.org

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(Collections.java:324) at com.icefaces.AutoCompleteBean.setMatches(AutoCompleteBean.java:127) at com.icefaces.AutoCompleteBean.updateList(AutoCompleteBean.java:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:127) at javax.faces.component.UIInput.broadcast(UIInput.java:492) at com.icesoft.faces.component.ext.HtmlInputText.broadcast(HtmlInputText.java:683) at com.icesoft.faces.component.selectinputtext.SelectInputText.broadcast(SelectInputText.java:305) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:284) at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:381) ...

32. autocomplete it IE 7 does not work    icefaces.org

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

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.    icefaces.org

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    icefaces.org

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    icefaces.org

39. not autocomplete with facelets    icefaces.org

40. Autocomplete is not working    icefaces.org

46. Auto complete capturing a carriage return    icefaces.org

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    icefaces.org

48. AutoComplete causes IE 7/8 crash    icefaces.org

49. Rendering Autocomplete    icefaces.org

50. Autocomplete layout issue    icefaces.org

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    icefaces.org

52. autocomplete in 1.8    icefaces.org

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    icefaces.org

56. Autocomplete list issue in ie9    icefaces.org

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

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    icefaces.org

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    icefaces.org

60. [ bug report] compnent autocomplete and jsf navigation    icefaces.org

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.    icefaces.org

64. Autocomplete Problem    icefaces.org

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    icefaces.org

67. problem with selecinputtext and autocomplete    icefaces.org

package lt.dream.web.beans.enterprises; 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) { this.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    icefaces.org

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    icefaces.org

72. autocomplete not showing list items    icefaces.org

73. Question of autoComplete component    icefaces.org

74. Autocomplete on Browser causing partial submit    icefaces.org

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    icefaces.org

77. AutoComplete    icefaces.org

78. Autocomplete example using Glazed Lists    icefaces.org

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    icefaces.org

80. iceface Autocomplete problem using SelectInputText in IE6/7    icefaces.org

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    icefaces.org

83. AutoComplete    icefaces.org

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    icefaces.org

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

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    icefaces.org

91. Autocomplete different value same label problem    icefaces.org

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 ...