How do I process GET query string URL parameters in backing bean on page load?

后端 未结 3 548
一向
一向 2020-11-22 15:26

I\'ve read how to send parameters using JSF but what if the user types their companyId in the URL when accessing their login page? For example,

3条回答
  •  太阳男子
    2020-11-22 15:56

    There is a utility library, OmniFaces which does this out of the box.

    @Inject @Param
    private String key;
    
    @Inject @Param
    private Long id;
    

提交回复
热议问题