Package org.rhq.enterprise.gui.common.framework

Examples of org.rhq.enterprise.gui.common.framework.PagedDataTableUIBean


    }

    private PagedDataTableUIBean getPagedDataTableUIBean() {
        FacesContext facesContext = FacesContextUtility.getFacesContext();
        ExternalContext externalContext = facesContext.getExternalContext();
        PagedDataTableUIBean result = (PagedDataTableUIBean) externalContext.getRequestMap().get(beanName);
        if (result == null) {
            result = (PagedDataTableUIBean) externalContext.getSessionMap().get(beanName);
        }
        return result;
    }
View Full Code Here


        UIData table = FacesComponentUtility.getAncestorOfType(columnHeader, UIData.class);
        PagedListDataModel<?> model = (PagedListDataModel<?>) table.getValue();

        // work-around to bypass stale data model caused by a4j:keepAlive for the PagedDataTableUIBean
        PageControlView pageControlView = model.getPageControlView();
        PagedDataTableUIBean pagedDataTableUIBean = pageControlView.getPagedDataTableUIBean();
        pagedDataTableUIBean.setDataModel(null);

        PageControl pc = model.getPageControl();
        pc.sortBy(sort);
        model.setPageControl(pc);
    }
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.gui.common.framework.PagedDataTableUIBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.