You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by abhilash <so...@gmail.com> on 2008/04/17 07:25:48 UTC

@EventListener in a Dialog

Hi ,
I am using tapestry 4.1.5
I have a property selection model in a dialog.Propertyselection model is
associated with an onchange event.But my @EventListener method is not
getting called when onchange happens.I dont know where i am doing wrong?
any ideas?
Thanks in advance.
-- 
View this message in context: http://www.nabble.com/%40EventListener-in-a-Dialog-tp16739130p16739130.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: @EventListener in a Dialog

Posted by Andreas Andreou <an...@gmail.com>.
Hmm... can't probably help much, but i've seen quite a few fixes regarding
EventListener in the latest 4.1.6-SNAPSHOT

Can you give it a try?

http://people.apache.org/maven-snapshot-repository/org/apache/tapestry/tapestry-framework/4.1.6-SNAPSHOT/


On Thu, Apr 17, 2008 at 9:12 AM, abhilash <so...@gmail.com> wrote:
>
>  Yes,i have a "ListForm@Form" inside my Dialog.This is an ajax Form.My
>  @EventListener is
>  @EventListener(elements = "typeChanged", events = "onchange", submitForm =
>  "ListForm",async=true)
>  public void watchText(IRequestCycle cycle) {
>   ---------------
>   -----------------
>   ---------------------
>  cycle.getResponseBuilder().updateComponent("updateParts");
>  }
>  updateParts is span id which is wraped around some textFields.
>
>
>  Andreas Andreou wrote:
>  >
>  > Have you read the Dialog gotchas at
>  > http://tapestry.apache.org/tapestry4.1/components/dojo/dialog.html ?
>  > Does your Dialog completely contain a form?
>  >
>  > On Thu, Apr 17, 2008 at 8:25 AM, abhilash <so...@gmail.com>
>  > wrote:
>  >>
>  >>  Hi ,
>  >>  I am using tapestry 4.1.5
>  >>  I have a property selection model in a dialog.Propertyselection model is
>  >>  associated with an onchange event.But my @EventListener method is not
>  >>  getting called when onchange happens.I dont know where i am doing wrong?
>  >>  any ideas?
>  >>  Thanks in advance.
>  >>  --
>  >>  View this message in context:
>  >> http://www.nabble.com/%40EventListener-in-a-Dialog-tp16739130p16739130.html
>  >>  Sent from the Tapestry - User mailing list archive at Nabble.com.
>  >>
>  >>
>  >>  ---------------------------------------------------------------------
>  >>  To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  >>  For additional commands, e-mail: users-help@tapestry.apache.org
>  >>
>  >>
>  >
>  >
>  >
>  > --
>  > Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
>  > Tapestry / Tacos developer
>  > Open Source / JEE Consulting
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  > For additional commands, e-mail: users-help@tapestry.apache.org
>  >
>  >
>  >
>
>  --
>  View this message in context: http://www.nabble.com/%40EventListener-in-a-Dialog-tp16739130p16739582.html
>
>
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

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


Re: @EventListener in a Dialog

Posted by abhilash <so...@gmail.com>.
Yes,i have a "ListForm@Form" inside my Dialog.This is an ajax Form.My
@EventListener is
@EventListener(elements = "typeChanged", events = "onchange", submitForm =
"ListForm",async=true)
public void watchText(IRequestCycle cycle) {
 ---------------
 -----------------
 ---------------------
cycle.getResponseBuilder().updateComponent("updateParts");
}
updateParts is span id which is wraped around some textFields.

Andreas Andreou wrote:
> 
> Have you read the Dialog gotchas at
> http://tapestry.apache.org/tapestry4.1/components/dojo/dialog.html ?
> Does your Dialog completely contain a form?
> 
> On Thu, Apr 17, 2008 at 8:25 AM, abhilash <so...@gmail.com>
> wrote:
>>
>>  Hi ,
>>  I am using tapestry 4.1.5
>>  I have a property selection model in a dialog.Propertyselection model is
>>  associated with an onchange event.But my @EventListener method is not
>>  getting called when onchange happens.I dont know where i am doing wrong?
>>  any ideas?
>>  Thanks in advance.
>>  --
>>  View this message in context:
>> http://www.nabble.com/%40EventListener-in-a-Dialog-tp16739130p16739130.html
>>  Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>  For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
> 
> 
> 
> -- 
> Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/%40EventListener-in-a-Dialog-tp16739130p16739582.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: @EventListener in a Dialog

Posted by Andreas Andreou <an...@gmail.com>.
Have you read the Dialog gotchas at
http://tapestry.apache.org/tapestry4.1/components/dojo/dialog.html ?
Does your Dialog completely contain a form?

On Thu, Apr 17, 2008 at 8:25 AM, abhilash <so...@gmail.com> wrote:
>
>  Hi ,
>  I am using tapestry 4.1.5
>  I have a property selection model in a dialog.Propertyselection model is
>  associated with an onchange event.But my @EventListener method is not
>  getting called when onchange happens.I dont know where i am doing wrong?
>  any ideas?
>  Thanks in advance.
>  --
>  View this message in context: http://www.nabble.com/%40EventListener-in-a-Dialog-tp16739130p16739130.html
>  Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

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