writer.startElement("ul", null);
writer.writeAttribute("class", "ui-wizard-step-titles ui-helper-reset ui-helper-clearfix", null);
for(UIComponent child : wizard.getChildren()) {
if(child instanceof Tab && child.isRendered()) {
Tab tab = (Tab) child;
String styleClass = "ui-wizard-step-title ui-state-default";
if((!currentFound) && (currentStep == null || tab.getId().equals(currentStep))) {
styleClass += " ui-state-hover";
currentFound = true;
}
styleClass += " ui-corner-all";
writer.startElement("li", null);
writer.writeAttribute("class", styleClass, null);
if(tab.getTitletip() != null)
writer.writeAttribute("title", tab.getTitletip(), null);
writer.write(tab.getTitle());
writer.endElement("li");
}
}
writer.endElement("ul");