You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by kk4Nabble <ka...@gmail.com> on 2008/04/02 15:21:16 UTC
problem with @EventListener
Hi..
I am using tapestry 4.1
My html code is..
<input id="supplimentalId" class="button" jwcid="@Submit" value="Add"/>
and java code is
@EventListener(elements = "supplimentalId", events = "onclick")
public void watchText(IRequestCycle cycle)
{
// do something
((Dialog)getComponent("DialogContentSupplimental")).show();
}
ie .. when i click on add button this dialog box must open.
But the above method is not working.,ie @EventListener is never called.
Is the above code correct? Have i missed anything?
Please if anybody could help me, I ll be thankful.
Regards,
kavya
--
View this message in context: http://www.nabble.com/problem-with-%40EventListener-tp16447029p16447029.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: problem with @EventListener
Posted by Paul Stanton <pa...@gunnsoft.com.au>.
don't double post please
kk4Nabble wrote:
> Hi..
> I am using tapestry 4.1
> My html code is..
> <input id="supplimentalId" class="button" jwcid="@Submit" value="Add"/>
>
> and java code is
> @EventListener(elements = "supplimentalId", events = "onclick")
> public void watchText(IRequestCycle cycle)
> {
> // do something
>
> ((Dialog)getComponent("DialogContentSupplimental")).show();
> }
>
>
> ie .. when i click on add button this dialog box must open.
> But the above method is not working.,ie @EventListener is never called.
> Is the above code correct? Have i missed anything?
>
>
> Please if anybody could help me, I ll be thankful.
>
>
>
> Regards,
> kavya
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org