PM95193: 'Link - Request' on the Faces Custom Component might generate code with compilation errors

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Abstract:
    
    Attempts to drop a 'Link - Request' on a Faces Custom Component
    and then configuring an action for it may result in generated
    code that contains compilation error.
    
    Problem:
    
    When you create a Faces Custom Component and drop a 'Link -
    Request' from the Enhanced Faces Component palette drawer, then
    subsequently add an action to the 'Link - Request' and save the
    Faces Custom Component, you may observe the generated code for
    the custom component has a compilation error flagged against the
    initialization code for the request link.
    
    Steps to reproduce:
    --------------------
    1) Create a Faces 1.x Component Library Project, accepting
    defaults
    2) Create a Faces Custom Component in the library project
    created above
    3) Drop an 'Link - Request' from the Faces Custom Component
    palette drawer onto the custom component page
    4) Select the request link and from the Properties view, select
    or code a new action for the request link
    5) Save the custom component
    
    Expected results:
    Custom component code generated for the link request action
    without compilation errors.
    
    Actual results:
    Generated code similar to the following:
    
      link1.setActionExpression(FacesContext.getCurrentInstance().ge
    tApplication().getExpressionFactory().createMethodExpression(Fac
    esContext.getCurrentInstance().getELContext(),
    '#{pc_SupportComponent.doLink1Action}', null, null));
    
    This line of code has the following compilation error flagged
    against it in the Problems view:
    
    Description Resource Path Location Type
    The method setActionExpression(MethodExpression) is undefined
    for the type
    HtmlRequestLink SupportComponentComponent.java /TestComponentsWA
    S7/componentsrc/com/ibm/faces/testcomponentswas7/component line
    40 Java Problem
    
    Local Fix:
    
    No known workaround at this time.
    

Local fix

Problem summary

  • "Link - Request" on the Faces Custom Component might generate
    code with compilation errors
    

Problem conclusion

  • Compilation errors fixed in the generated code for Link-Request
    component in the faces custom component tooling.
    
    The fix for this APAR is included in Rational Application
    Developer v8.0.4.3.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM95193

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    804

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-08-15

  • Closed date

    2013-10-28

  • Last modified date

    2013-10-28

  • 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

  • R804 PSY

       UP



Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Application Developer for WebSphere Software

Software version:

8.0.4

Reference #:

PM95193

Modified date:

2013-10-28

Translate my page

Machine Translation

Content navigation