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); }
@In private String dealerId; public String someAction() { System.out.println("dealerId=" + dealerId); return "home"; }
Ignore this, the dvdstore example shows that you can inject/outject any Object.
The example outjects the orderId into the conversation for use elsewhere.