? new Object[] { pageIndex }
: new Object[] { pageIndex, zone };
Link link = resources.createEventLink(EventConstants.ACTION, context);
Element element = writer.element("a",
"href", zone == null ? link : "#",
"title", messages.format("goto-page", pageIndex));
writer.write(Integer.toString(pageIndex));
writer.end();
if (zone != null)
{
String id = jsSupport.allocateClientId(resources);
element.attribute("id", id);
clientBehaviorSupport.linkZone(id, zone, link);
}
}