Pass input text value to bean method without binding input value to bean property

后端 未结 2 1614
一生所求
一生所求 2020-12-04 21:56

Can I pass a input text field value to a bean method without binding the value to a bean property?




        
2条回答
  •  执笔经年
    2020-12-04 22:42

    You can recover the parameters of the form by getting the Request and using plain Java EE ServletRequest#getParameter. When you use this method, remember to set the id and name of your components:

    
         
        
        

    Another thread with more info:

    • Get request parameter values in JSF

提交回复
热议问题