richfaces suggestionBox passing additional values to backing bean

后端 未结 4 1239
你的背包
你的背包 2021-01-13 10:38

When using the RichFaces suggestionBox how can you pass more than one id or value from the page with the text input to the suggestionBox backing be

4条回答
  •  甜味超标
    2021-01-13 11:18

    Have you looked at this RichFaces suggestionBox demo yet ? There are links under the examples to view the source.

    Edit:

    Sounds like you need the value of state in your bean before the user types in the suggestionBox. I would use the RichFaces ajax support to pass the value of state to the bean so when the autocomplete method is called is has the state the user selected on the page to populate a list of suburbs.

提交回复
热议问题