简体   繁体   English

JSF页面上的EL表达式评估时间

[英]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. 如果我在后备bean上具有复选框组件和相应的实例变量,以及具有相应操作方法的Submit按钮。 If the user checked the box, the variable should be set to true . 如果用户选中了该框,则应将变量设置为true

My Question, will that variable set to true when the user checked it or when the user press submit button? 我的问题是,当用户选中该变量或当用户按下“提交”按钮时,该变量会设置为true吗?

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. 但是实际上,您可以相当轻松地AJAX标准化您的组件(尤其是使用JSF2),并且可以实现服务器端组件的即时更新。 Some component libraries provide this for you built-in. 一些组件库是内置为您提供的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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