ICEfaces
  1. ICEfaces
  2. ICE-6916

Add ability to update <title> element in <head> tag

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.1-Beta, 3.0
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      -
    • Assignee Priority:
      P2

      Description

      It appears as though the JSF 2.0 bridge does not support title updates via Ajax. The title value binding getter is called but there is no update in the browser. I have also tried using ?faces-redirect=true in order to cause a full page refresh but still no update. This might be a nice to have feature.

        Activity

        Hide
        Tyler Johnson added a comment -

        Sample application attached

        Show
        Tyler Johnson added a comment - Sample application attached
        Hide
        Mircea Toma added a comment -

        The applied fix detects when a 'html' element update is received and it extracts the title content from update to set the document.title property. The fix does not handle the 'head' only DOM update because the JSF bridge throws an error saying that it cannot handle the update. Also the resulting 'head' updates are discarded on the server to avoid compromising the rest of the updates when applied by the bridge.

        Show
        Mircea Toma added a comment - The applied fix detects when a 'html' element update is received and it extracts the title content from update to set the document.title property. The fix does not handle the 'head' only DOM update because the JSF bridge throws an error saying that it cannot handle the update. Also the resulting 'head' updates are discarded on the server to avoid compromising the rest of the updates when applied by the bridge.
        Hide
        Mircea Toma added a comment -

        To make the updating of the title work reliably the 'title' tag needs to have an 'id' attribute assigned. This way the update will target only the 'title' element which is handled properly by JSF on the client side.

        Show
        Mircea Toma added a comment - To make the updating of the title work reliably the 'title' tag needs to have an 'id' attribute assigned. This way the update will target only the 'title' element which is handled properly by JSF on the client side.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Tyler Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: