yep, i know, but i was talking about some additional property for a
page, like "hey-wicket, i right now tell you at compile-time that this
page is stateless and you should treat this page as stateless even when
rendering the header".
Of course such a property should be carefully documented with a lot of
warnings about what could go wrong if it is misused....
Basically my problem has been solved right now so this is not top
priority, but it might be a usefull enhancement/optimization for people
dealing with a *lot* of sessions...
Marco
Johan Compagner wrote:
> that is not possible
> You can't mark a page as stateless. Because a page knows when it is
> stateless or not
> And it it is not stateless you can't override that and say yes you are
> stateless... because that will not work.
>
> The problem with this is that i can't check for stateless or not because it
> is in the head render. And that happens first
> I can make it as a filter and then inject the pieces of code again. (a
> filter is runned after the page is rendered)
> But i don't want to change it right now. Because maybe in the next release
> we have another implementation for pagemaps/backbutton
> that doesn't need this check at all.
>
> johan
>
>
> On 5/5/06, Marco Geier <[EMAIL PROTECTED]> wrote:
>
>>
>> thanks Johan, i had a look at the PopupSettings and it's working.
>> (Although i'm going for the extra "wicket:pageMapName=popuppagemap"
>> param and my href-attribute-modifier, because i will not be using a real
>> browser window, but instead a DHTML/IFRAME popup)
>>
>> Anyway, it would be nice to somehow mark a page as
>> "i-really-know-my-page-is-stateless" and not having to deal with
>> pagemaps in this case...
>>
>> Marco
>>
>>
>>
>>
>> Johan Compagner wrote:
>> > just make it a wicket link with a bookmarkable page target
>> > and give the link a popup settings class
>> > What you also could do is add the pagemap param to that list yourself
>> > that is something like:
>> >
>> > wicket:pageMapName=popuppagemap
>> >
>> > as an extra param.
>> >
>> > johan
>> >
>> >
>> > On 5/5/06, Marco Geier <[EMAIL PROTECTED]> wrote:
>> >
>> >>
>> >> >> one what link do they click that made a new browser window?
>> >> >> just make sure that link has a popupsetting with a new pagemap
>> >> >> Then it works fine.
>> >>
>> >> Johan, what do you mean by "link has a popupsetting with a new
>> pagemap"?
>> >>
>> >> The problematic link is a "custom" (non-component) link, because this
>> >> area of my app is should be asap (as-stateless-as-possible).
>> >> The wicket-component for this link is just a WebMarkupContainer
>> with an
>> >> AttributeModifier for the "href" attribute.
>> >>
>> >> so the rendered html looks like this:
>> >>
>> >> <a href="/app/zoom?id=67817" target="picZoom"
>> >> onClick="window.open(this.href,'zoom');return false;">
>> >>
>> >> the bookmarkable page is mounted as "/app/zoom" and its constructor
>> >> looks like this:
>> >>
>> >> public ZoomPage() {
>> >> try {
>> >> long id =
>> >> Long.parseLong(getRequestCycle().getRequest().getParameter("id"));
>> >> //add some image, based on id.
>> >> .....
>> >> }
>> >> catch (NumberFormatException e) {
>> >> e.printStackTrace();
>> >> }
>> >> }
>> >>
>> >> So due to the PageMapChecker-javascript, the ZoomPage is created
>> >> *TWICE*, and much worse during second call of the constructor, the
>> >> id-requestparameter is not longer there!
>> >>
>> >> as is said, i'm still on RC2, i will move to RC3 over the weekend and
>> >> check again...
>> >>
>> >> @Juergen:
>> >> >
>> >>
>> getApplication().getPageSettings().setAutomaticMultiWindowSupport(false)
>> >>
>> >> thanks for the hint, but it would be nice to have non-applicationwide,
>> >> page-specific configuration option.
>> >>
>> >> Marco
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> Juergen Donnerstag wrote:
>> >> > you may disable it like
>> >> >
>> >>
>> getApplication().getPageSettings().setAutomaticMultiWindowSupport(false)
>> >> >
>> >> > Juergen
>> >> >
>> >> >
>> >> > On 5/5/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
>> >> >
>> >> >> one what link do they click that made a new browser window?
>> >> >> just make sure that link has a popupsetting with a new pagemap
>> >> >> Then it works fine.
>> >> >>
>> >> >> Currently it is a bit hard to detect that it is a real stateless
>> page.
>> >> >> Because we do the most things in the head part of the page. But the
>> >> >> problem
>> >> >> is
>> >> >> that we only know if a page is stateless when it is first rendered
>> >> >> ...(so at
>> >> >> the end)
>> >> >>
>> >> >> johan
>> >> >>
>> >> >>
>> >> >>
>> >> >> On 5/5/06, Marco Geier <[EMAIL PROTECTED]> wrote:
>> >> >> > I'd like to supress the PageMapChecker -headerscript for my
>> statless
>> >> >> pages.
>> >> >> > Imho checking for new browser-window is not necessary for a
>> >> stateless
>> >> >> > page, but anyway this should be configurable (I'm still on wicket
>> >> >> > 1.2RC2, so forgive me if this has been made configurable in the
>> >> >> meantime).
>> >> >> >
>> >> >> > My scenario is this:
>> >> >> > User clicks on a thumbnail and a new browserwindow pops up
>> showing
>> >> the
>> >> >> > original-sized image. This page is stateless and bookmarkable and
>> >> the
>> >> >> > calling link has some query params ("?id=12345&class=foo"). These
>> >> >> params
>> >> >> > get lost during the NewBrowserWindowListener-Requestcycle
>> >> >> and my page
>> >> >> > fails to initialize the second time.
>> >> >> > Anyway for performance reasons i'd like to avoid this additional
>> >> cycle.
>> >> >> >
>> >> >> > Rgds,
>> >> >> >
>> >> >> > Marco
>> >> >> >
>> >> >> >
>> >> >> > -------------------------------------------------------
>> >> >> > 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-develop mailing list
>> >> >> > [email protected]
>> >> >> >
>> >> >> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>> >> >> >
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> > -------------------------------------------------------
>> >> > 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=k&kid0709&bid&3057&dat1642
>> >> > _______________________________________________
>> >> > Wicket-develop mailing list
>> >> > [email protected]
>> >> > https://lists.sourceforge.net/lists/listinfo/wicket-develop
>> >> >
>> >> >
>> >>
>> >> --
>> >> ___________________________
>> >>
>> >> Dipl.-Ing. Marco Geier
>> >> EyeTea GmbH
>> >> Germany
>> >> phone +49 (0)721 662464-0
>> >> fax +49 (0)721 662464-1
>> >> mobile +49 (0)177 6579590
>> >> [EMAIL PROTECTED]
>> >>
>> >>
>> >> -------------------------------------------------------
>> >> 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-develop mailing list
>> >> [email protected]
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>> >>
>> >
>>
>> --
>> ___________________________
>>
>> Dipl.-Ing. Marco Geier
>> EyeTea GmbH
>> Germany
>> phone +49 (0)721 662464-0
>> fax +49 (0)721 662464-1
>> mobile +49 (0)177 6579590
>> [EMAIL PROTECTED]
>>
>>
>> -------------------------------------------------------
>> 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-develop mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>>
>
--
___________________________
Dipl.-Ing. Marco Geier
EyeTea GmbH
Germany
phone +49 (0)721 662464-0
fax +49 (0)721 662464-1
mobile +49 (0)177 6579590
[EMAIL PROTECTED]
-------------------------------------------------------
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-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop