ICEmobile
  1. ICEmobile
  2. MOBI-626

Investigate FacesContext for JSF and JSP components/tags

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.2 Final
    • Fix Version/s: 1.3 Beta
    • Component/s: Faces, Spring
    • Labels:
      None
    • Environment:
      ICEmobile JSF and JSP

      Description

      ICEmobile makes use of both JSP tags and JSF components. For efficient development, it is important to re-use code between these as much as possible, but it is also important to benefit from simplifications in each of these environments (for instance, developing an ICEmobile component should be no more difficult than developing a typical JSF component).

      It appears that the JSF API would provide a useful abstraction layer even in the JSP case. Originally, the goal was to develop a pure JSP codebase that did not depend on JSF, but the requirement to support JSF will always exist for ICEmobile.

      For instance, FacesContext and ResponseWriter could both be used by JSP tags if the FacesContext was initialized by a Servlet Filter. Certain JSF abstractions such as EL specifics and lifecycle Phase would simply be avoided.

      The main drawback would be the requirement to include javax.faces.jar in the web application, but this situation would already occur for a combined JSF/JSP application.

        Activity

        Ted Goddard created issue -
        Ted Goddard made changes -
        Field Original Value New Value
        Assignee Steve Maryka [ steve.maryka ] Ted Goddard [ ted.goddard ]
        Ted Goddard made changes -
        Fix Version/s 1.3 Beta [ 10373 ]
        Ted Goddard made changes -
        Attachment FakeFacesFilter.java [ 15419 ]
        Hide
        Ted Goddard added a comment -

        The FakeFacesFilter was used in both JSF and JSP applications. In the case of JSF, the FacesServlet replaced the stubbed out FakeFacesContext with the actual FacesContext used by JSF. In the case of JSP, the FakeFacesContext was accessible from the bean via FacesContext.getCurrentInstance().

        Show
        Ted Goddard added a comment - The FakeFacesFilter was used in both JSF and JSP applications. In the case of JSF, the FacesServlet replaced the stubbed out FakeFacesContext with the actual FacesContext used by JSF. In the case of JSP, the FakeFacesContext was accessible from the bean via FacesContext.getCurrentInstance().
        Hide
        Ted Goddard added a comment -

        Approach does not seem valid.

        Show
        Ted Goddard added a comment - Approach does not seem valid.
        Ted Goddard made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: