Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4979

Seam 2.3.0.Beta2 breaks EL resolution in JSF

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 2.3.0.BETA2
    • Fix Version/s: None
    • Component/s: JSF Integration
    • Labels:
    • Environment:

      JBOSS AS 7.1.1. + RichFaces 4.2.2.Final + Seam 2.3.0.Beta2

    • Steps to Reproduce:
      Hide

      Just follow the description.

      Show
      Just follow the description.
    • Workaround Description:
      Hide

      Add brackets to the end of the EL expression

      Show
      Add brackets to the end of the EL expression

      Description

      Accessing the method of a bean without the ending brackets breaks property resolution.

      In Seam 2.3.0.Beta1 the following is valid and works fine. The action attribute of <s:link> tag references test.init without ending brackets.

      <s:link view="/test.xhtml" propagation="none" action="#{test.init}" value="Test" />
      

      The above code does not work in Seam 2.3.0.Beta2. In order to have it working in Beta2, the following must be used:

      <s:link view="/test.xhtml" propagation="none" action="#{test.init()}" value="Test" />
      

      If no brackets are added to the method name, the following is logged to the console:

      Log file
      17:19:43,181 SCHWERWIEGEND [javax.enterprise.resource.webcontainer.jsf.application] (http-localhost-127.0.0.1-8080-1) Error Rendering View[/menu.xhtml]: javax.el.ELException: /menu.xhtml: The class 'com.example.Test_$$_javassist_seam_66' does not have the property 'init'.
      	at com.sun.faces.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:94) [jsf-impl-2.1.7-jbossorg-2.jar:]
      	at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:82) [jsf-impl-2.1.7-jbossorg-2.jar:]
      	at com.sun.faces.facelets.compiler.UILeaf.encodeAll(UILeaf.java:183) [jsf-impl-2.1.7-jbossorg-2.jar:]
      	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ciaccia Andrea Martino
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: