webtier@glassfish.java.net

Re: [webtier] Re: JSF 2.0 composite components with method-valued attributes

From: <webtier_at_javadesktop.org>
Date: Thu, 19 Feb 2009 14:08:48 PST

Ok, I picked that up, works fine, I'll try to check it with my whole application.
One funny thing:
<ez:wrapper>
            <ez:nav act="#{navigation.goNav2}"/>
</ez:wrapper>
works but
<ez:wrapper>
<!-- <ez:nav act="#{navigation.goNav2}"/> -->
</ez:wrapper>
does not - I get a javax.el.PropertyNotFoundException: The class 'ezcomp.NavigationHandler' does not have the property 'goNav2'.

Probably that's expected, because it tries to render comment text.
I've seen in your samples that you escape such cases by ommiting
'#'. Am I right that this worked (?) yesturday because of the bugs?

Well, I am not sure whether it's worth starting to discuss whether expressions in comments should be rendered.. Probably, that's the only way to generate a complicated comment. But I guess using the expression inside a xml comment
is the only example of a thing not achievable by h:outputText...

Sorry,you can ignore this for now, I'm sure you have a lot of more important things to do.

javax.el.PropertyNotFoundException: The class 'ezcomp.NavigationHandler' does not have the property 'goNav2'.
        at javax.el.BeanELResolver.getBeanProperty(BeanELResolver.java:579)
        at javax.el.BeanELResolver.getValue(BeanELResolver.java:281)
        at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
        at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
        at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
        at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)
        at com.sun.faces.facelets.el.ELText$ELTextVariable.toString(ELText.java:211)
        at com.sun.faces.facelets.el.ELText$ELTextComposite.toString(ELText.java:152)
        at com.sun.faces.facelets.compiler.CommentInstruction.write(CommentInstruction.java:72)
        at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:76)
        at com.sun.faces.facelets.compiler.UILeaf.encodeAll(UILeaf.java:186)
        at com.sun.faces.renderkit.html_basic.UsingPageChildrenRenderer.encodeChildren(UsingPageChildrenRenderer.java:71)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849)
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)
        at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:106)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1502)
        at com.sun.faces.renderkit.html_basic.CompositeRenderer.encodeChildren(CompositeRenderer.java:66)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1502)
        at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1502)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1505)
        at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:225)
        at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:156)
        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:97)
[Message sent by forum member 'nzinoviev' (nzinoviev)]

http://forums.java.net/jive/thread.jspa?messageID=333006