Running private events

Running a pretty recent Git pull.

So I’m reading the docs, and it says:

Private events have an access type of private and can only be called from within the application by using the runEvent() method.

So I try this:

public void function list(required any event)
{
if(arguments.event.valueExists(“foo”))
{
runEvent(“products.foo”);
}
else
{
runEvent(“products.bar”);
}
}

private void function foo(required any event) { … }
private void function bar(required any event) { … }

And when running the event “list”, I get the error:
Error Messages: The method foo was not found in component …

Am I doing something wrong, or is this a bug, or is the documentation wrong… or… help?

Mark

Mark, you need to say private = true on the method call.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Ah thanks! that was the piece I was missing.

Mark