-
1. Re: suggestbox not poping up with empty list
sivaprasad9394 Jun 18, 2012 8:16 AM (in response to ajanz)Please check for size validation or 1Empty checking to display the suggesionBox.
-
2. Re: suggestbox not poping up with empty list
ajanz Jun 18, 2012 8:31 AM (in response to sivaprasad9394)sorry, but i have no idea how to do that.
you mean some javascript code in the "oncomplete" attribute?
how can i get the size of the list? and how can i prevent from poping up? with "return false" in oncomplete?
-
3. Re: suggestbox not poping up with empty list
sivaprasad9394 Jun 18, 2012 8:43 AM (in response to ajanz)Please go through the example .It will be helpful for you.
http://livedemo.exadel.com/richfaces-demo/richfaces/suggestionBox.jsf
Look for this attribute,
nothingLabel="No capitals found"
-
4. Re: suggestbox not poping up with empty list
ajanz Jun 18, 2012 8:49 AM (in response to sivaprasad9394)i think you misunderstood me.
the "nothingLabel" workfs fine.
but i don't want the "nothinglabel" to appear.
if there are no suggestions, nothing should happen.
-
5. Re: suggestbox not poping up with empty list
sivaprasad9394 Jun 18, 2012 9:24 AM (in response to ajanz)Ok fine .Yes u are correct.Please try below steps.I think it will be helpful to get some solution for your problem.
Try look in Objects usage example in the link i have shared previously.(type z and check and debug)
OR
try giving the nothingLabel=""
OR
Check in your back end bean Arraylist size,if it is 0 means add some text to the variable like displayFlag ="Show"
and use rendered attribute in the screen to display the list.(I think list will be like datatable or some frame withh be there.)