jsp - Store a textbox value to two managed bean classes -


i have textbox , 2 managed bean classes, namely, loginmb , questionmb. both of these have parameter named login_id. how store textbox value in both managed beans @ once?

i using jsf version 1.2 , jsp pages.

you can save value of textbox in session variable , store in beans this,

facescontext.getcurrentinstance().getexternalcontext().getsessionmap().put(key,object); 

or in commandbutton click can pass parameter , save in second bean.

here example of passing parameter


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -