Skip to Content
author's profile photo Former Member
Former Member

epcftoolbox in PDK problem: myReceiver.isReceived() returns false

Hallo all,

I am trying to implement eventing between multiple iviews useing epcftoolbox. I followed the pdk example and the implementation seemed to work the first time I ran it. But then the behaviour of the eventing implementation became unpredictable: e.g. it worked 3 times and quit working afterwards, finally it quit working completely without me having made changes to the code.

Right now I try to figure out why myReceiver.isReceived() returns false although both methods getContext()/getWrappedContext() in the sender and the receiver class are packed with the paramters sent. Below I inserted the code.

In addition tomcat throws some error messages I do not understand:

- Warning: Double flush detected

- Http10: Parse error, empty line

Did anyone make the same experiences? If yes, I would appreciate it greatly if you could share how you dealt with them. Thanks a lot in advance!

Regards,

Helga

P.S.: Before I invest to much time in this - is it right that epcftoolbox is not supported in EP 5? Should I better use the EPCM methodes in the jsps?

-

-


sender class -

-


/**

    Â

  • Create output. Called once per request.

     */

public void doProcessBeforeOutput() throws PageException {

...  IEpcfToolbox myServ =

   (IEpcfToolbox) request.getService(IEpcfToolbox.KEY);

  IClientEventSender mySender =

   myServ.getClientEventSender(request, XURN, XEVENT);

  Form myForm = this.getForm(); // get the form from DynPage

  GridLayout grid = new GridLayout(1, 1);

  grid.setCellPadding(2);

  grid.addComponent(1, 1, setUpTabStrip());

  myForm.addComponent(grid);

  if (text != null) {

   mySender.setParameter("PARTNER", text);

   myForm.addRawText(mySender.getWrappedScript());

   text = null;

  }

}

-

-


receiver class -

-


    public void doProcessBeforeOutput() throws PageException {

...  Form myForm = this.getForm(); // get the form from DynPage

  IEpcfToolbox myServ = (IEpcfToolbox) request.getService(IEpcfToolbox.KEY);

  IClientEventReceiver myReceiver =

  myServ.getClientEventReceiver(request, XURN, XEVENT);

  myReceiver.setEventFilter(IClientEventReceiver.EVENT_FILTER_ALL);

  response.write(myReceiver.getWrappedScript());

  myReceiver.setWaitingMessage("Waiting for events ...");

  if (myReceiver.isReceived()) {

   myForm.addComponent(

    setUpObjektDaten(

     myReceiver.getParameter("PARTNER")));

  } else {

   myForm.addComponent(setUpObjektDaten(""));

  }

    }

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Dec 21, 2003 at 06:45 PM

    EPCF toolbox just creates the javascript code for EPCF/EPCM.

    EPCF toolbox is supported from EP5SP5  on. If you encounter a bug, please open a OSS mesage.

    Second possibilty is to code it yourself without support from EPCF toolbox classes.

    BR,

    Oliver

    Add comment
    10|10000 characters needed characters exceeded