2 Replies Latest reply on Mar 24, 2007 7:31 PM by tony.herstell1

    Vanishing component....

    tony.herstell1

      This gets "actioned":

      
       <s:button value="#{messages.button_add_image}"
       action="#{uploadController.startUpload(the_user)}" rendered="#{the_user.picture == null}"/>
      
      


      which triggers this (from debugger):
      pages/organisation/organisationFind.xhtml:uploadController.startUpload(the_organisation)

      but the uploadController component is now not found...

      but does exist...

      
       /*
       InterceptionType.NEVER obviously has the side effect of preventing @Injection
       but it also prevents IllegalStateExceptions due to Seam not being initialized
       during requests to this bean from the current implementation of the FileUploadManager. As the
       FileUploadServlet gets integrated into the normal Servlet mechanism,
       this will go away.
       */
       @Intercept(InterceptionType.NEVER)
       @Stateful // A component stays in existance for the duration of the Scope (conversation in this instance).
       @Name("uploadController") // Name used within SEAM for an instance of this class.
       @Conversational // Scope that this class exists in.
       public class UploadControllerImpl implements UploadController, Serializable {
      
      



      Here it is...

      
       11:02:44,031 INFO [Component] Component: uploadController, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: nz.co.risingstars.actions.upload.UploadControllerImpl, JNDI: risingstars/UploadControllerImpl/local
      
      



      Any suggestions?

      Am using IceFaces 1.6DR#2+Greg Dick fix & Seam 1.2

        • 1. Re: Vanishing component....
          tony.herstell1
          • 2. Re: Vanishing component....
            tony.herstell1

             

            11:29:10,281 ERROR [SeamPhaseListener] uncaught exception
            javax.faces.el.EvaluationException: Cannot get value for expression '#{uploadController}'
             at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402)
             at org.jboss.seam.actionparam.ActionParamBindingHelper.findParamTypes(ActionParamBindingHelper.java:94)
             at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:55)
             at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
             at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:106)
             at org.jboss.seam.core.Pages.callAction(Pages.java:466)
             at org.jboss.seam.core.Pages.enterPage(Pages.java:275)