简体   繁体   中英

EL expression evaluation time on a JSF page

If I have a check box component and a corresponding instance variable on the backing bean, and a submit button with a corresponding action method. If the user checked the box, the variable should be set to true .

My Question, will that variable set to true when the user checked it or when the user press submit button?

Thanks in advanced.

Out of the box the submit button will send the request to the server which will update your server-side component variable.

But you can actually AJAXify your components quite easily (especially using JSF2), and can achieve an instant update of the server-side component. Some component libraries provide this for you built-in.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM