@Override public void queueEvent(FacesEvent event) { getWrapped().queueEvent(event); }
@Override public void queueEvent(FacesEvent event) { getWrapped().queueEvent(event); }
@Override public void queueEvent(FacesEvent event) { FacesContext context = getFacesContext(); if(event instanceof AjaxBehaviorEvent) { String eventName = context.getExternalContext().getRequestParameterMap().get(Constants.RequestParams.PARTIAL_BEHAVIOR_EVENT_PARAM); if(eventName.equals("rate")) { customEvents.put(eventName, (AjaxBehaviorEvent) event); } else if(eventName.equals("cancel")) { super.queueEvent(event); } } else { super.queueEvent(event); } }
@Override public void queueEvent(FacesEvent event) { FacesContext context = getFacesContext(); if(ComponentUtils.isRequestSource(this, context) && (event instanceof AjaxBehaviorEvent)) { String eventName = context.getExternalContext().getRequestParameterMap().get(Constants.RequestParams.PARTIAL_BEHAVIOR_EVENT_PARAM); customEvents.put(eventName, (AjaxBehaviorEvent) event); } else { super.queueEvent(event); } }
public void queueEvent(FacesEvent event) { super.queueEvent(new TreeEventWrapper(event, getNodeId(), this)); }
/** * {@inheritDoc} */ @Override public void queueEvent(final FacesEvent event) { final FacesContext fc = FacesContext.getCurrentInstance(); if (isSelfRequest(fc) && event instanceof AjaxBehaviorEvent) { final AjaxBehaviorEvent behaviorEvent = (AjaxBehaviorEvent) event; final SheetEvent sheetEvent = new SheetEvent(this, behaviorEvent.getBehavior()); sheetEvent.setPhaseId(event.getPhaseId()); super.queueEvent(sheetEvent); return; } super.queueEvent(event); }
@Override public void validate(FacesContext context) { super.validate(context); if(isValid() && customEvents != null) { for(Iterator<String> customEventIter = customEvents.keySet().iterator(); customEventIter.hasNext();) { String eventName = customEventIter.next(); AjaxBehaviorEvent behaviorEvent = customEvents.get(eventName); Map<String,String> params = context.getExternalContext().getRequestParameterMap(); String clientId = this.getClientId(context); List<?> list = (List) this.getValue(); FacesEvent wrapperEvent = null; if(eventName.equals("select")) { int itemIndex = Integer.parseInt(params.get(clientId + "_itemIndex")); boolean metaKey = Boolean.valueOf(params.get(clientId + "_metaKey")); boolean ctrlKey = Boolean.valueOf(params.get(clientId + "_ctrlKey")); wrapperEvent = new SelectEvent(this, behaviorEvent.getBehavior(), list.get(itemIndex), metaKey, ctrlKey); } else if(eventName.equals("unselect")) { int itemIndex = Integer.parseInt(params.get(clientId + "_itemIndex")); wrapperEvent = new UnselectEvent(this, behaviorEvent.getBehavior(), list.get(itemIndex)); } else if(eventName.equals("reorder")) { wrapperEvent = behaviorEvent; } wrapperEvent.setPhaseId(behaviorEvent.getPhaseId()); super.queueEvent(wrapperEvent); } } }
@Override public void validate(FacesContext context) { super.validate(context); if(isValid()) { for(Iterator<String> customEventIter = customEvents.keySet().iterator(); customEventIter.hasNext();) { AjaxBehaviorEvent behaviorEvent = customEvents.get(customEventIter.next()); RateEvent rateEvent = new RateEvent(this, behaviorEvent.getBehavior(), getValue()); rateEvent.setPhaseId(behaviorEvent.getPhaseId()); super.queueEvent(rateEvent); } } } public String resolveWidgetVar() {
transferEvent.setPhaseId(event.getPhaseId()); super.queueEvent(transferEvent); super.queueEvent(event);
super.queueEvent(wrapperEvent);
public void validate(FacesContext context) { AssertionUtil.assertNotNull("context", context); Object submittedValue = getSubmittedValue(); if (submittedValue == null) { return; } Object convertedValue = getConvertedValue(context, submittedValue); if (!isValid()) { return; } validateValue(context, convertedValue); if (!isValid()) { return; } Object previous = getValue(); setValue(convertedValue); setSubmittedValue(null); if (compareValues(previous, convertedValue)) { queueEvent(new ValueChangeEvent(this, previous, convertedValue)); } }
setSubmittedValue(null); if (compareValues(previous, newValue)) { queueEvent(new ValueChangeEvent(this, previous, newValue));
setSubmittedValue(null); if (compareValues(previous, newValue)) { queueEvent(new ValueChangeEvent(this, previous, newValue));
if (compareValues(previousValue, convertedValue)) queueEvent(new ValueChangeEvent(this, previousValue, convertedValue));
setSubmittedValue(null); if (compareValues(previous, newValue)) { queueEvent(new ValueChangeEvent(context, this, previous, newValue));
setSubmittedValue(null); if (compareValues(previous, newValue)) { queueEvent(new ValueChangeEvent(this, previous, newValue));
setSubmittedValue(null); if (compareValues(previous, newValue)) { queueEvent(new ValueChangeEvent(context, this, previous, newValue));
setSubmittedValue(null); if (compareValues(previous, newValue)) { queueEvent(new ValueChangeEvent(context, this, previous, newValue));
setSubmittedValue(null); if (compareValues(previous, newValue)) { queueEvent(new ValueChangeEvent(context, this, previous, newValue));
setSubmittedValue(null); if (compareValues(previous, newValue)) { queueEvent(new ValueChangeEvent(context, this, previous, newValue));