JSF Dynamic Rendered Component's Value becomes null when the form is submitted

妖精的绣舞 提交于 2019-12-08 07:27:30

Put the bean in the view scope instead of request scope. A request scoped is recreated on every single HTTP request. The boolean property will default to false again whenever you submit the form, so the submitted value won't be processed then.

@ManagedBean
@ViewScoped
public class WorkFlowSelectionController {
    //
}

A view scoped bean will live as long as you're (ajax-) interacting with the same view by returning null or void from action(listener) methods.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!