jsf - Get HTTP request parameter values in Spring managed bean -


i have spring-jsf integrated application. integration done springbeanfaceselresolver. bean class in managed spring. looking query string parameter value inside bean in 'spring way'. able query string parameter value in 'jsf way' follows, don't want use bean managed spring.

facescontext.getcurrentinstance().getexternalcontext().getrequestparametermap().get("myparamname"); 

can please suggest spring way those?

from xhtml file call method in bean follows

<h:commandlink  action="#{myuserbean.onuserload}"> 

this pseudo code of bean class

@component @scope("session") public class myuserbean {      @autowired     private userservice userservice;       public string onuserload() {               //get request parameter value here     }  } 

use org.springframework.web.context.request.requestcontextholder solution


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -