On 12/25/05, Martin Marinschek <[EMAIL PROTECTED]> wrote:
Thanks for finding this bug - I just fixed it... Please try again with
the nightly build of today, or SVN head.
regards,
Martin
On 12/25/05, xzuma <[EMAIL PROTECTED]> wrote:
> 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;
> }
> }
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces

