huh? the current approach is seterrorpage(class<? extends page>), this is the page wicket will show when there is an error
it can be changed to: seterrorpage(irequesttarget target) and become more flexible. you can use seterrorpage(new pagerequesttarget(page.class)) to achieve the same as what there is now, or seterrorpage(new redirectrequesttarget("error.html")); to go to a static html page. or did i miss something in your response? -igor On Fri, Nov 13, 2009 at 1:10 PM, Alex Rass <a...@itbsllc.com> wrote: > > > You could also create an interface to EVERY class in Wicket (as OO > suggests). ;) > Is there a point in doing it though? > If you are NOT handling something - let Tomcat(or whomever) deal with it! > Works GREAT for me, btw. 1/2 of my pages are static + all the image > resources and other crap. This behavior is the default, btw. > > Why waste a CPU on serving static stuff that you do NOT want "handled" or > "massaged"? Your container will do a better job at it anyways. (see the > papers on tomcat and jetty competing on that point alone!) Let them deal > with it. > > And if you DO want it handled - one can write a StaticContentPage class > (overwrite page handling methods in WebPage class). > Unless you just wanna serve it from ELSEWHERE, in which case - just > configure the apps server, like with any other j2ee project. > > > -----Original Message----- > From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] > Sent: Friday, November 13, 2009 3:50 PM > To: users@wicket.apache.org > Subject: Re: page without class > > add an rfe to have it changed to take an irequesttarget instead of a > page class, that way you can do whatever you want. > > -igor > > On Fri, Nov 13, 2009 at 12:21 PM, Frank Silbermann > <frank.silberm...@fedex.com> wrote: >> I don't know, but I wouldn't be surprised if the answer is no. >> >> A foundational assumption about the way Wicket works is that a WebPage >> object would result from the combination of a WebPage class with a >> matching HTML file. When Wicket sees MyPage.html in MyPackage with no >> matching class, it assumes the class is erroneously missing. You want >> instead that Wicket should assume the class: >> >> package MyPackage >> class MyPage extends org.apache.wicket.markup.html.WebPage {} >> >> I don't think the convenience of avoiding this two-line MyPage.java file >> justifies eliminating this error check. >> >> I suppose Wicket could provide an API command to tell it to assume a >> trivial MyPage.java for MyPage.html, but I don't think such an API call >> would save you all that many keystrokes over the two-line class >> definition. >> >> -----Original Message----- >> From: fachhoch [mailto:fachh...@gmail.com] >> Sent: Friday, November 13, 2009 12:12 PM >> To: users@wicket.apache.org >> Subject: Re: page without class >> >> >> I am asking about creating a wicket page without a class , can I create >> a >> org.apache.wicket.markup.html.WebPage instance without any additional >> java file just html ? >> >> >> >> >> insom wrote: >>> >>> I believe you can do this if you change the Wicket filter mapping in >> your >>> web.xml to something other than /*. Then Tomcat will serve the page >> and >>> bypass Wicket entirely. >>> >>> Dane >>> >>> >>> On Fri, Nov 13, 2009 at 8:36 AM, fachhoch <fachh...@gmail.com> wrote: >>> >>>> >>>> Ok I have to tell that page to my IApplicationSettings >>>> >>>> IApplicationSettings settings= >>>> super.getApplicationSettings(); >>>> settings.setAccessDeniedPage(accessDeniedPage) >>>> here accessDeniedPage page is a static html page and I dont need java >> . >>>> I am talking about a wicket page without a class just html is it >>>> possible >>>> ? >>>> >>>> >>>> >>>> Pedro H. O. dos Santos wrote: >>>> > >>>> > Only put then on top-level directory of a web module. >>>> > http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz >>>> > >>>> > On Fri, Nov 13, 2009 at 1:21 PM, tubin gen <fachh...@gmail.com> >> wrote: >>>> > >>>> >> can I create a page just with html and not write class ? I need >> some >>>> >> static >>>> >> html pages and writing java for those will be of no use . >>>> >> >>>> > >>>> > >>>> > >>>> > -- >>>> > Pedro Henrique Oliveira dos Santos >>>> > >>>> > >>>> >>>> -- >>>> View this message in context: >>>> http://old.nabble.com/page-without-class-tp26338268p26339453.html >>>> Sent from the Wicket - User mailing list archive at Nabble.com. >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>> >>>> >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/page-without-class-tp26338268p26340879.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> 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 > > > > --------------------------------------------------------------------- > 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