if it is that urgent why not create a patch? -igor
On 8/26/07, Thomas Singer <[EMAIL PROTECTED]> wrote: > > BTW, as long as this issue is not fixed, we can't take our Wicket-based > website online. This is a show-stopper bug for us. :( > > -- > Best regards, > Thomas Singer > _____________ > SyntEvo GmbH > Brunnfeld 11 > 83404 Ainring > Germany > www.syntevo.com > > > Thomas Singer wrote: > > Done: https://issues.apache.org/jira/browse/WICKET-878 > > > > Tom > > > > > > Igor Vaynberg wrote: > >> yep > >> > >> -igor > >> > >> > >> On 8/23/07, Thomas Singer <[EMAIL PROTECTED]> wrote: > >>> Should I report a bug in JIRA? > >>> > >>> -- > >>> Best regards, > >>> Thomas Singer > >>> _____________ > >>> SyntEvo GmbH > >>> Brunnfeld 11 > >>> 83404 Ainring > >>> Germany > >>> www.syntevo.com > >>> > >>> > >>> Igor Vaynberg wrote: > >>>> hm, this looks like an old bug. johan didnt we fix this a while ago? > >>>> > >>>> -igor > >>>> > >>>> > >>>> On 8/23/07, Thomas Singer <[EMAIL PROTECTED]> wrote: > >>>>>> inside shared > >>>>>> resource you can simply call Session.get() to get to wicket > session. > >>>>> Unfortunately, it looks like this is not possible, because I'm > getting > >>>>> following exception: > >>>>> > >>>>>> java.lang.IllegalStateException: you can only locate or create > >>> sessions > >>>>> in the context of a request cycle > >>>>>> org.apache.wicket.Session.findOrCreate(Session.java:250) > >>>>>> org.apache.wicket.Session.get(Session.java:279) > >>>>>> com.syntevo.hpsmart.DownloadResource.getResourceStream( > >>>>> DownloadResource.java:18) > >>>>>> org.apache.wicket.protocol.http.WicketFilter.getLastModified( > >>>>> WicketFilter.java:708) > >>>>>> org.apache.wicket.protocol.http.WicketFilter.doFilter( > >>>>> WicketFilter.java:122) > >>>>> > >>>>> Our resource code looks like this: > >>>>> > >>>>>> final class DownloadResource extends Resource { > >>>>>> > >>>>>> public IResourceStream getResourceStream() { > >>>>>> final OurSession session = (OurSession)Session.get(); > >>>>>> if (session == null) { > >>>>>> return null; > >>>>>> } > >>>>>> > >>>>>> final File file = session.getFileToDownload(); > >>>>>> if (file == null) { > >>>>>> return null; > >>>>>> } > >>>>>> > >>>>>> return new MyFileResourceStream(file); > >>>>>> } > >>>>> -- > >>>>> Best regards, > >>>>> Thomas Singer > >>>>> _____________ > >>>>> SyntEvo GmbH > >>>>> Brunnfeld 11 > >>>>> 83404 Ainring > >>>>> Germany > >>>>> www.syntevo.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] > >
