How JSF el expression works and when a JSF variable resolver will be involved while evaluating any JSF exprestion?

前端 未结 1 1341
悲哀的现实
悲哀的现实 2021-01-17 03:03

I am in a bit confusion.

That\'s how a JSF EL will work and how variable resolver involved while evaluating expressions like.



        
1条回答
  •  无人共我
    2021-01-17 03:27

    JSF uses Unified EL for evaluating expressions. The specification uses ELResolvers to determine the value of variables referenced in the expression.

    The 'text' variable is likely getting stored in a standard scope (page, request, session, or application). The ScopedAttributeELResolver handles looking up objects from these scopes. The object returned by the ELResolver for 'text' variable is then used as the base for resolving the 'value' property.

    There is a ResourceBundleELResolver that knows how to access objects contained within a ResourceBundle. The ResourceBundleELResolver will handle the looking up the 'value' property of the 'test' variable.

    0 讨论(0)
提交回复
热议问题