Re: Myfaces - application calling by link which include parameter

2007-06-12 Thread David Delbecq
It shouldn't be big work to create a request bean that does the job of setting session bean. The same way you set a property of request bean from #{param.xxx} you can link the request bean to session bean by setting a managed property in session bean to an EL pointing to session bean (eg

Re: Myfaces - application calling by link which include parameter

2007-06-11 Thread MPF
Hi! Well I tried this (but its sound like easy and thats all I need), but the parameter value is always null! try to call with following url: http://localhost:8080/GatheringPlace/jsp/placeDetail.jsf?dbk=1212 my code: bean: public class PlaceDetailController { private String dbk;

Re: Myfaces - application calling by link which include parameter

2007-06-11 Thread MPF
Well now it works with: value#{param.dbk}/value thanks to all and best regards MPF wrote: Hi! Well I tried this (but its sound like easy and thats all I need), but the parameter value is always null! try to call with following url:

Re: Myfaces - application calling by link which include parameter

2007-06-11 Thread David Delbecq
Note: be careful with using this method + session bean, as it will work only once per session, that is the first time bean named qbk will be used in user session. It may be intended behaviour, but most people need a to take into account different value for each request. En l'instant précis du

Re: Myfaces - application calling by link which include parameter

2007-06-11 Thread Volker Weber
Hi, to apply request parameter to managed bean the scope must be request afaik. Regards, Volker 2007/6/11, MPF [EMAIL PROTECTED]: Hi! Well I tried this (but its sound like easy and thats all I need), but the parameter value is always null! try to call with following url:

Re: Myfaces - application calling by link which include parameter

2007-06-11 Thread David Delbecq
Note: be careful with using this method + session bean, as it will work only once per session, that is the first time bean named qbk will be used in user session. It may be intended behaviour, but most people need a to take into account different value for each request. En l'instant précis du

Re: Myfaces - application calling by link which include parameter

2007-06-11 Thread MPF
Hmm ur right ;( argh..bad bad - but the other things (Filter) didnt worked (i dunno why).. David Delbecq-2 wrote: Note: be careful with using this method + session bean, as it will work only once per session, that is the first time bean named qbk will be used in user session. It may be

Re: Myfaces - application calling by link which include parameter

2007-06-11 Thread MPF
So i try to change my application to a filter: public class FrontDoorFilter implements Filter { public void destroy() { //nothiing to do } public void doFilter(ServletRequest req, ServletResponse res, FilterChain fc)

RE: Myfaces - application calling by link which include parameter

2007-06-08 Thread Jesse Alexander \(KSFD 121\)
Google for JSF GET or JSF GET phaselistener hth Alexander -Original Message- From: MPF [mailto:[EMAIL PROTECTED] Sent: Friday, June 08, 2007 3:48 PM To: users@myfaces.apache.org Subject: Myfaces - application calling by link which include parameter Hi! How can I realize that? My

Re: Myfaces - application calling by link which include parameter

2007-06-08 Thread Volker Weber
Hi, http://wiki.apache.org/myfaces/InvokingJsfPagesWithStandardUrls?highlight=%28NonfacesRequest%29#head-6c1aaf488d48f938896da962aaa4361ec3ffaf70 Regards, Volker 2007/6/8, MPF [EMAIL PROTECTED]: Hi! How can I realize that? My application get called with a link that contains a parameter

Re: Myfaces - application calling by link which include parameter

2007-06-08 Thread David Delbecq
Easy way to do it without much complicate front-end code is to use a bean setter to do the initialization job (assuming all you need is the common data initialization case): request: http://server/webapp/something.faces?xyz=abc faces-config.xml: faces-config .. managed-bean