Examples of HtmlInputHidden


Examples of javax.faces.component.html.HtmlInputHidden

        inputComponent = new HtmlInputText();
        inputComponent.setParent(form);
        form.getChildren().add(inputComponent);

        inputHidden = new HtmlInputHidden();
        inputHidden.setParent(form);
        form.getChildren().add(inputHidden);

        bean = new DataBean();
        facesContext.getExternalContext().getRequestMap().put("testBean", bean);
View Full Code Here

Examples of javax.faces.component.html.HtmlInputHidden

{
  if (!(component instanceof HtmlInputHidden))
  {
    throw new IllegalArgumentException("Component " + component.getClass().getName() + " is no HtmlInputHidden");
  }
  HtmlInputHidden comp = (HtmlInputHidden)component;

  super.setProperties(component);

  if (_validatorMessage != null)
  {
    comp.setValueExpression("validatorMessage", _validatorMessage);
  }
  if (_validator != null)
  {
    comp.addValidator(new MethodExpressionValidator(_validator));
  }
  if (_requiredMessage != null)
  {
    comp.setValueExpression("requiredMessage", _requiredMessage);
  }
  if (_converterMessage != null)
  {
    comp.setValueExpression("converterMessage", _converterMessage);
  }
  if (_value != null)
  {
    comp.setValueExpression("value", _value);
  }
  if (_valueChangeListener != null)
  {
    comp.addValueChangeListener(new MethodExpressionValueChangeListener(_valueChangeListener));
  }
  if (_immediate != null)
  {
    comp.setValueExpression("immediate", _immediate);
  }
  if (_converter != null)
  {
    if (!_converter.isLiteralText())
    {
      comp.setValueExpression("converter", _converter);
    }
    else
    {
      String s = _converter.getExpressionString();
      if (s != null)
      {
        Converter converter = getFacesContext().getApplication().
          createConverter(s);
        comp.setConverter(converter);
      }
    }
  }
  if (_required != null)
  {
    comp.setValueExpression("required", _required);
  }
}
View Full Code Here

Examples of javax.faces.component.html.HtmlInputHidden

    }

    public static String getConversationId()
    {
        UIViewRoot viewRoot = JSFUtil.getViewRoot();
        HtmlInputHidden conversationId = (HtmlInputHidden) viewRoot.findComponent("javax_webbeans_ConversationId");

        if (conversationId != null)
        {
            return conversationId.getValue().toString();
        }

        return null;
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlInputHidden

  private ValidationError validateHiddens(FacesContext context, UIComponent component) {

    for (UIComponent uicomponent : component.getChildren()) {
      if (uicomponent instanceof HtmlInputHidden) {

        HtmlInputHidden hidden = (HtmlInputHidden) uicomponent;
        ValidationError error = this.htmlInputHiddenValidator.validate(context, hidden);
        if (error != null) {
          return error;
        }
      } else {
View Full Code Here

Examples of javax.faces.component.html.HtmlInputHidden

    public HtmlInputHidden getExecutionCourseIdHidden() {
        if (this.executionCourseIdHidden == null) {
            Integer executionCourseId = this.getExecutionCourseID();

            this.executionCourseIdHidden = new HtmlInputHidden();
            this.executionCourseIdHidden.setValue(executionCourseId);
        }
        return this.executionCourseIdHidden;
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlInputHidden

        this.academicInterval = academicInterval;
    }

    public HtmlInputHidden getAcademicIntervalHidden() {
        if (this.academicIntervalHidden == null) {
            this.academicIntervalHidden = new HtmlInputHidden();
            this.academicIntervalHidden.setValue(this.getAcademicInterval());
        }
        return academicIntervalHidden;
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlInputHidden

        return executionDegreeID;
    }

    public void setExecutionDegreeID(String executionDegreeID) {
        if (executionDegreeID != null) {
            this.executionDegreeIdHidden = new HtmlInputHidden();
            this.executionDegreeIdHidden.setValue(executionDegreeID);
        }
        this.executionDegreeID = executionDegreeID;
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlInputHidden

        this.executionDegreeID = executionDegreeID;
    }

    public HtmlInputHidden getExecutionDegreeIdHidden() {
        if (this.executionDegreeIdHidden == null) {
            this.executionDegreeIdHidden = new HtmlInputHidden();
            this.executionDegreeIdHidden.setValue(this.getExecutionDegreeID());
        }
        return executionDegreeIdHidden;
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlInputHidden

        return calendarPeriod;
    }

    public void setCurricularYearID(Integer curricularYearID) {
        if (curricularYearID != null) {
            this.curricularYearIdHidden = new HtmlInputHidden();
            this.curricularYearIdHidden.setValue(curricularYearID);
        }
        this.curricularYearID = curricularYearID;
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlInputHidden

        this.curricularYearID = curricularYearID;
    }

    public void setCalendarPeriod(Integer calendarPeriod) {
        if (calendarPeriod != null) {
            this.calendarPeriodHidden = new HtmlInputHidden();
            this.calendarPeriodHidden.setValue(calendarPeriod);
        }
        this.calendarPeriod = calendarPeriod;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.