javax.faces.event.ComponentSystemEvent Java Examples

The following examples show how to use javax.faces.event.ComponentSystemEvent. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DataTable.java    From BootsFaces-OSP with Apache License 2.0 6 votes vote down vote up
@Override
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
		super.processEvent(event);
	}
	List<UIComponent> columns = getChildren();
	for (UIComponent column : columns) {
		if (column.getAttributes().get("selectionMode") != null) {
			String selectionMode = (String) column.getAttributes().get("selectionMode");
			if ("multiple".equals(selectionMode)) {
				importCheckboxColumnLib();
			}
		}
	}

}
 
Example #2
Source File: NavBar.java    From BootsFaces-OSP with Apache License 2.0 6 votes vote down vote up
/**
 * Dario D'Urzo <br>
 * Dynamically add custom css to manage non-sticky footer. In this way, only
 * if fixed attribute is "non-sticky" the system load the correct css that
 * manages all style aspect of this functionlity.
 *
 * This is also cross-theme.
 */
@Override
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (event instanceof PostAddToViewEvent) {
		if ("non-sticky".equals(getFixed()) || ("bottom".equals(getPosition()) && (!isSticky()))) {
			AddResourcesListener.addExtCSSResource("sticky-footer-navbar.css");
			/*UIOutput resource = new UIOutput();
			resource.getAttributes().put("name", "css/sticky-footer-navbar.css");
			resource.getAttributes().put("library", C.BSF_LIBRARY);
			resource.getAttributes().put("target", "head");
			resource.setRendererType("javax.faces.resource.Stylesheet");
			FacesContext.getCurrentInstance().getViewRoot().addComponentResource(FacesContext.getCurrentInstance(),
					resource);*/
		}
	}
	super.processEvent(event);
}
 
Example #3
Source File: Gyroscope.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
	 		super.processEvent(event);
	 	}
}
 
Example #4
Source File: Container.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
		super.processEvent(event);
	}
}
 
Example #5
Source File: DropButton.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
		super.processEvent(event);
	}
}
 
Example #6
Source File: TouchSpin.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
	 		super.processEvent(event);
	 	}
}
 
Example #7
Source File: SelectOneMenu.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
	 		super.processEvent(event);
	 	}
}
 
Example #8
Source File: Video.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
	 		super.processEvent(event);
	 	}
}
 
Example #9
Source File: DateTimePicker.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
		super.processEvent(event);
	}
}
 
Example #10
Source File: CustomAttributeAction.java    From oxTrust with MIT License 5 votes vote down vote up
public void renderAttribute(ComponentSystemEvent event) {
	// Replace dummy component id with real one
	String dummyId = event.getComponent().getAttributes().get("aid").toString();
	String clientId = event.getComponent().getClientId();

	GluuAttribute attribute = this.attributeToIds.get(dummyId);
	this.attributeIds.put(attribute, clientId);
}
 
Example #11
Source File: PreRenderViewBean.java    From ee7-sandbox with Apache License 2.0 5 votes vote down vote up
public void init(ComponentSystemEvent e){
    log.info("call init");
    log.info("flag @"+ flag);
    
    if(!FacesContext.getCurrentInstance().isPostback()){
        //initialized some data...but avoid loading in postback request
    }
    
    if("page2".equals(flag)){
        ConfigurableNavigationHandler handler=(ConfigurableNavigationHandler)  
                FacesContext.getCurrentInstance().getApplication().getNavigationHandler();      
        handler.performNavigation("page2");
    }
}
 
Example #12
Source File: Authenticator.java    From socialauth with MIT License 5 votes vote down vote up
public void verify(ComponentSystemEvent cse) {

		boolean ajaxRequest = javax.faces.context.FacesContext
				.getCurrentInstance().getPartialViewContext().isAjaxRequest();
		if (!ajaxRequest) {
						try {
				socialauth.connect();
			} catch (Exception e) {
				log.warn(e);
			}
		}
	}
 
Example #13
Source File: Image.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
	 		super.processEvent(event);
	 	}
}
 
Example #14
Source File: Badge.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
	 		super.processEvent(event);
	 	}
}
 
Example #15
Source File: SelectMultiMenu.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
	 		super.processEvent(event);
	 	}
}
 
Example #16
Source File: Kebab.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
	 		super.processEvent(event);
	 	}
}
 
Example #17
Source File: NavCommandLink.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
		super.processEvent(event);
	}
}
 
Example #18
Source File: FormGroup.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
	 		super.processEvent(event);
	 	}
}
 
Example #19
Source File: CarouselControl.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
		super.processEvent(event);
	}
}
 
Example #20
Source File: Label.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
	 		super.processEvent(event);
	 	}
}
 
Example #21
Source File: Canvas.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
		super.processEvent(event);
	}
}
 
Example #22
Source File: NavBarLinks.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
	 		super.processEvent(event);
	 	}
}
 
Example #23
Source File: Tab.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
		super.processEvent(event);
	}
}
 
Example #24
Source File: Datepicker.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
		super.processEvent(event);
	}
}
 
Example #25
Source File: Button.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
		super.processEvent(event);
	}
}
 
Example #26
Source File: Alert.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
		super.processEvent(event);
	}
}
 
Example #27
Source File: Carousel.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
		super.processEvent(event);
	}
}
 
Example #28
Source File: Growl.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
		super.processEvent(event);
	}
}
 
Example #29
Source File: Modal.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
	 		super.processEvent(event);
	 	}
}
 
Example #30
Source File: ProgressBar.java    From BootsFaces-OSP with Apache License 2.0 5 votes vote down vote up
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
	if (isAutoUpdate()) {
		if (FacesContext.getCurrentInstance().isPostback()) {
			FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(getClientId());
		}
		super.processEvent(event);
	}
}