[JSF] How to execute action directly from link (like struts action)

2009-04-21 Thread Anton Gavazuk
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

Re: [JSF] How to execute action directly from link (like struts action)

2009-04-21 Thread Matthias Wessendorf
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

Re: [JSF] How to execute action directly from link (like struts action)

2009-04-21 Thread Matthias Wessendorf
On Tue, Apr 21, 2009 at 10:53 AM, Anton Gavazuk antongava...@gmail.com wrote: 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 sure,

Re: [JSF] How to execute action directly from link (like struts action)

2009-04-21 Thread Anton Gavazuk
Hi Adrian, looks interesting - will give it a try also, thanks. 2009/4/21 Adrian Mitev adrian.mi...@googlemail.com On Tue, Apr 21, 2009 at 11:53 AM, Anton Gavazuk antongava...@gmail.com wrote: Hi Matthias, thank you for the answer, One option could be doing some sort of logic (e.g.

Re: [JSF] How to execute action directly from link (like struts action)

2009-04-21 Thread Adrian Mitev
On Tue, Apr 21, 2009 at 11:53 AM, Anton Gavazuk antongava...@gmail.com wrote: 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