users@glassfish.java.net

Re: Prevent eval of JSF rendered attributes from previous page on

From: <glassfish_at_javadesktop.org>
Date: Thu, 27 Sep 2007 04:19:20 PDT

Hi

This reply is probably way too late (by about 6 months I should imagine). However, I have just run into the same issue, where the rendered attribute was calling the EL function 4 times for each page, which is way too much, especially when using a function that clears its status (i.e. Thread.interrupted()).

Anyway, I hope they fix this issue in JSF 2.0 (if it is considered an issue) but until then, I have employed that much loved backwards compatibility and have wrapped the elemnts I do not want rendered in a JSTL if statement
<c:if test="${backingBean.renderThisElement}">
<h:outputText value="#{bundle.renderValue}"/>
</c:if>

HTH anyone who finds this.

Ror
[Message sent by forum member 'roridge' (roridge)]

http://forums.java.net/jive/thread.jspa?messageID=237368