本文整理了Java中javax.faces.event.ActionEvent.queue()
方法的一些代码示例,展示了ActionEvent.queue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ActionEvent.queue()
方法的具体详情如下:
包路径:javax.faces.event.ActionEvent
类名称:ActionEvent
方法名:queue
暂无
代码示例来源:origin: stackoverflow.com
ActionEvent event = new ActionEvent(btnHiddenButton);
event.queue();
代码示例来源:origin: org.richfaces.ui/richfaces-components-ui
@Override
protected void queueComponentEventForBehaviorEvent(FacesContext context, UIComponent component, String eventName) {
super.queueComponentEventForBehaviorEvent(context, component, eventName);
if ("action".equals(eventName) || "click".equals(eventName)) {
new ActionEvent(component).queue();
}
}
代码示例来源:origin: com.github.albfernandez.richfaces/richfaces-a4j
@Override
protected void queueComponentEventForBehaviorEvent(FacesContext context, UIComponent component, String eventName) {
super.queueComponentEventForBehaviorEvent(context, component, eventName);
if ("action".equals(eventName) || "click".equals(eventName)) {
new ActionEvent(component).queue();
}
}
代码示例来源:origin: org.richfaces.ui.core/richfaces-ui-core-ui
@Override
protected void queueComponentEventForBehaviorEvent(FacesContext context, UIComponent component, String eventName) {
super.queueComponentEventForBehaviorEvent(context, component, eventName);
if ("action".equals(eventName) || "click".equals(eventName)) {
new ActionEvent(component).queue();
}
}
代码示例来源:origin: org.richfaces.ui.core/richfaces-ui-core-ui
@Override
protected void doDecode(FacesContext facesContext, UIComponent uiComponent) {
if (isSubmitted(facesContext, uiComponent)) {
new ActionEvent(uiComponent).queue();
}
}
代码示例来源:origin: org.richfaces.ui/richfaces-components-ui
@Override
protected void doDecode(FacesContext facesContext, UIComponent uiComponent) {
if (isSubmitted(facesContext, uiComponent)) {
new ActionEvent(uiComponent).queue();
}
}
代码示例来源:origin: com.github.albfernandez.richfaces/richfaces-a4j
@Override
protected void doDecode(FacesContext facesContext, UIComponent uiComponent) {
if (isSubmitted(facesContext, uiComponent)) {
new ActionEvent(uiComponent).queue();
}
}
代码示例来源:origin: org.richfaces.ui.core/richfaces-ui-core-ui
@Override
protected void queueComponentEventForBehaviorEvent(FacesContext context, UIComponent component, String eventName) {
super.queueComponentEventForBehaviorEvent(context, component, eventName);
if (AbstractPoll.TIMER.equals(eventName)) {
new ActionEvent(component).queue();
addComponentToAjaxRender(context, component);
}
}
代码示例来源:origin: com.github.albfernandez.richfaces/richfaces-a4j
@Override
protected void queueComponentEventForBehaviorEvent(FacesContext context, UIComponent component, String eventName) {
super.queueComponentEventForBehaviorEvent(context, component, eventName);
if (AbstractPoll.TIMER.equals(eventName)) {
new ActionEvent(component).queue();
addComponentToAjaxRender(context, component);
}
}
代码示例来源:origin: org.richfaces.ui/richfaces-components-ui
@Override
protected void queueComponentEventForBehaviorEvent(FacesContext context, UIComponent component, String eventName) {
super.queueComponentEventForBehaviorEvent(context, component, eventName);
if (AbstractPoll.TIMER.equals(eventName)) {
new ActionEvent(component).queue();
addComponentToAjaxRender(context, component);
}
}
代码示例来源:origin: org.richfaces.ui/tooltip
protected void doDecode(FacesContext context, UIComponent component) {
UIToolTip tooltip = (UIToolTip)component;
String clientId = tooltip.getClientId(context);
if(context.getExternalContext().getRequestParameterMap().containsKey(clientId)){
if("ajax".equals(tooltip.getMode())){
new AjaxEvent(component).queue();
new ActionEvent(component).queue();
}
}
}
代码示例来源:origin: org.richfaces.ui/richfaces-components-ui
@Override
protected void doDecode(FacesContext context, UIComponent component) {
Map<String, String> requestMap = context.getExternalContext().getRequestParameterMap();
AbstractTab tab = (AbstractTab) component;
String compClientId = component.getClientId(context);
if (requestMap.get(compClientId) != null) {
AbstractTabPanel parentTabPanel = getParentTabPanel(tab);
if (parentTabPanel.isImmediate()) {
tab.setImmediate(true);
}
new ActionEvent(tab).queue();
}
}
代码示例来源:origin: org.richfaces.ui/richfaces-components-ui
@Override
protected void doDecode(FacesContext context, UIComponent component) {
super.doDecode(context, component);
AbstractPoll poll = (AbstractPoll) component;
if (poll.isEnabled()) {
Map<String, String> requestParameterMap = context.getExternalContext().getRequestParameterMap();
if (requestParameterMap.get(poll.getClientId(context)) != null) {
new ActionEvent(poll).queue();
addComponentToAjaxRender(context, component);
}
}
}
}
代码示例来源:origin: org.richfaces.ui.core/richfaces-ui-core-ui
@Override
protected void doDecode(FacesContext context, UIComponent component) {
super.doDecode(context, component);
AbstractPoll poll = (AbstractPoll) component;
if (poll.isEnabled()) {
Map<String, String> requestParameterMap = context.getExternalContext().getRequestParameterMap();
if (requestParameterMap.get(poll.getClientId(context)) != null) {
new ActionEvent(poll).queue();
addComponentToAjaxRender(context, component);
}
}
}
}
代码示例来源:origin: org.richfaces.compat/richfaces-components-rich
@Override
protected void doDecode(FacesContext context, UIComponent component) {
Map<String, String> requestMap = context.getExternalContext().getRequestParameterMap();
AbstractTab tab = (AbstractTab) component;
String compClientId = component.getClientId(context);
if (requestMap.get(compClientId) != null) {
AbstractTabPanel parentTabPanel = getParentTabPanel(tab);
if (parentTabPanel.isImmediate()) {
tab.setImmediate(true);
}
new ActionEvent(tab).queue();
}
}
代码示例来源:origin: com.github.albfernandez.richfaces/richfaces-a4j
@Override
protected void doDecode(FacesContext context, UIComponent component) {
super.doDecode(context, component);
AbstractPoll poll = (AbstractPoll) component;
if (poll.isEnabled()) {
Map<String, String> requestParameterMap = context.getExternalContext().getRequestParameterMap();
if (requestParameterMap.get(poll.getClientId(context)) != null) {
new ActionEvent(poll).queue();
addComponentToAjaxRender(context, component);
}
}
}
}
代码示例来源:origin: org.richfaces/richfaces
@Override
protected void doDecode(FacesContext context, UIComponent component) {
AbstractPanelMenuGroup menuGroup = (AbstractPanelMenuGroup) component;
if (menuGroup.isDisabled()) {
return;
}
Map<String, String> requestMap = context.getExternalContext().getRequestParameterMap();
// Don't overwrite the value unless you have to!
// TODO! nick - ":expanded" suffix is not necessary
String newValue = requestMap.get(component.getClientId(context) + ":expanded");
if (newValue != null) {
menuGroup.setSubmittedExpanded(newValue);
}
String clientId = component.getClientId(context);
if (requestMap.get(clientId) != null) {
new ActionEvent(component).queue();
context.getPartialViewContext().getRenderIds().add(clientId);
}
}
代码示例来源:origin: org.richfaces.compat/richfaces-components-rich
@Override
protected void doDecode(FacesContext context, UIComponent component) {
Map<String, String> requestMap = context.getExternalContext().getRequestParameterMap();
AbstractPanelMenuItem menuItem = (AbstractPanelMenuItem) component;
String compClientId = component.getClientId(context);
if (requestMap.get(compClientId) != null) {
if (menuItem.isDisabled() || menuItem.isParentDisabled()) {
return;
}
AbstractPanelMenu parentPanelMenu = getParentPanelMenu(menuItem);
if (parentPanelMenu.isImmediate()) {
menuItem.setImmediate(true);
}
new ActionEvent(menuItem).queue();
context.getPartialViewContext().getRenderIds().add(component.getClientId(context));
}
}
代码示例来源:origin: org.richfaces/richfaces
@Override
protected void doDecode(FacesContext context, UIComponent component) {
Map<String, String> requestMap = context.getExternalContext().getRequestParameterMap();
AbstractPanelMenuItem menuItem = (AbstractPanelMenuItem) component;
String compClientId = component.getClientId(context);
if (requestMap.get(compClientId) != null) {
if (menuItem.isDisabled() || menuItem.isParentDisabled()) {
return;
}
AbstractPanelMenu parentPanelMenu = getParentPanelMenu(menuItem);
if (parentPanelMenu.isImmediate()) {
menuItem.setImmediate(true);
}
new ActionEvent(menuItem).queue();
context.getPartialViewContext().getRenderIds().add(component.getClientId(context));
}
}
代码示例来源:origin: org.richfaces.ui/richfaces-components-ui
@Override
protected void doDecode(FacesContext context, UIComponent component) {
Map<String, String> requestMap = context.getExternalContext().getRequestParameterMap();
AbstractPanelMenuItem menuItem = (AbstractPanelMenuItem) component;
String compClientId = component.getClientId(context);
if (requestMap.get(compClientId) != null) {
if (menuItem.isDisabled() || menuItem.isParentDisabled()) {
return;
}
AbstractPanelMenu parentPanelMenu = getParentPanelMenu(menuItem);
if (parentPanelMenu.isImmediate()) {
menuItem.setImmediate(true);
}
new ActionEvent(menuItem).queue();
context.getPartialViewContext().getRenderIds().add(component.getClientId(context));
}
}
内容来源于网络,如有侵权,请联系作者删除!