本文整理了Java中javax.faces.event.ActionEvent.setPhaseId()
方法的一些代码示例,展示了ActionEvent.setPhaseId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ActionEvent.setPhaseId()
方法的具体详情如下:
包路径:javax.faces.event.ActionEvent
类名称:ActionEvent
方法名:setPhaseId
暂无
代码示例来源:origin: primefaces/primefaces
@Override
public void decode(FacesContext context, UIComponent component) {
Poll poll = (Poll) component;
if (context.getExternalContext().getRequestParameterMap().containsKey(poll.getClientId(context))) {
ActionEvent event = new ActionEvent(poll);
if (poll.isImmediate()) {
event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
}
else {
event.setPhaseId(PhaseId.INVOKE_APPLICATION);
}
poll.queueEvent(event);
}
}
代码示例来源:origin: primefaces/primefaces
@Override
public void decode(FacesContext context, UIComponent component) {
RemoteCommand command = (RemoteCommand) component;
if (context.getExternalContext().getRequestParameterMap().containsKey(command.getClientId(context))) {
ActionEvent event = new ActionEvent(command);
if (command.isImmediate()) {
event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
}
else {
event.setPhaseId(PhaseId.INVOKE_APPLICATION);
}
command.queueEvent(event);
}
}
代码示例来源:origin: org.primefaces/primefaces
@Override
public void decode(FacesContext context, UIComponent component) {
RemoteCommand command = (RemoteCommand) component;
if (context.getExternalContext().getRequestParameterMap().containsKey(command.getClientId(context))) {
ActionEvent event = new ActionEvent(command);
if (command.isImmediate()) {
event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
}
else {
event.setPhaseId(PhaseId.INVOKE_APPLICATION);
}
command.queueEvent(event);
}
}
代码示例来源:origin: org.primefaces/primefaces
@Override
public void decode(FacesContext context, UIComponent component) {
Poll poll = (Poll) component;
if (context.getExternalContext().getRequestParameterMap().containsKey(poll.getClientId(context))) {
ActionEvent event = new ActionEvent(poll);
if (poll.isImmediate()) {
event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
}
else {
event.setPhaseId(PhaseId.INVOKE_APPLICATION);
}
poll.queueEvent(event);
}
}
代码示例来源:origin: org.primefaces.extensions/primefaces-extensions
@Override
public void decode(final FacesContext context, final UIComponent component) {
final Timer timer = (Timer) component;
if (context.getExternalContext().getRequestParameterMap().containsKey(timer.getClientId(context))) {
final ActionEvent event = new ActionEvent(timer);
if (timer.isImmediate()) {
event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
}
else {
event.setPhaseId(PhaseId.INVOKE_APPLICATION);
}
timer.queueEvent(event);
}
}
代码示例来源:origin: omnifaces/omnifaces
/**
* If this command script was invoked, queue the {@link ActionEvent} accordingly.
*/
@Override
public void decode(FacesContext context) {
String source = context.getExternalContext().getRequestParameterMap().get(BEHAVIOR_SOURCE_PARAM_NAME);
if (getClientId(context).equals(source)) {
ActionEvent event = new ActionEvent(this);
event.setPhaseId(isImmediate() ? APPLY_REQUEST_VALUES : INVOKE_APPLICATION);
queueEvent(event);
}
}
代码示例来源:origin: org.omnifaces/omnifaces
/**
* If this command script was invoked, queue the {@link ActionEvent} accordingly.
*/
@Override
public void decode(FacesContext context) {
String source = context.getExternalContext().getRequestParameterMap().get(BEHAVIOR_SOURCE_PARAM_NAME);
if (getClientId(context).equals(source)) {
ActionEvent event = new ActionEvent(this);
event.setPhaseId(isImmediate() ? APPLY_REQUEST_VALUES : INVOKE_APPLICATION);
queueEvent(event);
}
}
代码示例来源:origin: org.richfaces.ui/menu-components
actionEvent.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
actionEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
代码示例来源:origin: eclipse-ee4j/mojarra
PhaseId phaseId = getPhaseId();
if (phaseId != null) {
e.setPhaseId(phaseId);
} else if (isImmediate()) {
e.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
} else {
e.setPhaseId(PhaseId.INVOKE_APPLICATION);
代码示例来源:origin: org.glassfish/jakarta.faces
PhaseId phaseId = getPhaseId();
if (phaseId != null) {
e.setPhaseId(phaseId);
} else if (isImmediate()) {
e.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
} else {
e.setPhaseId(PhaseId.INVOKE_APPLICATION);
代码示例来源:origin: com.sun.faces/jsf-api
PhaseId phaseId = getPhaseId();
if (phaseId != null) {
e.setPhaseId(phaseId);
} else if (isImmediate()) {
e.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
} else {
e.setPhaseId(PhaseId.INVOKE_APPLICATION);
代码示例来源:origin: org.glassfish/javax.faces
PhaseId phaseId = getPhaseId();
if (phaseId != null) {
e.setPhaseId(phaseId);
} else if (isImmediate()) {
e.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
} else {
e.setPhaseId(PhaseId.INVOKE_APPLICATION);
代码示例来源:origin: javax/javaee-web-api
PhaseId phaseId = getPhaseId();
if (phaseId != null) {
e.setPhaseId(phaseId);
} else if (isImmediate()) {
e.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
} else {
e.setPhaseId(PhaseId.INVOKE_APPLICATION);
代码示例来源:origin: eclipse-ee4j/mojarra
@Override
public void decode(FacesContext context, UIComponent component) {
rendererParamsNotNull(context, component);
if (!shouldDecode(component)) {
return;
}
String clientId = component.getClientId(context);
if (RenderKitUtils.isPartialOrBehaviorAction(context, clientId)) {
UICommand command = (UICommand) component;
ActionEvent event = new ActionEvent(command);
event.setPhaseId(command.isImmediate() ? PhaseId.APPLY_REQUEST_VALUES : PhaseId.INVOKE_APPLICATION);
command.queueEvent(event);
if (logger.isLoggable(Level.FINE)) {
logger.fine("This commandScript resulted in form submission ActionEvent queued.");
}
}
}
代码示例来源:origin: org.glassfish/javax.faces
@Override
public void decode(FacesContext context, UIComponent component) {
rendererParamsNotNull(context, component);
if (!shouldDecode(component)) {
return;
}
String clientId = component.getClientId(context);
if (RenderKitUtils.isPartialOrBehaviorAction(context, clientId)) {
UICommand command = (UICommand) component;
ActionEvent event = new ActionEvent(command);
event.setPhaseId(command.isImmediate() ? PhaseId.APPLY_REQUEST_VALUES : PhaseId.INVOKE_APPLICATION);
command.queueEvent(event);
if (logger.isLoggable(Level.FINE)) {
logger.fine("This commandScript resulted in form submission ActionEvent queued.");
}
}
}
代码示例来源:origin: org.glassfish/jakarta.faces
@Override
public void decode(FacesContext context, UIComponent component) {
rendererParamsNotNull(context, component);
if (!shouldDecode(component)) {
return;
}
String clientId = component.getClientId(context);
if (RenderKitUtils.isPartialOrBehaviorAction(context, clientId)) {
UICommand command = (UICommand) component;
ActionEvent event = new ActionEvent(command);
event.setPhaseId(command.isImmediate() ? PhaseId.APPLY_REQUEST_VALUES : PhaseId.INVOKE_APPLICATION);
command.queueEvent(event);
if (logger.isLoggable(Level.FINE)) {
logger.fine("This commandScript resulted in form submission ActionEvent queued.");
}
}
}
代码示例来源:origin: org.icefaces/icefaces-compat
event.setPhaseId(PhaseId.INVOKE_APPLICATION);
inputFile.queueEvent(event);
代码示例来源:origin: org.primefaces.extensions/primefaces-extensions
final ActionEvent event = new ActionEvent(command);
if (command.isImmediate()) {
event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
event.setPhaseId(PhaseId.INVOKE_APPLICATION);
代码示例来源:origin: org.icefaces/icefaces-ace
event.setPhaseId(PhaseId.INVOKE_APPLICATION);
tooltip.queueEvent(event);
TooltipDelegateDisplayEvent delegateEvent = new TooltipDelegateDisplayEvent(tooltip);
代码示例来源:origin: org.apache.myfaces.core/myfaces-api
PhaseId phaseId = (phase != null) ? PhaseId.phaseIdValueOf(phase) :
isImmediate() ? PhaseId.APPLY_REQUEST_VALUES : PhaseId.INVOKE_APPLICATION;
evt.setPhaseId(phaseId);
this.queueEvent(evt);
内容来源于网络,如有侵权,请联系作者删除!