you can ask wicket to figure out if the browser supports javascript or not, see
getApplication().getRequestCycleSettings().setGatherExtendedBrowserInfo() the way the fallback button works is that it is a regular button and we use javascript to override the default behavior - thus if no javascript is there then nothing is overridden and the button works like a regular button instead of ajax. -igor On Fri, May 29, 2009 at 4:51 AM, yong mook kim <mkyong2...@yahoo.com> wrote: > > hi, > > Thanks, i agree with your point. However what i want is a browser's > javascript detect function, if isJavascriptEnable() then load the > LazyLoadPanel else fall back to normal panel behaviour. > > something like below > > Page start.... > > if(isJavascriptEnable()){ > add(new AjaxLazyLoadPanel('123')... > }else{ > add(new ABCPanel('123').... > } > > Page end.... > > I wonder how Wicket AjaxFallBackButton work........? > > > > > > --- On Fri, 5/29/09, Martijn Dashorst <martijn.dasho...@gmail.com> wrote: > >> From: Martijn Dashorst <martijn.dasho...@gmail.com> >> Subject: Re: AjaxLazyLoadPanel fallback version? >> To: users@wicket.apache.org >> Date: Friday, May 29, 2009, 7:26 AM >> It's called Panel. Either your users >> have to have javascript enabled >> and you can use LazyLoadPanel, or you have to use direct >> Panel's. >> >> There is no way to lazy load anything without having to >> resort to >> JavaScript. Think about it. How could you instruct the >> browser to >> retrieve and replace a part of your page after a given >> time? >> >> The only thing that comes to mind is using iframes. >> >> Martijn >> >> On Fri, May 29, 2009 at 12:09 PM, yong mook kim <mkyong2...@yahoo.com> >> wrote: >> > >> > Hi, >> > >> > When browser's Javascript is disabled, >> AjaxLazyLoadPanel's image (wicket ajax deafult image) will >> keep loading forever, page will not return. Is there a >> AjaxLazyLoadPanel fallback version which will delegate to >> normal request if javascript is disabled? >> > >> > I wonder how Wicket detect the browser's javascript is >> disabled? Thanks >> > >> > regards >> > yong >> > >> > >> > >> > >> > >> --------------------------------------------------------------------- >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> > For additional commands, e-mail: users-h...@wicket.apache.org >> > >> > >> >> >> >> -- >> Become a Wicket expert, learn from the best: http://wicketinaction.com >> Apache Wicket 1.3.5 is released >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org