// skip rendering back button for narrow-screen PDAs to reduce the
// overall width of selectRangeChoiceBar.
if (showBackButton && !narrowScreen)
{
Icon prevIcon = getIcon(rc, false, (prevOnClick != null));
if (!prevIcon.isNull())
{
// We assign an id to the left arrow so that we can target it as
// a partial target to work around bug 2275703 - see note above.
if (iconID != null)
{
writer.startElement("td", component);
writer.writeAttribute("id", iconID, null);
// If the navigation bar that we are currently rendering
// is included in a partial page response, add the icon
// id to the list of partial targets.
// =-=AEW Not sure this is still necessary
PartialPageContext pprContext = rc.getPartialPageContext();
if ((pprContext != null) &&
pprContext.isInsidePartialTarget())
{
pprContext.addRenderedPartialTarget(iconID);
}
}
else
{
// not in PPR mode, so just render the td (and id if not in a table)
_renderStartTableCell(writer, id, renderedId);
renderedId = true;
}
writer.writeAttribute("valign", "middle", null);
_renderArrow(context, rc, prevIcon, false, prevOnClick);
writer.endElement("td");
_renderSpacerCell(context, rc);
}
_renderStartTableCell(writer, id, renderedId);
renderedId = true;
writer.writeAttribute("valign", "middle", null);
writer.writeAttribute("nowrap", Boolean.TRUE, null);
_renderLink(context,
rc,
false,
prevOnClick,
prevRecords,
id,
source,
backValue);
writer.endElement("td");
_renderSpacerCell(context, rc);
}
_renderStartTableCell(writer, id, renderedId);
renderedId = true;
writer.writeAttribute("valign", "middle", null);
writer.writeAttribute("nowrap", Boolean.TRUE, null);
_renderChoice(context,
rc,
component,
id,
source,
formName,
minValue,
currentValue,
blockSize,
maxValue,
validate);
writer.endElement("td");
// skip rendering back button for narrow-screen PDAs to reduce the
// overall width of selectRangeChoiceBar.
if (showNextButton && !narrowScreen)
{
_renderSpacerCell(context, rc);
_renderStartTableCell(writer, id, true);
writer.writeAttribute("valign", "middle", null);
writer.writeAttribute("nowrap", Boolean.TRUE, null);
_renderLink(context,
rc,
true,
nextOnClick,
nextRecords,
id,
source,
nextValue);
writer.endElement("td");
Icon nextIcon = getIcon(rc, true, (nextOnClick != null));
if (!nextIcon.isNull())
{
_renderSpacerCell(context, rc);
_renderStartTableCell(writer, id, true);
writer.writeAttribute("valign", "middle", null);