ViewDeclarationLanguage vdl = getViewDeclarationLanguage(context,calculatedViewId);
ViewMetadata viewMetadata = vdl.getViewMetadata(context, viewId);
// getViewMetadata() returns null on JSP
if (viewMetadata != null)
{
UIViewRoot viewFromMetaData = viewMetadata.createMetadataView(context);
toViewParams = ViewMetadata.getViewParameters(viewFromMetaData);
}
}
if (toViewParams == null || toViewParams.isEmpty())