ViewParam vs @ManagedProperty(value = “#{param.id}”)

前端 未结 2 1132
无人及你
无人及你 2020-11-21 23:01

What is the difference between defining View Params like this:


  
         


        
2条回答
  •  [愿得一人]
    2020-11-21 23:29

    2 other differences:

    • @ManagedProperty is usable only with beans managed by JSF, not with beans managed by CDI (@Named);
      • works only with parameters of GET requests.

提交回复
热议问题