You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Sergey Kashin <ay...@ngs.ru> on 2007/07/18 15:58:04 UTC

T4.1.2 EventListener _ symbol in the name of element

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="makeAjax@PropertySelection" value="ognl:make" model="ognl:makes" ></select> &nbsp;
   Bike Model ajax :
   <select jwcid="bikeAjax@PropertySelection" value="ognl:bike" model="ognl:model" ></select> &nbsp;

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="make_Ajax@PropertySelection" value="ognl:make" model="ognl:makes" ></select> &nbsp;
   Bike Model ajax :
   <select jwcid="bike_Ajax@PropertySelection" value="ognl:bike" model="ognl:model" ></select> &nbsp;

Java action:
  @EventListener(targets = "make_Ajax", events = "onchange")
  public void makeSelected(IRequestCycle cycle){
    ....

    cycle.getResponseBuilder().updateComponent("bike_Ajax");
    System.out.println("test ajax select");
  }
---------------------------------------------------------------------------------------------------


-- 
Best regards,
 Sergey                          mailto:ayrton@ngs.ru



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Re[2]: T4.1.2 EventListener _ symbol in the name of element

Posted by Jesse Kuhnert <jk...@gmail.com>.
1522 ....doesn't matter as I'm about to deploy a fix in the next few minutes
anyways.  (4.1.3-SNAPSHOT)

On 7/18/07, Sergey Kashin <ay...@ngs.ru> wrote:
>
> Hello
>
> Could you please specify Jira issue identificator, cant't find it.
>
>
>
> Thursday, July 19, 2007, 8:06:18 AM, you wrote:
>
> JK> There's a JIRA report open for it....I guess I'll work on that next
> after I
> JK> finish what is bugging me first. ;)
>
> JK> On 7/18/07, Patrick Klein <pa...@bi-so.de> wrote:
> >>
> >> 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="makeAjax@PropertySelection" value="ognl:make"
> >> model="ognl:makes" ></select> &nbsp;
> >> >    Bike Model ajax :
> >> >    <select jwcid="bikeAjax@PropertySelection" value="ognl:bike"
> >> model="ognl:model" ></select> &nbsp;
> >> >
> >> > 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="make_Ajax@PropertySelection" value="ognl:make"
> >> model="ognl:makes" ></select> &nbsp;
> >> >    Bike Model ajax :
> >> >    <select jwcid="bike_Ajax@PropertySelection" value="ognl:bike"
> >> model="ognl:model" ></select> &nbsp;
> >> >
> >> > 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: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
>
>
>
>
>
> --
> Best regards,
> Sergey                            mailto:ayrton@ngs.ru
>
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re[2]: T4.1.2 EventListener _ symbol in the name of element

Posted by Sergey Kashin <ay...@ngs.ru>.
Hello

Could you please specify Jira issue identificator, cant't find it.



Thursday, July 19, 2007, 8:06:18 AM, you wrote:

JK> There's a JIRA report open for it....I guess I'll work on that next after I
JK> finish what is bugging me first. ;)

JK> On 7/18/07, Patrick Klein <pa...@bi-so.de> wrote:
>>
>> 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="makeAjax@PropertySelection" value="ognl:make"
>> model="ognl:makes" ></select> &nbsp;
>> >    Bike Model ajax :
>> >    <select jwcid="bikeAjax@PropertySelection" value="ognl:bike"
>> model="ognl:model" ></select> &nbsp;
>> >
>> > 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="make_Ajax@PropertySelection" value="ognl:make"
>> model="ognl:makes" ></select> &nbsp;
>> >    Bike Model ajax :
>> >    <select jwcid="bike_Ajax@PropertySelection" value="ognl:bike"
>> model="ognl:model" ></select> &nbsp;
>> >
>> > 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: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>





-- 
Best regards,
 Sergey                            mailto:ayrton@ngs.ru



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T4.1.2 EventListener _ symbol in the name of element

Posted by Jesse Kuhnert <jk...@gmail.com>.
There's a JIRA report open for it....I guess I'll work on that next after I
finish what is bugging me first. ;)

On 7/18/07, Patrick Klein <pa...@bi-so.de> wrote:
>
> 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="makeAjax@PropertySelection" value="ognl:make"
> model="ognl:makes" ></select> &nbsp;
> >    Bike Model ajax :
> >    <select jwcid="bikeAjax@PropertySelection" value="ognl:bike"
> model="ognl:model" ></select> &nbsp;
> >
> > 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="make_Ajax@PropertySelection" value="ognl:make"
> model="ognl:makes" ></select> &nbsp;
> >    Bike Model ajax :
> >    <select jwcid="bike_Ajax@PropertySelection" value="ognl:bike"
> model="ognl:model" ></select> &nbsp;
> >
> > 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re: T4.1.2 EventListener _ symbol in the name of element

Posted by Patrick Klein <pa...@bi-so.de>.
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="makeAjax@PropertySelection" value="ognl:make" model="ognl:makes" ></select> &nbsp;
>    Bike Model ajax :
>    <select jwcid="bikeAjax@PropertySelection" value="ognl:bike" model="ognl:model" ></select> &nbsp;
>
> 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="make_Ajax@PropertySelection" value="ognl:make" model="ognl:makes" ></select> &nbsp;
>    Bike Model ajax :
>    <select jwcid="bike_Ajax@PropertySelection" value="ognl:bike" model="ognl:model" ></select> &nbsp;
>
> 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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org