Hello,
After switching from RI to MyFaces and making no changes to the code, I get a ClassCast exception in the line (return (String)vb.getValue(facesContext);) of the javax.faces.webapp.AttributeTag class  getValue method. This is happening upon binding a long attribute of the backing bean to jsp page and the ClassCast exception is thrown when a java.lang.Long is casted into java.lang.String.

Since this was working in RI, it seems to be a MyFaces bug. I would appreciate any inputs on how to deal with this.

Thanks.
-----------------
 private String getValue()
    {
        if (UIComponentTag.isValueReference(_value))
        {
            FacesContext facesContext = FacesContext.getCurrentInstance();
            ValueBinding vb = facesContext.getApplication().createValueBinding(_value);
            return (String)vb.getValue(facesContext);
        }
        else
        {
            return _value;
        }
    }

Reply via email to