ajax4jsf
  1. ajax4jsf
  2. AJAX4JSF-34

a4j-1.0.5, Seam-1.1.0.GA and a4j:commandLink EvaluationException

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      34

      Description

      With an a4j:commandLink with an action (or actionListener) whose instance the
      value binding method resolves to is a Seam @Factory object you get the following
      error:

      Caused by: javax.faces.el.EvaluationException: /WEB-INF/tags/simpleTag.xhtml
      @35,28 action="#

      {myExpandBean.expand}

      ": Target Unreachable,
      identifier 'myExpandBean' resolved to null
      at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
      at
      org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)

      (This is even though 'myExpandBean' has been instantiated and placed in
      Conversation scope).

      In the above case 'myExpandBean' is defined thus:

      public class ExpandBean {

      @Factory("myExpandBean", scope = ScopeType=CONVERSATION)
      public ExpandBean getMyExpandBean()

      { return new ExpandBean(); }

      public void expand()

      { .. }
      }

      If, however, you define 'myExpandBean' as in the following, all works ok:

      @Name("myExpandBean")
      @Scope(ScopeType.CONVERSATION)
      public class ExpandBean {
      public void expand() { .. }

      }

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            ajax4jsf-issues
            Reporter:
            seanradford
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: