Unsetting/setting the popup settings work just fine:) However im also giving the user some feedback based on finding of the model. Im using the info(string) method to do this. But it does not seem to work when used from the onRender method of the pagelink?
Regards Nino -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 8. juni 2006 09:43 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] PageLink wanting to check model beforeallowingpopup Thanks, the latter is precisely what I needed(I set/unset the popup settings). Regards Nino -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 7. juni 2006 20:47 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] PageLink wanting to check model before allowingpopup That's a bit complicated to achieve. Generally, you either can choose to immediately close the popup if you find out the model value is not what it should be, or you should do the popup by using an extra redirection. For instance, you link could be an ajax link, that sends back a script to be executed that does the popping up. What I'm wondering though is whether you can't know whether the link is supposed to popup before hand. Do you really need to check the model when the link is clicked, or can you decide whether it is supposed to popup when the link is rendered? If the latter is the case - and I would be surprised if it is not - you can just set/ unset popup settings, or tweak getPopupJavaScript to what you need. Eelco On 6/7/06, Nino Wael <[EMAIL PROTECTED]> wrote: > Hi > > I have a popup button where I want to check misc stuff on my form model > before I allow the popup to actually popup the new page. > > I've tried to override the onClick event on the pageLink control but it still > pops a page no matter what. Im not sure if I am using the correct approach. > > Regards Nino > > PS still hoping for some answer on my other mail about the radiogroup/radio > potential bug see this link: > > http://sourceforge.net/tracker/index.php?func=detail&aid=1500128&group_id=119783&atid=684975 > > <http://sourceforge.net/tracker/index.php?func=detail&aid=1500128&group_id=119783&atid=684975> > > > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user