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

        Tyler Johnson created issue -
        Tyler Johnson made changes -
        Field Original Value New Value
        Salesforce Case [5007000000GvXwm]
        Tyler Johnson made changes -
        Attachment sc10171.war [ 13274 ]
        Hide
        Tyler Johnson added a comment -

        Sample application attached

        Show
        Tyler Johnson added a comment - Sample application attached
        Ken Fyten made changes -
        Fix Version/s 2.1 [ 10241 ]
        Assignee Priority P3
        Assignee Mircea Toma [ mircea.toma ]
        Ken Fyten made changes -
        Assignee Priority P3 P2
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24874 Thu Jun 23 06:02:25 MDT 2011 mircea.toma ICE-6916 Detect when a 'html' element update is received and extracts the title content from update to set the document.title property.
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/javascript/fixjsf.js
        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.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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.
        Ken Fyten made changes -
        Fix Version/s 2.1-Beta [ 10291 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: