writer.writeAttribute("href", "viewCurricularCourse.faces?curricularCourseID=" + this.degreeModule.getIdInternal() + action, null);
String organizeBy = "&organizeBy=" + (String) this.facesContext.getExternalContext().getRequestParameterMap().get("organizeBy"); String showRules = "&showRules=" + (String) this.facesContext.getExternalContext().getRequestParameterMap().get("showRules"); writer.writeAttribute("href", "viewCurricularCourse.faces?curricularCourseID=" + this.degreeModule.getIdInternal() + action + organizeBy + showRules, null);
    private void encodeCurricularCourse() throws IOException {        writer.startElement("tr", this);                writer.startElement("td", this);        writer.startElement("a", this);        String action = "&action=" + ((this.toEdit) ? "build" : (String) this.facesContext.getExternalContext().getRequestParameterMap().get("action"));         writer.writeAttribute("href", "viewCurricularCourse.faces?curricularCourseID=" + this.degreeModule.getIdInternal() + action, null);        if (!facesContext.getViewRoot().getLocale().equals(Locale.ENGLISH)) {            writer.append(this.degreeModule.getName());            } else {            writer.append(this.degreeModule.getNameEn());        }        writer.endElement("a");        writer.endElement("td");                writer.startElement("td", this);        writer.writeAttribute("class", "smalltxt", null);        writer.writeAttribute("align", "center", null);        if (!byYears) {            //writer.writeAttribute("style", "width: 10em;", null);            writer.append(CurricularPeriodLabelFormatter.getFullLabel((CurricularPeriod)previousContext.getCurricularPeriod(), getLocale()));        } else {            writer.append(previousContext.getCourseGroup().getName());        }        writer.endElement("td");        writer.startElement("td", this);        if (!((CurricularCourse) this.degreeModule).getType().equals(CurricularCourseType.OPTIONAL_COURSE)) {            writer.writeAttribute("class", "highlight2 smalltxt", null);            writer.writeAttribute("align", "center", null);            writer.writeAttribute("style", "width: 1em;", null);            writer.append(this.getBundleValue("EnumerationResources", ((CurricularCourse)this.degreeModule).getRegime().toString() + ".ACRONYM"));        } else {            writer.append("&nbsp;");        }        writer.endElement("td");        writer.startElement("td", this);        if (!((CurricularCourse) this.degreeModule).getType().equals(CurricularCourseType.OPTIONAL_COURSE)) {            writer.writeAttribute("class", "smalltxt", null);            writer.writeAttribute("class", "aright", null);            //writer.writeAttribute("style", "width: 13em;", null);            writer.startElement("span", this);            writer.writeAttribute("style", "color: #888", null);            writer.append(this.getBundleValue("BolonhaManagerResources", "contactLessonHoursAcronym")).append("-");            writer.endElement("span");            writer.append(((CurricularCourse)this.degreeModule).getContactLoad(previousContext.getCurricularPeriod().getOrder()).toString()).append(" ");            writer.startElement("span", this);            writer.writeAttribute("style", "color: #888", null);            writer.append(this.getBundleValue("BolonhaManagerResources", "autonomousWorkAcronym")).append("-");            writer.endElement("span");            writer.append(((CurricularCourse)this.degreeModule).getAutonomousWorkHours(previousContext.getCurricularPeriod().getOrder()).toString()).append(" ");                        writer.startElement("span", this);            writer.writeAttribute("style", "color: #888", null);            writer.append(this.getBundleValue("BolonhaManagerResources", "totalLoadAcronym")).append("-");            writer.endElement("span");            writer.append(((CurricularCourse)this.degreeModule).getTotalLoad(previousContext.getCurricularPeriod().getOrder()).toString());            writer.endElement("td");            writer.startElement("td", this);            writer.writeAttribute("class", "aright", null);            //writer.writeAttribute("style", "width: 7em;", null);            writer.append(this.getBundleValue("BolonhaManagerResources", "credits")).append(" ");            writer.append(((CurricularCourse)this.degreeModule).getEctsCredits().toString());        } else {            writer.append("&nbsp;");            writer.endElement("td");            writer.startElement("td", this);        }        writer.endElement("td");        if (this.toEdit) {            if (!this.showRules) {                encodeCurricularCourseOptions();                } else {                encodeCurricularRulesOptions();            }        }                writer.endElement("tr");    }