0 Replies Latest reply on Jul 25, 2011 3:32 AM by vata2999

    Seam Component instance in view

    vata2999

      Hi,




      projectname.ear


      --lib


      --projectname.jar


      --projectname.war


      ---WEB-INF/classes


      --jboss-seam.jar


      in order to seam gen project structure, all seam components are in ${projectname}.jar but sometimes u need to create a component in view to use UI component in your bean.


      they are in ${war.dir}/WEB-INF/classes


      after i create a simple seam component and put it in ${war.dir}/WEB-INF/classes i've got this exception




      Exception during request processing:
      Caused by javax.servlet.ServletException with message: "#{mclass.test()}: 
      javax.el.PropertyNotFoundException: /test.xhtml @19,65 action="#{mclass.test()}": 
      Target Unreachable, identifier 'mclass' resolved to null" 



      test.xhtml




      <h:commandButton action="#{mclass.test()}" value="Submit" />





      but everything works fine when my components are in jar ...


      how can i create and access seam component in ui layer ?


      thanks in advanced