How can I pass value from jQuery to jsf h:inputText and Backing Bean

前端 未结 1 1205
一个人的身影
一个人的身影 2021-01-21 18:34

I try to pass value from jquery to jsf and Backing Bean. And in the process, I do not want to use f:ajax from jsf-Tag.

javaScript or jQuery



        
相关标签:
1条回答
  • 2021-01-21 19:05

    just you have to set val to browser textbox id in jquery

    for example

     <script>
       var myvalue = null;
       $('.classname').live('click',function(){
          myvalue = "thisvalue"+xyz;  
    
         $("#myid\\:fragment").val(myvalue);
    
       });
    </script>
    

    it will automatically bind value to your bean

    hope it's help for you .

    0 讨论(0)
提交回复
热议问题