else{ out.writeAttribute("class", containerStyle, null); }
	public void encodeEnd(FacesContext context, UIComponent comp)			throws IOException {		WFMenu menu = (WFMenu)comp;				//super.encodeBegin(context,comp);				ResponseWriter out = context.getResponseWriter();				UIComponent menuHeader = menu.getMenuHeader();		if(menuHeader!=null){			this.renderChild(context,menuHeader);		}				if(!menu.isEmpty()){			out.startElement("div",null);			String mainStyle = menu.getMenuStyleClass();			if (mainStyle != null) {				out.writeAttribute("class", mainStyle+"container", null);			}			out.startElement("ul", null);			if (mainStyle != null) {				out.writeAttribute("class", mainStyle, null);			}			out.writeAttribute("id", "" + comp.getId(), null);			//out.startElement("tr", null);			//MenuItems:										Iterator iter = menu.getMenuItemIds().iterator();			while (iter.hasNext()) {				String buttonId = (String) iter.next();				String buttonStyleClass = menu.getDeselectedMenuItemStyleClass();								UIComponent menuItem = menu.getMenuItem(buttonId);				if(menuItem.isRendered()){					if(menuItem instanceof WFTab){						WFTab tab = (WFTab) menuItem;						if (buttonId.equals(menu.getSelectedMenuItemId())) {							tab.setSelected(true);							buttonStyleClass = menu.getSelectedMenuItemStyleClass();						} else {							tab.setSelected(false);						}					}					if (buttonId.equals(menu.getSelectedMenuItemId())) {						buttonStyleClass = menu.getSelectedMenuItemStyleClass();					} 					out.startElement("li", null);					if (buttonStyleClass != null) {						out.writeAttribute("class", buttonStyleClass, null);					}					renderChild(context,menuItem);					//renderFacet(context,menu, "button_" + buttonId);					out.endElement("li");				}			}			//out.endElement("tr");			out.endElement("ul");			out.endElement("div");		}		//		super.encodeEnd(context,comp);	}