stasam
stasam

Reputation: 73

EL evaluation in non-rendered JSF elements

Is EL #{myBean.property} evaluated in example below? If yes, that means all ELs on page are evaluated regardless of value of their 'rendered' (or any other) attribute?

<h:panelGroup rendered="false">
     <h:outputText value="#{myBean.property}" />
</h:panelGroup>

Upvotes: 0

Views: 1139

Answers (1)

BalusC
BalusC

Reputation: 1108722

Is EL #{myBean.property} evaluated in example below?

No. You could also easily answer it yourself by putting a debug breakpoint on the getter method.


If yes, that means all ELs on page are evaluated regardless of value of their 'rendered' (or any other) attribute?

That basically depends on how well designed the component is. The standard JSF components doesn't do that, but if it's for example a custom component which doesn't check isRendered() inside processXxx methods before continuing processing itself and children, then all the EL of the children may be evaluated.

Upvotes: 2

Related Questions