Package org.rhq.enterprise.gui.common.paging

Examples of org.rhq.enterprise.gui.common.paging.PageControlView


            UIData enclosingTable = getEnclosingUIData(component);

            UIComponent facet = enclosingTable.getFacet("PageControlView");
            String viewName = facet.getId();

            PageControlView currentView = PageControlView.valueOf(viewName);
            WebUser user = EnterpriseFacesContextUtility.getWebUser();
            WebUserPreferences preferences = user.getWebPreferences();

            return preferences.getPageControl(currentView);
        } catch (Throwable t) {
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.paging.PageControlView

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.