MyFaces CODI
  1. MyFaces CODI
  2. EXTCDI-241

Allow users of the ClientSideWindowHandler to specify if it should get applied per Request

    Details

      Description

      The ClientSideWindowHandler currently 'intercepts' page requests and renders an intermediate html output in any case.

      We should extend the ClientConfig to determine if the current request should get handled via the ClientSideWindowHandler.
      That way it would be possible for a project to enable the windowId mechanism only for certain userAgents or disable it for download pages like e.g. an iCal download.
      One of the scenarios would e.g. be to disable this handling for various crawling bots (They currently only get the intermediate page which always contains the same content).

        Activity

        Hide
        Mark Struberg added a comment -

        resolved by introducing
        public boolean ClientConfig#isClientSideWindowHandlerRequest(FacesContext facesContext)

        by default UserAgents containing the following strings will create direct requests (by returning false):

        • "bot"
        • "Bot"
        • "Slurp"
        • "Crawler"

        User can @Specializes this class to provide other/enhanced rules.

        Show
        Mark Struberg added a comment - resolved by introducing public boolean ClientConfig#isClientSideWindowHandlerRequest(FacesContext facesContext) by default UserAgents containing the following strings will create direct requests (by returning false): "bot" "Bot" "Slurp" "Crawler" User can @Specializes this class to provide other/enhanced rules.

          People

          • Assignee:
            Mark Struberg
            Reporter:
            Mark Struberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development