IBM Support

PM52980: Custom RUI Widgets set with targetWidget other than Div or GridLayout cannot be moved within the RUI designer view

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • 1.Version (with iFixes and TestFixes).
    Environment: windows
    Product name: IBM? Rational? Business Developer
    
    Program Version    :  8.0.1.2
    2.Problem Description. Things that you have tried to resolve.
    Custom RUI Widgets set with targetWidget other than Div or
    GridLayout cannot be moved within the RUI designer view.
    
    Errors observed within the RUI designer:
    a) The Widget cannot be moved within the layout after dragging
    it in place from the palette.
    b) Trying to selecting the widget within the design view is not
    possible as the selection skips instead to the container.
    
    c) Example of targetwidget definition
    handler StuckWidget type RUIWidget {targetWidget =
    dojoTextField, onConstructionFunction =
    start,cssFile='css/TestRuiDesignerTargetWidget.css', @VEWidget{
    category = 'Custom' }}
        dojoTextField DojoTextField{};
    d) Change the StuckWidget code to reflect the targetWidget to
    div ie
    handler StuckWidget type RUIWidget {targetWidget = ui,
    onConstructionFunction = start,
    cssFile='css/TestRuiDesignerTargetWidget.css', @VEWidget{
    category = 'Custom' }}
     ui Div{ children = [dojoTextField] };
     dojoTextField DojoTextField{};
    e) In design view now you will see you can indeed then select
    and move the widget around.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When the users creates a widget and sets its targetWidget to
    a dojo widget, and then drag-anddrops it onto the Visual
    Editor, the user cannot select the widget in the Visual
    Editor and outline.
    

Problem conclusion

  • The Visual Editor needed to get the widget location and size
    after widget loaded. The Dojo widget is loading
    asynchronusly. Before the Dojo widget is rendered, a dom is
    created as a placeholder whose size is 0.
    
    When the target widget is set to a Dojo widget, the
    container widget will point to the placeholder. So the
    widget info returned to the Visual Editor is incorrect.
    
    This fix will make the Dojo widget transfer the correct info
    to the container widget when it is loaded.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM52980

  • Reported component name

    RATL BUS DEV

  • Reported component ID

    5724S5000

  • Reported release

    801

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-11-28

  • Closed date

    2012-01-27

  • Last modified date

    2012-01-27

  • 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 BUS DEV

  • Fixed component ID

    5724S5000

Applicable component levels

  • R801 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.1","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
27 January 2012