Hi Matthias, thank you for the answer,
>>One option could be doing some sort of logic (e.g. extracting req >>param) in the constructor that was my point - I dont like this way: in case of an exception (no object with Id found)/an alternative navigationc case I would need call from constructor (postCreate method) facesContext.. navigateMethod - its ugly. will look on this lib. http://jsf-comp.sourceforge.net/components/on-load/index.html Thanks, Anton 2009/4/21 Matthias Wessendorf <mat...@apache.org> > On Tue, Apr 21, 2009 at 10:24 AM, Anton Gavazuk <antongava...@gmail.com> > 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 >