Re: [Wicket-user] mount page url
Thanks. That worked fine. But I want to pass parameters such as setResponsePage(new SignUp(clientModel,clientList) etc. How can I use SignUp.class and pass the parameters at the same time. The SignUp page is not using a default constructor. Matej Knopp-2 wrote: > > getRequestCycle().setResponsePage(SignUp.class); > > -Matej > > On 4/11/07, tbt <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I need to mount a page url because we need to use a static url to hook it >> up >> with google analytics. I tried adding the following code in the >> applications >> init() method. >> >> mountBookmarkablePage("/home", SignUp.class); >> >> Now I can access the page directly using the static url but once users >> navigate to the page through wicket it creates a dynamic url such as >> http://localhost:8080/aloha?wicket:interface=:8:: >> >> can this url be made to appear as 'http://localhost:8080/aloha/signup' >> when >> navigating through wicket. >> >> -- >> View this message in context: >> http://www.nabble.com/mount-page-url-tf3558499.html#a9936784 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/mount-page-url-tf3558499.html#a9937260 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] mount page url
Hi, I need to mount a page url because we need to use a static url to hook it up with google analytics. I tried adding the following code in the applications init() method. mountBookmarkablePage("/home", SignUp.class); Now I can access the page directly using the static url but once users navigate to the page through wicket it creates a dynamic url such as http://localhost:8080/aloha?wicket:interface=:8:: can this url be made to appear as 'http://localhost:8080/aloha/signup' when navigating through wicket. -- View this message in context: http://www.nabble.com/mount-page-url-tf3558499.html#a9936784 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] RadioChoice-page reload
Hi!, I'm a newbie to wicket and i'd like to know, how to load a new page once the user clicks(onClick event) on a radio button. please provide a simple example. Thanks -- View this message in context: http://www.nabble.com/RadioChoice-page-reload-tf3185521.html#a8841353 Sent from the Wicket - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Redirecting a page after a given time interval
public class LogOutPage extends WebPage { public LogOutPage () { AjaxLogOut ajaxLogOut = new AjaxLogOut(this); add(ajaxLogOut); } } public class AjaxLogOut extends AbstractAjaxTimerBehavior { WebPage page; private static Logger log = Logger.getLogger(AjaxLogOut.class.getName()); public AjaxLogOut(WebPage page) { super(Duration.seconds(20)); this.page = page; } protected void onTimer(AjaxRequestTarget target) { log.info("timer called"); page.setResponsePage(new LogOutConfirmation()); } } This didn't work since the onTimer method was not called after 20 seconds. Any help here is greatly appreciated. Thanks igor.vaynberg wrote: > > On 1/26/07, tbt <[EMAIL PROTECTED]> wrote: >> >> >> I coded a class that extends AbstractAjaxTimerBehavior and implemented >> the >> protected void onTimer(AjaxRequestTarget target) method. Is this method >> supposed to be called after the given time duration? > > > read the javadoc > /** > * Listener method for the AJAX timer event. > * > * @param target > *The request target > */ > protected abstract void onTimer(final AjaxRequestTarget target); > > And how should I redirect the page inside this method. Can someone provide >> me with a sample example. > > > just like anywhere else, setResponsePage() > > -igor > > > Thanks >> >> >> Matej Knopp wrote: >> > >> > This won't work. Because you can call setResponsePage only during >> > processing a request. When your code calls setResponsePage() there is >> no >> > request, so it doesn't make sense to set response page. >> > >> > I think what you want is AbstractAjaxTimerBehavior. >> > >> > -Matej >> > >> > tbt wrote: >> >> Hi! >> >> >> >> I'd like to know how to redirect a page automatically using wicket >> after >> >> a >> >> given time interval. Currently i'm using the following java class to >> do >> >> this >> >> >> >> Timer timer = new Timer(); >> >> timer.schedule(new TimerTask() >> >> { >> >> public void run() >> >> { >> >> setResponsePage(new >> LogOutConfirmationPage()); >> >> } >> >> } >> >> , 1 * 60 * 1000); >> >> >> >> This is supposed to redirect the page after 1 minute but Wicket is >> >> throwing >> >> the following runtime exception "There is no application attatched to >> the >> >> current thread" >> >> >> >> >> >> Is there any way to do this using the wicket framework? >> >> >> >> >> > >> > >> > >> - >> > Take Surveys. Earn Cash. Influence the Future of IT >> > Join SourceForge.net's Techsay panel and you'll get the chance to share >> > your >> > opinions on IT & business topics through brief surveys - and earn cash >> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> > ___ >> > Wicket-user mailing list >> > Wicket-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Redirecting-a-page-after-a-given-time-interval-tf3097478.html#a8647823 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > >
Re: [Wicket-user] Redirecting a page after a given time interval
I coded a class that extends AbstractAjaxTimerBehavior and implemented the protected void onTimer(AjaxRequestTarget target) method. Is this method supposed to be called after the given time duration? And how should I redirect the page inside this method. Can someone provide me with a sample example. Thanks Matej Knopp wrote: > > This won't work. Because you can call setResponsePage only during > processing a request. When your code calls setResponsePage() there is no > request, so it doesn't make sense to set response page. > > I think what you want is AbstractAjaxTimerBehavior. > > -Matej > > tbt wrote: >> Hi! >> >> I'd like to know how to redirect a page automatically using wicket after >> a >> given time interval. Currently i'm using the following java class to do >> this >> >> Timer timer = new Timer(); >> timer.schedule(new TimerTask() >> { >> public void run() >> { >> setResponsePage(new LogOutConfirmationPage()); >> } >> } >> , 1 * 60 * 1000); >> >> This is supposed to redirect the page after 1 minute but Wicket is >> throwing >> the following runtime exception "There is no application attatched to the >> current thread" >> >> >> Is there any way to do this using the wicket framework? >> >> > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Redirecting-a-page-after-a-given-time-interval-tf3097478.html#a8647823 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Redirecting a page after a given time interval
Hi! I'd like to know how to redirect a page automatically using wicket after a given time interval. Currently i'm using the following java class to do this Timer timer = new Timer(); timer.schedule(new TimerTask() { public void run() { setResponsePage(new LogOutConfirmationPage()); } } , 1 * 60 * 1000); This is supposed to redirect the page after 1 minute but Wicket is throwing the following runtime exception "There is no application attatched to the current thread" Is there any way to do this using the wicket framework? -- View this message in context: http://www.nabble.com/Redirecting-a-page-after-a-given-time-interval-tf3097478.html#a856 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] form validation
Hi! I'm a newbie to wicket and I'd like to know how to get multiple inputs into a single form validation class. eg:- i have several components in a form and in order to validate one component, i need the input of several other components. currently i'm extending AbstractValidator and implementing IValidator. i override the validate(FormComponent component) method and do my validations here. currently i'm able to retrieve the value only for a single component. I tried to get the other values from the model but it only gets updated when the form is submitted.(onSubmit() method). How should i retrieve the values of the other componenets? -- View this message in context: http://www.nabble.com/form-validation-tf3052664.html#a8485974 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] FeedBackPanel
I'm a newbie to wicket and would like to know how to add a customized icon near the error message which is generated by the feedback panel. Any help would be appreciated. -- View this message in context: http://www.nabble.com/FeedBackPanel-tf2889265.html#a8071827 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user