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

The following are Jave code examples for showing how to use processDecodes() 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.
+ Save this method
Example 1
Project: myfaces-trinidad   File: PartialViewContextImpl.java   View Source Code 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   View Source Code 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   View Source Code Vote up 5 votes
/**
 * Calls processDecodes on all facets and children of this
 * component.
 * @param context the current FacesContext
 */
protected void decodeChildrenImpl(FacesContext context)
{
  Iterator<UIComponent> kids = getRenderedFacetsAndChildren(context);
  while (kids.hasNext())
  {
    UIComponent kid = kids.next();
    kid.processDecodes(context);
  }
}
 
Example 4
Project: myfaces-trinidad   File: ChildLoop.java   View Source Code Vote up 4 votes
@Override
protected void process(FacesContext context, UIComponent comp, ComponentProcessingContext cpContext)
{
  comp.processDecodes(context);
}