In JSF what is the shortest way to output List as comma separated list of “name” properties of SomeObj

前端 未结 3 1925
星月不相逢
星月不相逢 2020-12-11 02:16

I have a question about outputing a list of objects as a comma separated list in JSF.

Let\'s say:

public class SomeObj {
  private String name;
  ...         


        
3条回答
  •  南笙
    南笙 (楼主)
    2020-12-11 02:44

    use (from facelets). It's similar to c:forEach

    Or pre-compute the comma-separated string in the managed bean, and obtain it via a getter.

提交回复
热议问题