3 Replies Latest reply on Jul 15, 2008 9:16 PM by bashan

    Component Binding

    bashan

      I am getting this exception when using component binding:


      javax.el.PropertyNotFoundException: /signup.xhtml @101,100 binding="#{signup.htmlSelectOneMenuMonth}": Target Unreachable, identifier 'signup' resolved to null
           com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:95)
           com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:244)
           com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)
           com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)
           com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:193)
           com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
           com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
           org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
           org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
           org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
           org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      



      The signup bean exist and when removing the binding prperty everything is working fine.
      Does Seam have problem working with component binding?


      Thanks,
      Guy.

        • 1. Re: Component Binding
          diegocoronel

          I got similar problem and i was able to make it work using outjection and injection

          • 2. Re: Component Binding
            mail.micke

            6.8. Conversational components and JSF component bindings


            But like the other poster said it can be made to work by usin in/ou/bi-jection.

            • 3. Re: Component Binding
              bashan

              Thanks,
              How the outjection and injection are working in this case?


              After reading the link posted I was wondering: Is is possible to use Seam with Validators?
              The only reason (as far as I remember) that I use component binding is for validators. For example, I want to validate component value with one or more components. I know I can do this kind of validation in the action itself, after the values are applied to the model, but then, the validation error will not appear with the rest of the validations (for example requied validation in some other field).