I mixed between component events and rendering phases. I always thought
that component render phases are fired events by default but I was wrong.

This answer cleared up a lot:
http://stackoverflow.com/questions/25213133/5-4-beta-6-zone-event-handler-isnt-called

*---------------------*
*Muhammad Gelbana*
http://www.linkedin.com/in/mgelbana


On Fri, Aug 8, 2014 at 8:56 PM, Muhammad Gelbana <m.gelb...@gmail.com>
wrote:

> As far as I understand, *Zone* is a component and I can handle it's
> events.
>
> So I types the following code:
>
> @InjectComponent
>> private Zone zoneSample;
>> @OnEvent(component = "zoneSample")
>> private void zoneEvent() {
>>  System.out.println(String.format("Zone client id: %s", zoneSample
>> .getClientId()));
>> }
>
>
> No exception is thrown so the Zone ID is set correctly. But the event
> isn't fired !
> Shouldn't this event handling method match all events for the zone ?
>
> I expected it to be fired basically before, while and after rendering the
> zone because I need to see if I can obtain the generated zone's client-id
> to use it to show this zone later on using the *AjaxResponseRenderer*
> class.
>
> *---------------------*
> *Muhammad Gelbana*
> http://www.linkedin.com/in/mgelbana
>

Reply via email to