为了账号安全,请及时绑定邮箱和手机立即绑定

如何遍历List <T>并呈现JSF Facelets中的每个项目

如何遍历List <T>并呈现JSF Facelets中的每个项目

慕姐8265434 2019-12-06 10:59:16
我想知道如何List<T>在Facelet中显示以下内容:public List<T> searchByString(String string) {    return getEntityManager().createNamedQuery("Userdetails.findByUsername").setParameter("username", "%" + string + "%").getResultList();}一会<h:dataTable>是一个合适的办法吗?
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 753 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信