i had mapped an Integer to h:outputText (JSF 2.0)
<h:outputText id="txt_pay_days" value="#{articleBean.noOfDays}"/>
and changed the value using jquery using
$("#txt_pay_days").text("123");
the value of integer is not changed to 123 in the bean (on the server side) .
What am i doing wrong. Or is this not the right way to do it.
Any suggestions ??
If you want to change on server side you need an ajax call.
You can use f:ajax
Execute tell which component(s) you want to process in ajax call , and update tell wich component(s) you want to update in view.
setPropertyActionListener will set the value of #{articleBean.noOfDays} .
You can found more informantion here: