5 Replies Latest reply on May 14, 2008 11:25 PM by ashvini

    Problems begining with seam

    ashvini

      I have been able to successfully configure seam and deploy a sample application.
      I have made a jsf page with datatable and i am fetching data via stateless session bean , entity bean.
      Have defined everything as per corejsf example of addressbook.
      when i acess the jsf page, it shows me only the column names without any data.
      How is bean injected??
      My components.xml contains the jndi name of the statless ejb.
      On the console, it does not show any thing after the server startup statement.
      I am using jsf 1.1, ejb 3.0 with hibernate plugins and seam 2.01.
      I am stuck at this point, any help will be appreciated.
      Thanks in advance

        • 1. Re: Problems begining with seam
          joe

          May be an issue with the query returning an empty set.  Does the table render if you do the following


          rendered="#{not empty addressBook.resultList}



          If not, then most likely your query is returning an empty list.  Confirm your ejbql returns results and then it should work.

          • 2. Re: Problems begining with seam
            ashvini

            thanks for the prompt reply.
            Actually the control does not go into the method which is fetching the list, i wrote some println before and after the createQuery method, but its printing neither.
            The query is working fine as this code was working before without seam.
            hencei feel there is some other configuration which i am probably missing out.
            Any suggesstions on this.


            Thanks once again

            • 3. Re: Problems begining with seam
              joe

              Okay, where is your list being created?  Is the backing SLSB properly annotated with @Name?  If so, then how are you calling it from the JSF page?  I've found @DataModel to be a helpful seam tool for populating JSF tables.  Check out the seam documentation for details.  I hope this helps...

              • 4. Re: Problems begining with seam
                ashvini

                My list is getting created in SLSB and is properly annotated.
                Also i am using a @DataModel and @factory to display the same.
                Thanks a lot for your help.

                • 5. Re: Problems begining with seam
                  ashvini

                  instead of printing a datalist, i have made an input paramter and i am just checking if i am able to read the input in SLSB.
                  I am getting following error
                  org.apache.jasper.el.JspPropertyNotFoundException
                  Target unreacheble, indentifier manualTag resolved to null.


                  manualTag is @name for the entity bean ManualTag.


                  Why is the entity bean resolved to null??
                  can someone please point out why this could be??