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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -