PM79444: Build converts relative HTML links into absolute ones within a web page following a design-template

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Abstract:
    
    Build converts relative HTML links into absolute ones within a
    web page following a design-template
    
    Problem:
    
    1. Create a new Dynamic Web Project
    2. Open File ? New, Web ? Web Page Template. Choose name
    index.jtpl and option Design-time template
    3. Open the view Palette and drop a Content Area on the editor
    for index.jtpl
    4. Open menu File ? New, Web ? JSP File. Specify name logout.jsp
    5. Add a relative HTML link within index.jtpl to logout.jsp.
    Make sure it is a relative link and does not include the web
    application name
    6. Disable automatic build via Project ? Build Automatically
    7. Open menu File ? New, Web ? Web Page. Specify name mypage.jsp
    and pick template My Templates ? index.jtpl
    
    Expected Result:
    mypage.jsp contains a relative link to logout.jsp
    Actual Result:
    mypage.jsp contains an absolute link to logout.jsp including the
    project
    
    Local fix:
    
    There is no known workaround at this time.
    

Local fix

Problem summary

  • Starting with the 8.0 release,  two new options were introduced
    in regard of how to handle links from design-time templates
    into web pages. Those new preferences are locate in Window >
    Preferences > Web > Page Template > Links for Page, group
    "Default Link path when design-time" template is applied:
    When you apply a design-time template to a Web Page, link
    contributed by template will be made:
    ( ) Relative to document root directory
    ( ) Relative to document directory
    By default "( ) Relative to document root directory" is
    behavior is being applied.
    Either option rework links in web pages from design-time
    templates having
    differences between version 6.x and 7.x versus 8.x.
    For example, from:
    <li><a href="/will/">Will My Credits
    to
    <li><a href="/contextRoot/will/">Will My Credits
    

Problem conclusion

  • This APAR introduces a new option named "The same as template's
    links (unchanged)" located at
    Window > Preferences > Web > Page Template > Links for Page,
    group "Default Link path when design-time" template is applied:
    When you apply a design-time template to a Web Page, link
    contributed by template will be made:
    ( ) Relative to document root directory
    ( ) Relative to document directory
    ( ) The same as template's links (unchanged)
    By selecting "The same as template's links (unchanged)" links
    from design-time
    templates are not modified in web pages.
    The fix for this APAR is included in Rational Application
    Developer v8.0.4.3.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM79444

  • Reported component name

    RATL BUS DEV

  • Reported component ID

    5724S5000

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-12-18

  • Closed date

    2013-10-29

  • Last modified date

    2013-10-29

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL APP DEV WI

  • Fixed component ID

    5724J1901

Applicable component levels

  • R855 PSY

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational Application Developer for WebSphere Software

Software version:

8.5

Reference #:

PM79444

Modified date:

2013-10-29

Translate my page

Machine Translation

Content navigation