I haven't used wicket cometd... so what I say might be far from reality but... if you are in the middle of an AJAX request cycle I think you can always use AjaxRequestTarget .get() to access the (thread local) instance of AjaxRequestTarget. I don't know if you can use this on your situation but it might be worth giving it a try.
Regards, Ernesto On Thu, Jul 22, 2010 at 7:17 PM, fachhoch <[email protected]> wrote: > > please help me > > > > > private final class AuditProgramResetTaskListener implements > IChannelListener { > public void onEvent(final String channel, final Map<String, > String> datas, > final IChannelTarget target) { > Long wfEntityId=new > Long(datas.get(Parameters.PARAM_WF_ENTITY_ID)); > if(wfEntityId.equals(wfEntityId)){ > CustomModalWindow > modalWindow=(CustomModalWindow)get("programResetAlert"); > modalWindow.show(target);// this line wont > compile it needs > AjaxRequestTarget , but I have IchannelTarget > > } > } > } > > > Please tell me how can I convert IChannelTarget to AjaxRequestTarget ? > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/show-modal-window-on-cometd-event-using-IChannelTarget-tp2296068p2299004.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
