Title: Message
Hi,
I also noticed this issue. Impossible to specify any value for the "type" propertie.
 
Clément.
-----Message d'origine-----
De : Vesa Lindfors [mailto:[EMAIL PROTECTED]
Envoyé : lundi 5 septembre 2005 11:17
À : [email protected]
Objet : x:inputHtml question

Hi,
I have tried to get t:inputHtml working (with latest nightly build) so that it would handle the whole HTML document, not just fragment of it.

From tld I found the 'type' :
<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 it to document or fragment (or true or false) I got exception:
'Could not set property type of component HTMLeditor'

I took a short look to code, and if I understood correctly it the 'type' is first handled as boolean but later as string...

In 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);


In InputHtml.java:

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



Is that the problem?
--- VLi ---







Reply via email to