1 Reply Latest reply on Apr 11, 2007 10:02 AM by pmuir

    Dot notation to "name" @Name / @Factory components

      Two hopefully easy questions:

      For our components managed by Seam we use a naming scheme similar to package naming. For example,

      @Name("com.domain.blah.blah")

      In our xhtml (facelets) we used to (Seam 1.0) have to use a $ in place of the dot to access these components. We are in the process of upgrading to 1.2 and it looks like we no longer have to do the substitution. Just wanted to confirm that this is true and we aren't doing something by mistake.

      Second, For our factory components we also have a namespace. For example:

      @Out(value="com.domain.blah.attribute)
      private String someVariable

      @Factory(avlue-"com.damain.blah.attribute")
      public void someMethod(){
      someVariable = "initialized";
      }

      Is it possible to use dot to name Outjected/Factory variables.

      We couldn't figure out how to do it (and the $ substitution does not work). So we ended up replacing the dots with underscore in all three places (Out/Factory/xhtml).

      Thanks,
      Chris....

        • 1. Re: Dot notation to
          pmuir

           

          "chane" wrote:
          In our xhtml (facelets) we used to (Seam 1.0) have to use a $ in place of the dot to access these components. We are in the process of upgrading to 1.2 and it looks like we no longer have to do the substitution. Just wanted to confirm that this is true and we aren't doing something by mistake.


          The manual uses . rather than $ so it should be fine http://docs.jboss.com/seam/1.2.1.GA/reference/en/html/concepts.html#d0e2797


          Is it possible to use dot to name Outjected/Factory variables.


          I think it should be, so file a bug if this isn't working