3 Replies Latest reply on Dec 18, 2007 12:41 PM by alllle

    Couple of basic questions to help understand Seam

    alllle

      I just started using Seam. With the great potential it offers, I do run into some problems, partly due to my specific configuration, and partly due to that I missing some basic understanding of its concept.

      Here are some questions I have and any help is appreciated:

      1. How to use, and what is the purpose of defining a scope in the component class?
      When using a component as an attribute of the Action component in webapp, the attribute component will either be given an explicit scope, or it will be the same as the scope of the Action component. These overwrites the scope defined for the component, doesn't it? If so, what do I need to consider when defining the default scope of the component?

      2. Action specified in pages.xml for the page is not invoked?
      In pages.xml I specified:

      <page view-id="/firstpage.xhtml" action="actionComponent.begin">
       <description>Create new Itemdescription>
       ....
      [/page]
      

      I assumes that the actionComponent.begin() method will be invoked before the page is rendered. However, it's not the case. It was never invoked. What did I do wrong?