Package org.primefaces.component.api

Examples of org.primefaces.component.api.AutoUpdatable


* Registers components to auto update before rendering
*/
public class AutoUpdateComponentListener implements SystemEventListener {

    public void processEvent(SystemEvent cse) throws AbortProcessingException {
        AutoUpdatable component = (AutoUpdatable) cse.getSource();
        FacesContext context = FacesContext.getCurrentInstance();

        if(component.isAutoUpdate() && context.isPostback()) {
           
            if (!RequestContext.getCurrentInstance().isIgnoreAutoUpdate()) {
            context.getPartialViewContext().getRenderIds().add(component.getClientId(context));
          }
        }
    }
View Full Code Here

TOP

Related Classes of org.primefaces.component.api.AutoUpdatable

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.