String formId = Renderers.getFormId(context,component);
writer.writeAttribute("onclick",
"document.forms['"+formId+"']['"+clientId+"'].value='"+content+"';"+
"document.forms['"+formId+"'].submit();",null);
UITabbedPane tabbedPane = (UITabbedPane)component;
String selectedContent= tabbedPane.getContent();
String tabClass=null;
if(content.equals(selectedContent)){tabClass = (String)component.getAttributes().get("selectedTabClass");}
else{tabClass = (String)component.getAttributes().get("tabClass");}
if(tabClass!=null){writer.writeAttribute("class", tabClass, null);}