Package org.richfaces.slidfast.component

Examples of org.richfaces.slidfast.component.AbstractPageChanger


        @ResourceDependency(library = "org.richfaces", name = "slidfast.css")
})
public class PageChangerRendererBase extends RendererBase {
    @Override
    protected void doDecode(FacesContext context, UIComponent component) {
        AbstractPageChanger pageChanger = (AbstractPageChanger) component;

        // Update the activePage value expression with the value from the request
        ValueExpression updateBinding = pageChanger.getActivePage();
        Object requestValue = context.getExternalContext().getRequestParameterMap().get(AbstractPageChanger.REQUEST_PARAM);
        if (requestValue != null) {
            updateBinding.setValue(context.getELContext(), requestValue);
        }

        // Re-render the page ids as requested by the pageChanger component
        PartialViewContext pvc = context.getPartialViewContext();
        pvc.getRenderIds().add(pageChanger.getRender());

        super.doDecode(context, component);
    }
View Full Code Here

TOP

Related Classes of org.richfaces.slidfast.component.AbstractPageChanger

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.