Java Code Examples for javax.faces.component.UIComponent.processUpdates()

The following are Jave code examples for showing how to use processUpdates() of the javax.faces.component.UIComponent class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: myfaces-trinidad   File: PartialViewContextImpl.java   Source Code and License Vote up 6 votes
public VisitResult visit(VisitContext context, UIComponent target)
{
  if (_phaseId == PhaseId.APPLY_REQUEST_VALUES)
  {
    target.processDecodes(_context);
  }
  else if (_phaseId == PhaseId.PROCESS_VALIDATIONS)
  {
    target.processValidators(_context);
  }
  else if (_phaseId == PhaseId.UPDATE_MODEL_VALUES)
  {
    target.processUpdates(_context);
  }


  // No need to visit children, since they will be executed/rendred by their parents
  return VisitResult.REJECT;
}
 
Example 2
Project: myfaces-trinidad   File: UIXCollection.java   Source Code and License Vote up 6 votes
/**
 * Process a component.
 * This method calls {@link #processDecodes(FacesContext)},
 * {@link #processValidators} or
 * {@link #processUpdates}
 * depending on the {#link PhaseId}.
 */
protected final void processComponent(
  FacesContext context,
  UIComponent  component,
  PhaseId      phaseId)
{
  if (component != null)
  {
    if (phaseId == PhaseId.APPLY_REQUEST_VALUES)
      component.processDecodes(context);
    else if (phaseId == PhaseId.PROCESS_VALIDATIONS)
      component.processValidators(context);
    else if (phaseId == PhaseId.UPDATE_MODEL_VALUES)
      component.processUpdates(context);
    else
      throw new IllegalArgumentException(_LOG.getMessage(
        "BAD_PHASEID",phaseId));
  }
}
 
Example 3
Project: myfaces-trinidad   File: UIXComponentBase.java   Source Code and License Vote up 5 votes
protected void updateChildrenImpl(FacesContext context)
{
  // Process all the facets and children of this component
  Iterator<UIComponent> kids = getRenderedFacetsAndChildren(context);
  while (kids.hasNext())
  {
    UIComponent kid = kids.next();
    kid.processUpdates(context);
  }
}
 
Example 4
Project: myfaces-trinidad   File: ChildLoop.java   Source Code and License Vote up 4 votes
@Override
protected void process(FacesContext context, UIComponent comp, ComponentProcessingContext cpContext)
{
  comp.processUpdates(context);
}