This content has been marked as final.
Show 4 replies
-
1. Re: Action execution upon page load
pmuir Dec 30, 2007 1:48 PM (in response to fady.matar)There is currently no support for this, but you can fake it by doing something
<h:outputText rendered="#{foo.action}" />
public boolean action() { // Do work return false; }
-
2. Re: Action execution upon page load
fady.matar Jan 2, 2008 7:11 AM (in response to fady.matar)Thanks Pete,
Could that become a new feature request? I believe it can be useful when rendering UI components. -
3. Re: Action execution upon page load
pmuir Jan 2, 2008 7:18 AM (in response to fady.matar)Yes, it is something we have discussed (and consider useful), but it is currently hard to implement (I think we would need an extension point added to facelets OR to use gravel style inline to the page declarations of stuff like page actions). So, do open a JIRA issue.
-
4. Re: Action execution upon page load
piotr.walczyszyn Jan 15, 2008 12:09 PM (in response to fady.matar)Probably you could also use this:
... <f:view beforePhase="#{pageLoadCallback.beforePhase}"> ...
where... public class PageLoadCallback { public void beforePhase(PhaseEvent event) { ...
hope it helps