1 2 Previous Next 21 Replies Latest reply on Nov 24, 2008 1:34 PM by etirk Go to original post
      • 15. Re: Property 'statusMessages' not found on type org.jboss.seam.Namespace
        pmuir

        You cannot use binding with conversation scoped components, this is well documented.

        • 16. Re: Property 'statusMessages' not found on type org.jboss.seam.Namespace
          blabno

          I missed that : In a web archive (WAR) file, you must place a seam.properties file in the WEB-INF/classes directory if you have any Seam components included here.

          • 17. Re: Property 'statusMessages' not found on type org.jboss.seam.Namespace
            nimo22

            Hey Bernard,
            I do not have a seam.properties-file in my WAR, I have one in my JAR. I have uses the seam-gen to setup my EJB-Project. Do I need to insert the seam.properties-file in my WAR-File?



            Hey Pete,
            I do not use binding anymore in my conversation scoped components. Even there is a workaround for that (Inject a event scope component into an conversation scoped component. Docu 7.10. Conversational components and JSF component bindings).


            However, my problem is, I cannot use this in a class-File stored in my WAR-Archive:


            @In private FacesMessages facesMessages;



            I get this error:



            Caused by: javax.el.PropertyNotFoundException: Property 'statusMessages' not found on type org.jboss.seam.Namespace
                 at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:193)



            Do I need to put the seam.properties-File in the WEB-INF/classes-directory of my WAR-Archive? Is this the problem? I have a EJB-Project setup by seam-gen and have a seam.properties in the root of my JAR-File.





            • 18. Re: Property 'statusMessages' not found on type org.jboss.seam.Namespace
              blabno

              If you do not put seam.properties into WEB-INF/classes then Seam should not create view component. I don't know how the hell is your EL #{view.show} resolved since you don't have such method and Seam should not create such component. Maybe you have view component in your EJB module ?

              • 19. Re: Property 'statusMessages' not found on type org.jboss.seam.Namespace
                nimo22

                Hello,


                now I am using SEAM 2.1 beta and I can use the @In private FacesMessages facesMessages; without failures. Thanks.


                But another question:


                Do I need to put the seam.properties-File in the WEB-INF/classes-directory of my WAR-Archive? I have a EJB-Project setup by seam-gen and have a seam.properties in the root of my JAR-File.

                • 20. Re: Property 'statusMessages' not found on type org.jboss.seam.Namespace
                  blabno

                  I have also EAR project with EJB and Web modules. If I want to have component in Web module then I must put seam.properties in WEB-INF/classes. Elsewhere I cannot resolve such component.

                  • 21. Re: Property 'statusMessages' not found on type org.jboss.seam.Namespace
                    etirk

                    Exactly this error is thrown from our application when one tries to perform dual triggering of a state change using pageflow.
                    A page has 2 transitions, back and forward. If one first clicks forward, and immideatly before the browser has been redirected, clicks the other commandLink with the back-transition, the exception is thrown.
                    It originates from our authenticator-component, which also has facesMessages configured.
                    Removing the facesMessages from the component also removes the exception from being thrown.
                    The cannot-read-values-from-javassist-errors has been showing up throughout the application lately and they were most oftenly originating from the Authenticator component.
                    Something wrong with facesMessages?


                    /K

                    1 2 Previous Next