weixin_33735676 2012-09-13 14:27 采纳率: 0%
浏览 31

JSF AJAX类型selectOneMenu [关闭]

                <div class="grid--cell fl1 lh-lg">
                    <div class="grid--cell fl1 lh-lg">
                        As it currently stands, this question is not a good fit for our Q&amp;A format. We expect answers to be supported by facts, references,   or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question   can be improved and possibly reopened, <a href="/help/reopen-questions">visit the help center</a> for guidance.

                    </div>
                </div>
            </div>
            <div class="grid--cell mb0 mt8">Closed <span title="2012-09-14 15:08:12Z" class="relativetime">7 years ago</span>.</div>
        </div>
    </aside>

I am new to JSF and was wondering if there is any way to do something like a "type ahead" that could be incorporated into a h:selectOneMenu scenario. I didn't know if this could be achieved using AJAX or something similar.

I saw this IBM article that looks very close to what I want to achieve -->

http://publib.boulder.ibm.com/infocenter/rbdhelp/v7r5m0/index.jsp?topic=/com.ibm.etools.egl.jsfsearch.tutorial.doc/topics/egl_lesson02-01-06.html

I am using Spring + Hibernate + JSF.

I was wondering if anyone had any thoughts on the easiest way to achieve this or any more resources (I am having a hard time finding material).

</div>
  • 写回答

1条回答 默认 最新

  • weixin_33738578 2012-09-13 19:38
    关注

    Take a look at the PrimeFaces Autocomplete component:

    http://www.primefaces.org/showcase/ui/autoCompleteBasic.jsf

    This has all of the functionality that you are describing out of box and it is fairly easy to integrate into your application. You would of course need to integrate PrimeFaces into your JSF application however there are plenty of online resources to help you with that.

    评论

报告相同问题?

悬赏问题

  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码