如何獲取taskflow的id值,用於控制當前頁面的控件顯示或隱藏

給jsff頁面添加一個event事件,


備註:所綁定的ManagedBean的Scope範圍必須的是 pageFlowScope 及以上


<f:event type="preRenderComponent" listener="#{pageFlowScope.myBackingBean.preRenderComponent}"/>

    public void preRenderComponent(ComponentSystemEvent componentSystemEvent) {
        // Add event code here...
        String controllerViewId = ControllerContext.getInstance().getCurrentViewPort().getViewId();
        ADFUtils.renderButton(controllerViewId);
    }


發佈了51 篇原創文章 · 獲贊 17 · 訪問量 20萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章