8 Replies Latest reply on Mar 31, 2011 3:57 PM by anil guru

    Creating a simple Action not working

    Mike Kuul Newbie

      Hi everybody.


      I created this action with the seam eclipse plugin:


      import javax.ejb.Stateless;
      import org.jboss.seam.annotations.Name;
      import org.jboss.seam.annotations.In;
      import org.jboss.seam.annotations.Logger;
      import org.jboss.seam.log.Log;
      import org.jboss.seam.faces.FacesMessages;
      
      @Stateless
      @Name("helloWorld")
      public class HelloWorldAction implements HelloWorld {
              
          @Logger private Log log;
              
          @In FacesMessages facesMessages;
          public String getOutputText()
          {
              return "HelloWorld!";
          }
      }
      


      The plugin also created this interface:


      import javax.ejb.Local;
      
      @Local
      public interface HelloWorld {  
          
              //seam-gen method
              public String getOutputText();  
      }



      Finally the plugin also created a page for me but I changed it to this:


      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                                   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                      xmlns:s="http://jboss.com/products/seam/taglib"
                      xmlns:ui="http://java.sun.com/jsf/facelets"
                      xmlns:f="http://java.sun.com/jsf/core"
                      xmlns:h="http://java.sun.com/jsf/html"
                      xmlns:rich="http://richfaces.org/rich"
                      xmlns:a="http://richfaces.org/a4j">
      
      <f:view>
              <h:outputText value="#{helloWorld.outputText}"/>
      </f:view>
      
      </ui:composition>
      



      But instead of a simple HelloWorld output I get this message:


      javax.el.PropertyNotFoundException: /helloWorld.xhtml @12,50 value="#{helloWorld.outputText}": Property 'outputText' not found on type org.javassist.tmp.java.lang.Object_$$_javassist_1



      Did I forget something?
      I'm happy about every single hint.


      Mike