Yes, I can fill JIRA issue because ValueBindingImpl.isReadOnly  catch
Exception and return true, but should throw EvaluationException or
PropertyNotFoundException. Or not?  
http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/el/ValueBinding.html#isReadOnly(javax.faces.context.FacesContext)

How it is solved in RI?

Btw. that method in myfaces contains comment:
// Cannot determine read-only, return true
// (todo: is this what the spec requires,
// MYFACES-686 suggests using true due to problems with alias bean?)
return true;



I've fixed it localy but there is still a issue with trinidad I think. I
will investigate it and post results.

Martin

Matthias Wessendorf píše v Čt 28. 09. 2006 v 19:29 +0200:
> Martin,
> can you do that?
> 
> On 9/28/06, Adam Winer <[EMAIL PROTECTED]> wrote:
> > On 9/28/06, Martin Koci <[EMAIL PROTECTED]> wrote:
> > >
> > > Hello,
> > >
> > > as http://issues.apache.org/jira/browse/ADFFACES-151 is fixed I found
> > > that problem in SimpleInputTextRenderer. Is there a one right place
> > > where solve that?
> > >
> > >
> > > Other very strange bug is in EditableValueRenderer.getReadOnly:
> > >
> > > ValueBinding vb = getValueBinding(bean);
> > >
> > > if ((vb != null) && vb.isReadOnly(context))
> > >     {
> > >        return true;
> > >     }
> > >
> > > It returns true even if valueBinding cannot be resolved! It's probably a
> > > bug in myfaces 1.1.4 - vb.isReadOnly returns true for all properties
> > > that cannot be resolved.
> > >
> > > I solved that problem with changing 'if' to:
> > >
> > > if ((vb != null) && vb.getValue(context) != null  &&
> > > vb.isReadOnly(context))
> >
> >
> >
> > -1 to that;  if there's a 1.1.4 bug, it should get filed...
> >
> > -- Adam
> >
> >
> 
> 

Reply via email to