A standard EL expression evaluator cannot and MUST never cache results.
Imagine the following expression:
h:outputText#{someBean.nextCounterValue}/h:outputText
The app developer would not be very happy if EL caches that result, right?
So caching can only be a matter for the model.
OR: you write
--Original Message--
From: Sam Witty
To: dev@myfaces.apache.org
ReplyTo: MyFaces Development
Sent: Jun 25, 2009 9:36 PM
Subject: Caching the result of an EL expression evaluation with in a lifecycle
If you have the following code:
h:h:outputText#{someBean.user.firstName}/h:outputText
Werner Punz schrieb:
Werner Punz schrieb:
Curtiss Howard schrieb:
Forgive me if I'm missing some important details, but why even use
innerHTML in the first place? It should be possible to parse the
incoming text into a DOM node (there's some JS function for it, I
can't remember which), then
Use JPA to get the data. You'll need a service and an entity object.
Then your backing bean can use the service layer to retrieve the
entire object.
This approach handles caching for you and is much more scalable
-Alan via iPhone
On Jun 26, 2009, at 5:56 AM, Jeremy Wilson
Dom replacement code in javax.faces.ViewRoot und javax.faces.ViewBody is
incorrect
--
Key: MYFACES-2260
URL: https://issues.apache.org/jira/browse/MYFACES-2260
Project:
[
https://issues.apache.org/jira/browse/MYFACES-2260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Werner Punz resolved MYFACES-2260.
--
Resolution: Fixed
resolved with the last commit!
the head section is a different issue, I am
[
https://issues.apache.org/jira/browse/TRINIDAD-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Robinson reopened TRINIDAD-1515:
---
Browser back button does not work
--
Yes I absolutely agree, it has to be configurable in some way. It just seems
like such a common issue that I was hoping there was a general solution.
The ELResolver route will certainly work, though as you pointed out it will
have to be some sort of annotation which will look and feel hacky,
[
https://issues.apache.org/jira/browse/MYFACES-2259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12724725#action_12724725
]
Leonardo Uribe commented on MYFACES-2259:
-
Committed implementation of