In a native JSF 2.0 environment, a user can refer to query parameters with something like
@ManagedProperty("#{param.id}") private Long id;
However, I use Spring to manage the JSF beans, so the @ManagedProperty annotation is ignored in my case. You can still use the # {param.id} operator in faces-config.xml, but annotation-based configuration is obviously much preferable.
Is there a way to resolve such statements using Spring annotations?
source share