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