Default selection for within

前端 未结 3 788
Happy的楠姐
Happy的楠姐 2020-12-01 15:53

How to make default selection for within ?

It\'s needed,that particular \"20\" item of dropdown

3条回答
  •  情话喂你
    2020-12-01 16:13

    Initialize the recordsPerPage in your backing bean.

    From your source code I assume that you have a bean FileSearchCriteriaOut and your recordsPerPage is a String, then you can do the following in the bean's constructor:

    public FileSearchCriteriaOut() {
       recordsPerPage = "20";
    }
    

    For the facelet refer to Jigar Joshi's answer.

提交回复
热议问题