Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-508

x:inputHtml 'type' is not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.1
    • 1.1.1
    • None
    • None
    • Nightly build of myfaces-20050903

    Description

      t:inputHtml is not working when trying to set 'type' so that it handles the whole HTML document (not fragment)

      Tld tolds:

      <t:inputHtml value="String"
      style="CSSClass"
      fallback="

      {true|false}

      "
      type="Constant"
      ...
      type - The type of the value. It can be either fragment for an HTML fragment (default) or document for a full HTML document, with head, title, body, ... tags.
      ...

      When trying to set 'type' to 'document' or 'fragment' (or 'true' or 'false') myfaces throws exception:
      'Could not set property type of component HTMLeditor'

      If I understood correctly the 'type' is first handled as boolean but later as string...

      InputHtmlTag:
      protected void setProperties(UIComponent component) {
      super.setProperties(component);
      setStringProperty(component, "style", style);
      setStringProperty(component, "styleClass", styleClass);
      setStringProperty(component, "fallback", fallback);
      setBooleanProperty(component, "type", type);
      ...

      InputHtml.java:
      public String getType()

      { if (_type != null) return _type; ValueBinding vb = getValueBinding("type"); return vb != null ? (String)vb.getValue(getFacesContext()) : "fragment"; }

      Attachments

        Activity

          People

            Unassigned Unassigned
            vli Vesa Lindfors
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: