return page;
}
private static Action parseAction(Element element, String actionAtt)
{
Action action = new Action();
String methodExpression = element.attributeValue(actionAtt);
if (methodExpression==null) return null;
if ( methodExpression.startsWith("#{") )
{
MethodBinding methodBinding = Expressions.instance().createMethodBinding(methodExpression);
action.setMethodBinding(methodBinding);
}
else
{
action.setOutcome(methodExpression);
}
String expression = element.attributeValue("if");
if (expression!=null)
{
action.setValueBinding( Expressions.instance().createValueBinding(expression) );
}
return action;
}