Java Code Examples for javax.faces.event.FacesEvent#setPhaseId()
The following examples show how to use
javax.faces.event.FacesEvent#setPhaseId() .
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: UIDataSourceIterator.java From XPagesExtensionLibrary with Apache License 2.0 | 5 votes |
@Override public void queueEvent(FacesEvent event) { if ((event instanceof ToggleRowEvent) || (event instanceof ToggleDetailEvent)) { if (isPartialExecute()) { event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES); } else { event.setPhaseId(PhaseId.INVOKE_APPLICATION); } // We don't need to wrap it as this is just a command action to the table super.queueEvent(event); } else { // event = new FacesEventWrapper(this, event); super.queueEvent(event); } }
Example 2
Source File: AbstractPager.java From XPagesExtensionLibrary with Apache License 2.0 | 5 votes |
@Override public void queueEvent(FacesEvent e) { if (e instanceof PagerEvent) { if (isPartialExecute()) { e.setPhaseId(PhaseId.APPLY_REQUEST_VALUES); } else { e.setPhaseId(PhaseId.INVOKE_APPLICATION); } } super.queueEvent(e); }