I think the builtin Autocomplete mixin does something like that.
ComponentEventCallback callback = new ComponentEventCallback() { public boolean handleResult(Object result) { List matches = coercer.coerce(result, List.class); matchesHolder.put(matches); return true; } }; resources.triggerEvent(EventConstants.PROVIDE_COMPLETIONS, new Object[] { input }, callback); The event is triggered in the component container. Greeting, Christian Angelo Chen schrieb:
Hi, I'm writing a component, the component requires its container to format a string before rendering completely, say, it needs to call a method: String makeLink(Integer pageNo) and makeLink should be defined by the container of the component, I'm thinking of event bubbling can take care of this, but don't know how to proceed, any ideas? Thanks, Angelo