Java 8 default interface methods not recognized as managed bean properties in EL

后端 未结 2 1630
暗喜
暗喜 2021-01-18 11:13

I am trying to setup my own JSF tag libary. So I created a composite component with an backing interfaces as a blueprint to build a backing bean for this component.

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-18 11:45

    Working with Apache EL this works by calling the default method by its full name. Try to use it this way in your code:

    #{login.getUsernameWatermark()}
    

提交回复
热议问题