List<UIComponent> children = metadata.getChildren();
List<PathParameter> pathParameters = prettyContext.getCurrentMapping().getPatternParser().getPathParameters();
for (PathParameter p : pathParameters)
{
UIViewParameter param = (UIViewParameter) context.getApplication().createComponent(
UIViewParameter.COMPONENT_TYPE);
Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
requestMap.put(p.getName(), p.getValue());
param.setName(p.getName());
ValueExpression ve = elUtils.createValueExpression(context, p.getExpression().getELExpression());
param.setValueExpression("value", ve);
param.setImmediate(true);
children.add(param);
}
List<QueryParameter> queryParams = prettyContext.getCurrentMapping().getQueryParams();
for (QueryParameter q : queryParams)
{
UIViewParameter param = new UIViewParameter();
param.setName(q.getName());
ValueExpression ve = elUtils.createValueExpression(context, q.getExpression().getELExpression());
param.setValueExpression("value", ve);
param.setImmediate(true);
children.add(param);
}
}
}