String viewId = getViewId(facesContext);
for ( Page page: getPageStack(viewId) )
{
for ( Param pageParameter: page.getParameters() )
{
ValueExpression valueExpression = pageParameter.getValueExpression();
if (valueExpression!=null)
{
Object object = Contexts.getEventContext().get( pageParameter.getName() );
if (object!=null)
{
valueExpression.setValue(object);
}
}
}
}
}