向Bean添加一个函数,返回长度:In class MyBean:public int getSomelistLength() { return this.somelist.length; }In your JSF page:#{MyBean.somelistLength}