protected int exprElementStart(
MarinerRequestContext context,
PAPIAttributes papiAttributes) throws PAPIException {
MarinerPageContext pageContext
= ContextInternals.getMarinerPageContext(context);
XFOptionGroupAttributes xfoga =
(XFOptionGroupAttributes) papiAttributes;
optiongroup = new SelectOptionGroup();
TextAssetReference object;
PolicyReferenceResolver resolver =
pageContext.getPolicyReferenceResolver();
// Process the caption as a mariner expression.
object = resolver.resolveQuotedTextExpression(xfoga.getCaption());
optiongroup.setCaption(object);
// Process the prompt as a mariner expression.
object = resolver.resolveQuotedTextExpression(xfoga.getPrompt());
optiongroup.setPrompt(object);
Object enclosing = pageContext.getCurrentElement();
optiongroup.setStyles(pageContext.getStylingEngine().getStyles());