I think you have not set the update component, you need to put some code into
watchText() like this:
cycle.getResponseBuilder().updateComponent("DialogContentSupplimental");
I have also had more success implementing my dialogs like this
<div jwcid=" [EMAIL PROTECTED]" hidden="ognl:not showDlg" class="dialogue">
Then all you do is set showDlg to true in watchText(), but you may get
different results.
I hope this helps,
Craig
-----Original Message-----
From: Kavya K [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 2 April 2008 7:53 PM
To: [email protected]
Subject: @EventListener
Hi..
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.
Please if anybody could help me, I ll be thankfull.
Regards,
kavya
If you are not an authorised recipient of this e-mail, please contact me at
Redflex immediately by return phone call or by email. In this case, you should
not read, print, retransmit, store or act in reliance on this e-mail or any
attachments, and should destroy all copies of them. This e-mail and any
attachments are confidential and may contain privileged information and/or
copyright material of Redflex or third parties. You should only retransmit,
distribute or commercialise the material if you are authorised to do so. This
notice should not be removed.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]