private static class UpdateModelPhaseProcessor implements PhaseProcessor
{
public void process(FacesContext context, UIViewRoot root)
{
PartialViewContext pvc = context.getPartialViewContext();
// Perform partial processing by calling PartialViewContext.processPartial(javax.faces.event.PhaseId)
// with PhaseId.UPDATE_MODEL_VALUES if:
// * PartialViewContext.isPartialRequest() returns true and we don't have a request to process
// all components in the view (PartialViewContext.isExecuteAll() returns false)
//section 13.4.2 from the JSF2 spec also see https://issues.apache.org/jira/browse/MYFACES-2119
if (pvc.isPartialRequest() && !pvc.isExecuteAll())
{
pvc.processPartial(PhaseId.UPDATE_MODEL_VALUES);
}
// Perform full processing by calling UIComponentBase.processUpdates(javax.faces.context.FacesContext)
// if one of the following conditions are met:
// * PartialViewContext.isPartialRequest() returns true and we have a request to process all components
// in the view (PartialViewContext.isExecuteAll() returns true)