On Tue, Apr 21, 2009 at 10:24 AM, Anton Gavazuk <[email protected]> wrote: > Hi all, > > I need advice/suggest for such situation: > > is there any way to execute an action in bean/(in listener) when user > requests certain jsf page? - for example: /customer/edit.jsf?id=172387 > > Why I need this: I want to make some preprocessing logic before showing the > final page. > > I know there is possibility to make this by @PostCreate execution, but maybe > there are other ways, more convenient?
One option could be doing some sort of logic (e.g. extracting req param) in the constructor of a backing bean. Another option is using Orchestra's view controller Or, using this tool: http://jsf-comp.sourceforge.net/components/on-load/index.html > > Thanks, > Anton. > > > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf

