super.encodeBegin(context);
	public void encodeBegin(FacesContext context) throws IOException {		super.encodeBegin(context);				String viewId = context.getViewRoot().getViewId();		int indexOfDot = viewId.indexOf('.');		if(indexOfDot!=-1){			viewId = viewId.substring(0, indexOfDot) + ".jsf";			for (Iterator iter = getMenuItemIds().iterator(); iter.hasNext();) {				String buttonId = (String) iter.next();				String buttonViewId = (String) getAttributes().get("view_" + buttonId);				if (buttonViewId.equals(viewId)) {					setSelectedMenuItemId(buttonId);					break;				}			}		}		super.encodeBegin(context);				/*		ResponseWriter out = context.getResponseWriter();		// Task menu buttons		out.startElement("table", null);		if (getViewMenuStyleClass() != null) {			out.writeAttribute("class", getViewMenuStyleClass(), null);		}		Iterator iter = _buttonIds.iterator();		while (iter.hasNext()) {			String buttonId = (String) iter.next();			out.startElement("tr", null);			String buttonStyleClass = getButtonDeselectedStyleClass();			WFViewMenuButton button = (WFViewMenuButton) getFacet("button_" + buttonId);			if (buttonId.equals(_selectedButtonId)) {				button.setSelected(true);				buttonStyleClass = getButtonSelectedStyleClass();			} else {				button.setSelected(false);			}			out.startElement("td", null);			if (buttonStyleClass != null) {				out.writeAttribute("class", buttonStyleClass, null);			}			renderFacet(context, "button_" + buttonId);			out.endElement("td");			out.endElement("tr");		}		out.endElement("table");		*/	}