This content has been marked as final.
Show 3 replies
-
1. Re: < rich:suggestionbox > - can it activate w/o typing in the input field?
vace117 Jun 10, 2011 8:54 PM (in response to vace117)ok, I was able to get it to work somewhat. I was reading the Javascript code for the component and I noticed that the DOWN arrow triggers the list. So, I added this to my h:inputText:
onfocus="var evt = document.createEvent('HTMLEvents'); evt.initEvent('keydown', true, true); evt.keyCode = Event.KEY_DOWN; this.dispatchEvent(evt);"
This is pretty messy though. Is there an easier/more correct way?
-
2. Re: < rich:suggestionbox > - can it activate w/o typing in the input field?
nbelaevski Jun 13, 2011 12:30 AM (in response to vace117)Hi Val,
Please check the second example: http://livedemo.exadel.com/richfaces-demo/richfaces/suggestionBox.jsf;jsessionid=AF190DB39E7392E1C7A06FF7869D709F?c=suggestionBox&tab=usage
-
3. Re: < rich:suggestionbox > - can it activate w/o typing in the input field?
vace117 Jun 13, 2011 2:12 PM (in response to nbelaevski)Great. Thank you!