-
1. Re: suggestionAction method used in suggestionbox is called twice per request
romyo0o Nov 10, 2010 9:01 AM (in response to romyo0o)After implementing Phase Listener,
I figured out that auto complete method is called twice in last JSF Phase (RENDER_RESPONSE), the log is shown below:
#############################
before: RENDER_RESPONSE 6
auto complete
auto complete
after: RENDER_RESPONSE 6
#############################
I did this test using rich faces 3.3.1GA and 3.3.3 final
Thanks,
-
2. Re: suggestionAction method used in suggestionbox is called twice per request
romyo0o Nov 10, 2010 9:37 AM (in response to romyo0o)I found the solution:
I removed (usingSuggestObjects="true") attribute and it works.
Now just one call for suggestionAction
I see that's a bug in 3.3.0 and still unfixed
https://jira.jboss.org/browse/RF-6456
But the question here is:
what's the effect of removing this attribute?
I read the documentation of the tag and i didn't understand what does this mean >>
"if true, a suggested object list will be created and will be updated every time when an input value is changed. Default value is "false"."
Thanks,
-
3. Re: suggestionAction method used in suggestionbox is called twice per request
ilya_shaikovsky Nov 10, 2010 2:35 PM (in response to romyo0o)1 of 1 people found this helpfulif it false - only fetch values came to javascript for insertion. And with objects additional list of complete object sent to client in order to store additional objects properties after selection. (check at livedemo) . If yuo performing just string autocompletion - it's even better to have it false for better performance.
-
4. Re: suggestionAction method used in suggestionbox is called twice per request
romyo0o Nov 11, 2010 4:13 AM (in response to ilya_shaikovsky)Thanks Ilya