changePrice( getpriceTotals()); I have this method in the changprice.java(pagecode),getpriceTotals() get the totlas price bean which is a managed bean from session scpoe, this bean also bind to text40 (a HtmlOutputText)in changeprice.jsp. my question is , when I change the value of text40, how can I get the right value through getpriceTotals(), because I always get the old value. Thanks
The easy solution for you is to create a hidden field and have both the text output value and the javascript value refer to this hidden field. the managed bean will also refer to this hidden field.
For example;
When evil is afoot and you don't have any arms you gotta be hip and do the legwork, but always kick some ... tiny ad: