-
Notifications
You must be signed in to change notification settings - Fork 19
f:view lifetime events #8
Comments
Reported by @edburns |
@edburns said: |
@edburns said: Add to <f:view> some useful listeners. F.g. for preparing backin bean on this There are some threads on forum about this problem for instance: |
rogerk said: |
@edburns said: |
@edburns said: This change-bundle adds the jsp layer to the implementation of A systest/src/com/sun/faces/jsptest/ViewRootPhaseListenerTestCase.java
M systest/web/WEB-INF/faces-config.xml
A src/com/sun/faces/taglib/jsf_core/PhaseListenerTag.java
M conf/share/jsf_core.tld
M src/com/sun/faces/taglib/jsf_core/ViewTag.java
Index: conf/share/jsf_core.tldRCS file: /cvs/javaserverfaces-sources/jsf-ri/conf/share/jsf_core.tld,v
@@ -951,6 +983,30 @@
Index: src/com/sun/faces/taglib/jsf_core/ViewTag.javaRCS file:
{ + beforePhase = newBeforePhase; + }
{ + afterPhase = newAfterPhase; + } // Relationship Instance Variables //
Index: systest/web/WEB-INF/faces-config.xmlRCS file: /cvs/javaserverfaces-sources/jsf-ri/systest/web/WEB-INF/faces-config.xml,v
|
@edburns said: |
File: 8-newclasses.tar.gz |
rogerk said: |
@edburns said: |
@edburns said: We need to specify that the responseComplete or renderResponse flags must be |
@edburns said: This change-bundle changes the spec and implements the change. SECTION: jsf-api changes M src/javax/faces/component/UIViewRoot.java
M test/javax/faces/component/UIViewRootTestCase.java
SECTION: jsf-api diffs Index: src/javax/faces/component/UIViewRoot.javaRCS file:
|
@edburns said: 4. Made UViewRoot a source of PhaseEvent(s) for all phases of |
@edburns said: |
@edburns said: |
@edburns said: |
Marked as fixed on Thursday, March 4th 2010, 6:09:30 am |
@manfredriem said: |
This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-8 |
AW> Ed,
AW> One other thing I've seen a lot of users begging for
AW> is some sort of "onload" method that they can use for
AW> basic per-page initialization code (e.g., fire the
AW> database query now). Something as simple as:
AW> <f:view beginRender="#
{MethodBinding here}"
AW> endRender="#{MethodBinding here}
">
AW> ... or even (delivering PhaseEvents):
AW> <f:view beginPhase="#
{MethodBinding here}"
AW> endPhase="#{MethodBinding here}
">
AW> ... would be a huge plus to many.
AW> (Per-component init/cleanup methods would also
AW> be handy for some performance issues, but that's
AW> a lot less important.)
Environment
Operating System: All
Platform: Sun
Affected Versions
[1.2]
The text was updated successfully, but these errors were encountered: