How to write a custom converter for

后端 未结 6 529
隐瞒了意图╮
隐瞒了意图╮ 2020-11-29 00:59

How can I write a custom converter when working with PrimeFaces components that use a list of POJO? My particular problem is with

<         


        
6条回答
  •  粉色の甜心
    2020-11-29 01:58

    is there any way to implement that without 2 database hits?

    I mean, when you have

    #{bean.projects}
    

    this is a database hit.

    and when the converter puts

    sBean.getProjectById(value);
    

    is a unnecessary database hit, since bean.projects already have id and value of the objects

提交回复
热议问题