1 Reply Latest reply on Oct 14, 2005 12:15 PM by jameswoodward

    Bijection

      Am I correct in thinking that the @In and @Out annotations will only inject/outject named seam components?

      e.g. I cannot use @In to inject a String variable (placed into the session by an external servlet) into a Seam Component instance variable.

      Servlet

      protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      
       // Lookup dealerId
       String dealerId = request.getParameter("dealerId");
      
       // Store dealerId in session
       HttpSession session = request.getSession(true);
       session.setAttribute("dealerId", dealerId);
      
       // Forward request
       RequestDispatcher rd = request.getRequestDispatcher("/index.jsf");
       rd.forward(request, response);
       }
      


      Seam Component
      @In
       private String dealerId;
      
       public String someAction() {
       System.out.println("dealerId=" + dealerId);
       return "home";
       }