Java Code Examples for javax.faces.component.html.HtmlInputHidden#getValue()

The following examples show how to use javax.faces.component.html.HtmlInputHidden#getValue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ManageSubscriptionCtrl.java    From development with Apache License 2.0 5 votes vote down vote up
/**
 * Invoke when click radio button to select subscription owner in
 * subscription owner selection page
 */
public void selectedOwnerChanged(ValueChangeEvent event) {

    UIComponent uiComponent = event.getComponent();
    if (!(uiComponent instanceof HtmlSelectOneRadio)) {
        return;
    }

    HtmlSelectOneRadio radioBtn = (HtmlSelectOneRadio) uiComponent;
    List<UIComponent> uiComponents = radioBtn.getChildren();

    for (UIComponent component : uiComponents) {

        if (!(component instanceof HtmlInputHidden)) {
            continue;
        }

        HtmlInputHidden hiddenInput = (HtmlInputHidden) component;
        String ownerId = (String) hiddenInput.getValue();
        if (Boolean.valueOf((String) event.getNewValue()).booleanValue()) {
            if (ownerId.trim().isEmpty()) {
                deassignOwner();
                return;
            }
            setOwnerSelectedStatus(ownerId);
            return;
        }
        for (User owner : model.getSubscriptionOwners()) {
            if (owner.getUserId().equals(ownerId)) {
                owner.setOwnerSelected(false);
            }
        }
    }
}
 
Example 2
Source File: EvaluationManagementBackingBean.java    From fenixedu-academic with GNU Lesser General Public License v3.0 5 votes vote down vote up
public void setEvaluationIdHidden(HtmlInputHidden evaluationIdHidden) {
    if (evaluationIdHidden != null && evaluationIdHidden.getValue() != null
            && !evaluationIdHidden.getValue().toString().equals("")) {
        this.evaluationID = evaluationIdHidden.getValue().toString();
    }

    this.evaluationIdHidden = evaluationIdHidden;
}
 
Example 3
Source File: SOPEvaluationManagementBackingBean.java    From fenixedu-academic with GNU Lesser General Public License v3.0 5 votes vote down vote up
public void setExecutionDegreeIdHidden(HtmlInputHidden executionDegreeIdHidden) {
    if (executionDegreeIdHidden != null && executionDegreeIdHidden.getValue() != null
            && !executionDegreeIdHidden.getValue().equals("")) {
        this.executionDegreeID = executionDegreeIdHidden.getValue().toString();
    }
    this.executionDegreeIdHidden = executionDegreeIdHidden;
}
 
Example 4
Source File: SOPEvaluationManagementBackingBean.java    From fenixedu-academic with GNU Lesser General Public License v3.0 5 votes vote down vote up
public void setCurricularYearIdHidden(HtmlInputHidden curricularYearIdHidden) {
    if (curricularYearIdHidden != null && curricularYearIdHidden.getValue() != null
            && !curricularYearIdHidden.getValue().equals("")) {
        this.curricularYearID = Integer.valueOf(curricularYearIdHidden.getValue().toString());
    }
    this.curricularYearIdHidden = curricularYearIdHidden;
}
 
Example 5
Source File: SOPEvaluationManagementBackingBean.java    From fenixedu-academic with GNU Lesser General Public License v3.0 5 votes vote down vote up
public void setCalendarPeriodHidden(HtmlInputHidden calendarPeriodHidden) {
    if (calendarPeriodHidden != null && calendarPeriodHidden.getValue() != null
            && !calendarPeriodHidden.getValue().equals("")) {
        this.calendarPeriod = Integer.valueOf(calendarPeriodHidden.getValue().toString());
    }
    this.calendarPeriodHidden = calendarPeriodHidden;
}
 
Example 6
Source File: SOPEvaluationManagementBackingBean.java    From fenixedu-academic with GNU Lesser General Public License v3.0 5 votes vote down vote up
public void setDayHidden(HtmlInputHidden dayHidden) {
    if (dayHidden.getValue() != null) {
        final String dayValue = dayHidden.getValue().toString();
        if (dayValue.length() > 0) {
            this.day = Integer.valueOf(dayValue);
        }
    }
    this.dayHidden = dayHidden;
}
 
Example 7
Source File: SOPEvaluationManagementBackingBean.java    From fenixedu-academic with GNU Lesser General Public License v3.0 5 votes vote down vote up
public void setMonthHidden(HtmlInputHidden monthHidden) {
    if (monthHidden.getValue() != null) {
        final String monthValue = monthHidden.getValue().toString();
        if (monthValue.length() > 0) {
            this.month = Integer.valueOf(monthValue);
        }
    }
    this.monthHidden = monthHidden;
}
 
Example 8
Source File: SOPEvaluationManagementBackingBean.java    From fenixedu-academic with GNU Lesser General Public License v3.0 5 votes vote down vote up
public void setYearHidden(HtmlInputHidden yearHidden) {
    if (yearHidden.getValue() != null) {
        final String yearValue = yearHidden.getValue().toString();
        if (yearValue.length() > 0) {
            this.year = Integer.valueOf(yearValue);
        }
    }
    this.yearHidden = yearHidden;
}
 
Example 9
Source File: SOPEvaluationManagementBackingBean.java    From fenixedu-academic with GNU Lesser General Public License v3.0 4 votes vote down vote up
public void setAcademicIntervalHidden(HtmlInputHidden academicIntervalHidden) {
    if (academicIntervalHidden.getValue() != null && !((String) academicIntervalHidden.getValue()).isEmpty()) {
        this.academicInterval = academicIntervalHidden.getValue().toString();
    }
    this.academicIntervalHidden = academicIntervalHidden;
}
 
Example 10
Source File: SOPEvaluationManagementBackingBean.java    From fenixedu-academic with GNU Lesser General Public License v3.0 4 votes vote down vote up
public void setBeginHourHidden(HtmlInputHidden beginHourHidden) {
    if (beginHourHidden.getValue() != null) {
        this.beginHour = Integer.valueOf(beginHourHidden.getValue().toString());
    }
    this.beginHourHidden = beginHourHidden;
}
 
Example 11
Source File: SOPEvaluationManagementBackingBean.java    From fenixedu-academic with GNU Lesser General Public License v3.0 4 votes vote down vote up
public void setBeginMinuteHidden(HtmlInputHidden beginMinuteHidden) {
    if (beginMinuteHidden.getValue() != null) {
        this.beginMinute = Integer.valueOf(beginMinuteHidden.getValue().toString());
    }
    this.beginMinuteHidden = beginMinuteHidden;
}
 
Example 12
Source File: SOPEvaluationManagementBackingBean.java    From fenixedu-academic with GNU Lesser General Public License v3.0 4 votes vote down vote up
public void setEndHourHidden(HtmlInputHidden endHourHidden) {
    if (endHourHidden.getValue() != null) {
        this.endHour = Integer.valueOf(endHourHidden.getValue().toString());
    }
    this.endHourHidden = endHourHidden;
}
 
Example 13
Source File: SOPEvaluationManagementBackingBean.java    From fenixedu-academic with GNU Lesser General Public License v3.0 4 votes vote down vote up
public void setEndMinuteHidden(HtmlInputHidden endMinuteHidden) {
    if (endMinuteHidden.getValue() != null) {
        this.endMinute = Integer.valueOf(endMinuteHidden.getValue().toString());
    }
    this.endMinuteHidden = endMinuteHidden;
}