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

Support for EL without reflection for better JSF performance

    Details

      Description

      Support for EL without reflection for better JSF performance.

      The idea is to add a new tag to declare types of the variables used on a page and use this type information
      to compile EL expressions into byte-code during initialization (deployment)

      Ex:
      If the page contains at the beginning

      <s:typedef var="myBean" class="com.company.package.Bean" />

      then all EL expressions can be compiled into bytecode at initialization time (and no reflection will be used for myBean access.

      <h:outputText value="#

      {myBean.subBean.property}

      " rendered="#

      {myBean.renderText}

      " />

      Some examples of implementation of compiled EL can be found here

      http://sixlegs.com/blog/java/compiled-el.html

      This should help much with JSF performance issues

      Thanks

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  mgrouch mgrouch (Inactive)
                • Votes:
                  10 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: