Skip to Content
author's profile photo
Former Member

Problem with 'eventing example application'

Hi

I tried to implement the example i found on SAP help with subject 'Using Server-Side eventing in WEB Dynpro'

The example doesn't work correctly in an sense that the first time the application is started the form 'Internal Web Dynpro Component' is already visible and after using the 'Create Component' button the application fails.

As far as i can understand i followed all the instructions.

Does anyone know what i did wrong?

regards

Bertil

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Jun 15, 2004 at 05:02 PM

    Bertil,

    You will have to set the default property of the interface view in the embedder app's window to FALSE. This should set things right.

    Regards

    Shakeel

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 16, 2004 at 12:04 PM

    Hallo Bertil,

    in the turorial section 'Implementing the View Composition - Defining Component Usage' there is a step where the Lifecycle of the component instance related to the declared component usage is set as 'manual'. I assume that you did keep the default 'framework controled'. In this case an exception is thrown when programmatically trying to create a component instance for a component usage, because hasActiveComponent()==true. So createComponent() does not exit silently like destroyComponent() for an already destroyed component instance.

    See the JavaDoc for IWDComponentUsage:

    <b>createComponent</b>

    public void createComponent()

    Creates a component instance for this component usage. The type defined by the component usage declared at design time is used for creating the component instance. The method fails if the Component Usage is associated to a Component Interface Definition.

    Precondition:

    hasActiveComponent() == false && isReferencing() == false

    Parameters:

    componentName - The fully qualified name of the Component Implementation to use

    Add comment
    10|10000 characters needed characters exceeded