javax.faces.component.html.HtmlInputHidden Java Examples
The following examples show how to use
javax.faces.component.html.HtmlInputHidden.
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: SOPEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getEndMinuteHidden() throws FenixServiceException { if (this.endMinuteHidden == null) { this.endMinuteHidden = new HtmlInputHidden(); this.endMinuteHidden.setValue(this.getEndMinute()); } return endMinuteHidden; }
Example #2
Source File: SOPEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
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 #3
Source File: SOPEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getDayHidden() throws FenixServiceException { if (this.dayHidden == null) { this.dayHidden = new HtmlInputHidden(); this.dayHidden.setValue(this.getDay()); } return dayHidden; }
Example #4
Source File: SOPEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
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 #5
Source File: SOPEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getMonthHidden() throws FenixServiceException { if (this.monthHidden == null) { this.monthHidden = new HtmlInputHidden(); this.monthHidden.setValue(this.getMonth()); } return monthHidden; }
Example #6
Source File: SOPEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
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 #7
Source File: SOPEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getYearHidden() throws FenixServiceException { if (this.yearHidden == null) { this.yearHidden = new HtmlInputHidden(); this.yearHidden.setValue(this.getYear()); } return yearHidden; }
Example #8
Source File: SOPEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
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 | 5 votes |
public HtmlInputHidden getBeginHourHidden() throws FenixServiceException { if (this.beginHourHidden == null) { this.beginHourHidden = new HtmlInputHidden(); this.beginHourHidden.setValue(this.getBeginHour()); } return beginHourHidden; }
Example #10
Source File: SOPEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getBeginMinuteHidden() throws FenixServiceException { if (this.beginMinuteHidden == null) { this.beginMinuteHidden = new HtmlInputHidden(); this.beginMinuteHidden.setValue(this.getBeginMinute()); } return beginMinuteHidden; }
Example #11
Source File: SOPEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getEndHourHidden() throws FenixServiceException { if (this.endHourHidden == null) { this.endHourHidden = new HtmlInputHidden(); this.endHourHidden.setValue(this.getEndHour()); } return endHourHidden; }
Example #12
Source File: ManageSubscriptionCtrl.java From development with Apache License 2.0 | 5 votes |
/** * 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 #13
Source File: CoordinatorEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getDegreeCurricularPlanIdHidden() { if (this.degreeCurricularPlanIdHidden == null) { final String degreeCurricularPlanId = this.getDegreeCurricularPlanID(); this.degreeCurricularPlanIdHidden = new HtmlInputHidden(); this.degreeCurricularPlanIdHidden.setValue(degreeCurricularPlanId); } return degreeCurricularPlanIdHidden; }
Example #14
Source File: CoordinatorEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getExecutionCourseIdHidden() { if (this.executionCourseIdHidden == null) { this.executionCourseIdHidden = new HtmlInputHidden(); this.executionCourseIdHidden.setValue(this.getExecutionCourseID()); } return executionCourseIdHidden; }
Example #15
Source File: CoordinatorEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getExecutionPeriodIdHidden() { if (this.executionPeriodIdHidden == null) { this.executionPeriodIdHidden = new HtmlInputHidden(); this.executionPeriodIdHidden.setValue(getExecutionPeriodID()); } return executionPeriodIdHidden; }
Example #16
Source File: CoordinatorEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getCurricularYearIdHidden() { if (this.curricularYearIdHidden == null) { this.curricularYearIdHidden = new HtmlInputHidden(); this.curricularYearIdHidden.setValue(getCurricularYearID()); } return curricularYearIdHidden; }
Example #17
Source File: CoordinatorEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getEvaluationIdHidden() { if (this.evaluationIdHidden == null) { this.evaluationIdHidden = new HtmlInputHidden(); this.evaluationIdHidden.setValue(getEvaluationID()); } return evaluationIdHidden; }
Example #18
Source File: CoordinatorEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getDayHidden() { if (this.dayHidden == null) { this.dayHidden = new HtmlInputHidden(); this.dayHidden.setValue(this.getDay()); } return this.dayHidden; }
Example #19
Source File: CoordinatorEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getMonthHidden() { if (this.monthHidden == null) { this.monthHidden = new HtmlInputHidden(); this.monthHidden.setValue(this.getMonth()); } return this.monthHidden; }
Example #20
Source File: CoordinatorEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getYearHidden() { if (this.yearHidden == null) { this.yearHidden = new HtmlInputHidden(); this.yearHidden.setValue(this.getYear()); } return this.yearHidden; }
Example #21
Source File: CoordinatorEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getEvaluationTypeHidden() { if (this.evaluationTypeHidden == null) { this.evaluationTypeHidden = new HtmlInputHidden(); this.evaluationTypeHidden.setValue(getEvaluationType()); } return this.evaluationTypeHidden; }
Example #22
Source File: SOPEvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getCalendarPeriodHidden() { if (this.calendarPeriodHidden == null) { this.calendarPeriodHidden = new HtmlInputHidden(); this.calendarPeriodHidden.setValue(this.getCalendarPeriod()); } return calendarPeriodHidden; }
Example #23
Source File: EvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getExecutionCourseIdHidden() { if (this.executionCourseIdHidden == null) { String executionCourseId = this.getExecutionCourseID(); this.executionCourseIdHidden = new HtmlInputHidden(); this.executionCourseIdHidden.setValue(executionCourseId); this.executionCourseID = executionCourseId; } return this.executionCourseIdHidden; }
Example #24
Source File: EvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public void setExecutionCourseIdHidden(HtmlInputHidden executionCourseIdHidden) { if (executionCourseIdHidden != null) { this.executionCourseID = executionCourseIdHidden.getValue().toString(); /* * HACK: it's necessary set the executionCourseID for struts menu */ setRequestAttribute("executionCourseID", executionCourseIdHidden.getValue()); } this.executionCourseIdHidden = executionCourseIdHidden; }
Example #25
Source File: EvaluationManagementMenuBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getExecutionCourseIdHidden() { if (this.executionCourseIdHidden == null) { Integer executionCourseId = this.getExecutionCourseID(); this.executionCourseIdHidden = new HtmlInputHidden(); this.executionCourseIdHidden.setValue(executionCourseId); } return this.executionCourseIdHidden; }
Example #26
Source File: EvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getEvaluationIdHidden() { if (this.evaluationIdHidden == null) { String evaluationId = this.getEvaluationID(); this.evaluationIdHidden = new HtmlInputHidden(); this.evaluationIdHidden.setValue(evaluationId); } return this.evaluationIdHidden; }
Example #27
Source File: EvaluationManagementBackingBean.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public void setEvaluationIdHidden(HtmlInputHidden evaluationIdHidden) { if (evaluationIdHidden != null && evaluationIdHidden.getValue() != null && !evaluationIdHidden.getValue().toString().equals("")) { this.evaluationID = evaluationIdHidden.getValue().toString(); } this.evaluationIdHidden = evaluationIdHidden; }
Example #28
Source File: ManageSubscriptionCtrlTest.java From development with Apache License 2.0 | 5 votes |
private ValueChangeEvent initChangeOwnerEvent(String userId) { ValueChangeEvent event = mock(ValueChangeEvent.class); when(event.getNewValue()).thenReturn("true"); HtmlSelectOneRadio radio = mock(HtmlSelectOneRadio.class); when(event.getComponent()).thenReturn(radio); when(radio.getSubmittedValue()).thenReturn("true"); HtmlInputHidden input = mock(HtmlInputHidden.class); when(input.getValue()).thenReturn(userId); when(input.getRendererType()).thenReturn("javax.faces.Hidden"); List<UIComponent> componentList = new ArrayList<>(); componentList.add(input); when(radio.getChildren()).thenReturn(componentList); return event; }
Example #29
Source File: ManageEvaluationsForStudent.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
public HtmlInputHidden getEvaluationTypeHidden() { if (this.evaluationTypeHidden == null) { this.evaluationTypeHidden = new HtmlInputHidden(); this.evaluationTypeHidden.setValue(getEvaluationType()); } return this.evaluationTypeHidden; }
Example #30
Source File: SubscriptionUnitCtrlTest.java From development with Apache License 2.0 | 5 votes |
private ValueChangeEvent initChangeSelectedUnitEvent(Long unitId) { ValueChangeEvent event = mock(ValueChangeEvent.class); when(event.getNewValue()).thenReturn("true"); HtmlSelectOneRadio radio = mock(HtmlSelectOneRadio.class); when(event.getComponent()).thenReturn(radio); when(radio.getSubmittedValue()).thenReturn("true"); HtmlInputHidden input = mock(HtmlInputHidden.class); when(input.getValue()).thenReturn(unitId); when(input.getRendererType()).thenReturn("javax.faces.Hidden"); List<UIComponent> componentList = new ArrayList<UIComponent>(); componentList.add(input); when(radio.getChildren()).thenReturn(componentList); return event; }