如何使f:ajax忽略渲染属性中的无效ID?

时间:2014-06-24 13:49:21

标签: ajax jsf jsf-2 ajax4jsf

我在后端创建JSF组件。此外,使用AjaxBehavior添加了ajax支持。

AjaxBehavior a4jSupport = (AjaxBehavior) app.createBehavior(AjaxBehavior.BEHAVIOR_ID);
List<String> updateIds = getUpdateIds();
if (updateIds !=null){
    a4jSupport.setRender(updateIds);
    ((UIComponentBase) component).addClientBehavior("change", a4jSupport);
}

想法是在某些输入组件的值更改时添加重新呈现的组件集。当任何更新ID无效时,我将面临问题。它抛出Javax.faces.FacesException,提到特定的id无效。

需要知道,是否有任何方法可以忽略无效的ID而不是抛出异常?

0 个答案:

没有答案