Hello,
I can confirm this behavior. This problem was bugging me for at least
two days now. Thanks for this info :)
Regards,
Patrick
> Hello
>
> I'm found one strange bug in EventListener,
> EventListener method not execute if '_' symbol occurs in in the name
> of element, pageBeginRender method in that situation executed. Ajax
> create request for onchange request.
>
> Usally i'm use '_' symbol in beanform for custom input, there for it
> very usefull.
>
> Sample 1:
> If I not use '_' in component id all work fine
> ---------------------------------------------------------------------------------------------------
> HTML template:
> Make ajax :
> <select jwcid="[EMAIL PROTECTED]" value="ognl:make" model="ognl:makes"
> ></select>
> Bike Model ajax :
> <select jwcid="[EMAIL PROTECTED]" value="ognl:bike" model="ognl:model"
> ></select>
>
> Java action:
> @EventListener(targets = "makeAjax", events = "onchange")
> public void makeSelected(IRequestCycle cycle){
> ....
> cycle.getResponseBuilder().updateComponent("bikeAjax");
> System.out.println("test ajax select");
> }
> ---------------------------------------------------------------------------------------------------
> Sample 2:
> If I use '_' in component id, makeSelected method not executed
> ---------------------------------------------------------------------------------------------------
> HTML template:
> Make ajax :
> <select jwcid="[EMAIL PROTECTED]" value="ognl:make" model="ognl:makes"
> ></select>
> Bike Model ajax :
> <select jwcid="[EMAIL PROTECTED]" value="ognl:bike" model="ognl:model"
> ></select>
>
> Java action:
> @EventListener(targets = "make_Ajax", events = "onchange")
> public void makeSelected(IRequestCycle cycle){
> ....
>
> cycle.getResponseBuilder().updateComponent("bike_Ajax");
> System.out.println("test ajax select");
> }
> ---------------------------------------------------------------------------------------------------
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]