You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Oliver Krohne <ok...@yahoo.de> on 2009/07/13 13:30:24 UTC

Can one avoid the pagmap name in the url

Hi,

I turned on the option Automatic Multi Window Support and now if I open some
windows / tabs I see the pagemap name in the url like "/?wicket:pageMapName=wicket-3".
After each link I click the pagemap name changes even in the same window, I wonder if
this is correct ?

Is there any way that the pagemap does not appear in the url?
Could it be stored in a cookie?

A part of my website is displayed in an iframe on some customer pages. If a user opens pages
in the iframe and then switches to the main website possibly in a different window then sometimes
I got PageExpiredException .
Is there a way to force all iframed pages to use a different pagemap without displaying the pagemap name 
in the url on the main (non iframed) website?


Thanks for any hints,

Oliver


      

Re: Can one avoid the pagmap name in the url

Posted by Johan Compagner <jc...@gmail.com>.
no it doesnt.

if you make sure that the pageid is unique across the session
then you dont need pagemaps. And you can hold everything in 1 pagemap.

And if you do that then make sure then all he pages go into 1 pagemap
then make sure that:

*

public
* DiskPageStore(*int* maxSizePerPagemap, *int* maxSizePerSession,
*int*fileChannelPoolCapacity)the
maxSizePerPagemap is large enough for you (default 10MB)

On Tue, Jul 14, 2009 at 16:45, okrohne <ok...@yahoo.de> wrote:

>
> Hi,
>
> does the setting getApplication().getSessionSettings() changes the
> behavior regarding memory/disk space requirements ?
>
> Can you please explain what this setting achieves?
>
> Thanks,
> Oliver
>
>
> I already have this option turned on,
>
> jcompagner-2 wrote:
> >
> > we already have session unique pageid's:
> >
> > getApplication().getSessionSettings().isPageIdUniquePerSession()
> >
> > Then you dont have to have pagemap or enable the multi window support
> > You only need that if you really want to now that users uses different
> > tabs.
> > Wicket doesnt really need it anymore then
> > Because it will find the pages in the diskstore by there id's just fine
> > (as
> > long as your diskstore is large enough for the default pagemap)
> >
> > johan
> >
> >
> >
> > On Mon, Jul 13, 2009 at 19:07, Igor Vaynberg
> > <ig...@gmail.com>wrote:
> >
> >> not sure if storing in a cookie would work easily. we would still have
> >> to keep the cookie name somewhere...and so you are back to adding that
> >> to the url.
> >>
> >> i think in 1.5 what we can do is make the page id unique across all
> >> pagemaps and keep the mapping in session. not sure how easy that would
> >> be to implement in 1.4.
> >>
> >> -igor
> >>
> >> On Mon, Jul 13, 2009 at 4:30 AM, Oliver Krohne<ok...@yahoo.de> wrote:
> >> > Hi,
> >> >
> >> > I turned on the option Automatic Multi Window Support and now if I
> open
> >> some
> >> > windows / tabs I see the pagemap name in the url like
> >> "/?wicket:pageMapName=wicket-3".
> >> > After each link I click the pagemap name changes even in the same
> >> window,
> >> I wonder if
> >> > this is correct ?
> >> >
> >> > Is there any way that the pagemap does not appear in the url?
> >> > Could it be stored in a cookie?
> >> >
> >> > A part of my website is displayed in an iframe on some customer pages.
> >> If
> >> a user opens pages
> >> > in the iframe and then switches to the main website possibly in a
> >> different window then sometimes
> >> > I got PageExpiredException .
> >> > Is there a way to force all iframed pages to use a different pagemap
> >> without displaying the pagemap name
> >> > in the url on the main (non iframed) website?
> >> >
> >> >
> >> > Thanks for any hints,
> >> >
> >> > Oliver
> >> >
> >> >
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Can-one-avoid-the-pagmap-name-in-the-url-tp24460046p24481066.html
>  Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Can one avoid the pagmap name in the url

Posted by okrohne <ok...@yahoo.de>.
Hi,

does the setting getApplication().getSessionSettings() changes the 
behavior regarding memory/disk space requirements ?

Can you please explain what this setting achieves?

Thanks,
Oliver

 
I already have this option turned on, 

jcompagner-2 wrote:
> 
> we already have session unique pageid's:
> 
> getApplication().getSessionSettings().isPageIdUniquePerSession()
> 
> Then you dont have to have pagemap or enable the multi window support
> You only need that if you really want to now that users uses different
> tabs.
> Wicket doesnt really need it anymore then
> Because it will find the pages in the diskstore by there id's just fine
> (as
> long as your diskstore is large enough for the default pagemap)
> 
> johan
> 
> 
> 
> On Mon, Jul 13, 2009 at 19:07, Igor Vaynberg
> <ig...@gmail.com>wrote:
> 
>> not sure if storing in a cookie would work easily. we would still have
>> to keep the cookie name somewhere...and so you are back to adding that
>> to the url.
>>
>> i think in 1.5 what we can do is make the page id unique across all
>> pagemaps and keep the mapping in session. not sure how easy that would
>> be to implement in 1.4.
>>
>> -igor
>>
>> On Mon, Jul 13, 2009 at 4:30 AM, Oliver Krohne<ok...@yahoo.de> wrote:
>> > Hi,
>> >
>> > I turned on the option Automatic Multi Window Support and now if I open
>> some
>> > windows / tabs I see the pagemap name in the url like
>> "/?wicket:pageMapName=wicket-3".
>> > After each link I click the pagemap name changes even in the same
>> window,
>> I wonder if
>> > this is correct ?
>> >
>> > Is there any way that the pagemap does not appear in the url?
>> > Could it be stored in a cookie?
>> >
>> > A part of my website is displayed in an iframe on some customer pages.
>> If
>> a user opens pages
>> > in the iframe and then switches to the main website possibly in a
>> different window then sometimes
>> > I got PageExpiredException .
>> > Is there a way to force all iframed pages to use a different pagemap
>> without displaying the pagemap name
>> > in the url on the main (non iframed) website?
>> >
>> >
>> > Thanks for any hints,
>> >
>> > Oliver
>> >
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Can-one-avoid-the-pagmap-name-in-the-url-tp24460046p24481066.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Can one avoid the pagmap name in the url

Posted by Johan Compagner <jc...@gmail.com>.
we already have session unique pageid's:

getApplication().getSessionSettings().isPageIdUniquePerSession()

Then you dont have to have pagemap or enable the multi window support
You only need that if you really want to now that users uses different tabs.
Wicket doesnt really need it anymore then
Because it will find the pages in the diskstore by there id's just fine (as
long as your diskstore is large enough for the default pagemap)

johan



On Mon, Jul 13, 2009 at 19:07, Igor Vaynberg <ig...@gmail.com>wrote:

> not sure if storing in a cookie would work easily. we would still have
> to keep the cookie name somewhere...and so you are back to adding that
> to the url.
>
> i think in 1.5 what we can do is make the page id unique across all
> pagemaps and keep the mapping in session. not sure how easy that would
> be to implement in 1.4.
>
> -igor
>
> On Mon, Jul 13, 2009 at 4:30 AM, Oliver Krohne<ok...@yahoo.de> wrote:
> > Hi,
> >
> > I turned on the option Automatic Multi Window Support and now if I open
> some
> > windows / tabs I see the pagemap name in the url like
> "/?wicket:pageMapName=wicket-3".
> > After each link I click the pagemap name changes even in the same window,
> I wonder if
> > this is correct ?
> >
> > Is there any way that the pagemap does not appear in the url?
> > Could it be stored in a cookie?
> >
> > A part of my website is displayed in an iframe on some customer pages. If
> a user opens pages
> > in the iframe and then switches to the main website possibly in a
> different window then sometimes
> > I got PageExpiredException .
> > Is there a way to force all iframed pages to use a different pagemap
> without displaying the pagemap name
> > in the url on the main (non iframed) website?
> >
> >
> > Thanks for any hints,
> >
> > Oliver
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Can one avoid the pagmap name in the url

Posted by okrohne <ok...@yahoo.de>.
Hi,

if I could force to use the pagemap name (e.g. "igramed") in the the iframed
pages (and in those urls) which extends also a different Template then the
pages
on the main website would use the default pagemap and the pagemap name would
not be displayed in
the url. Right?  Is there a way to achieve this with wicket 1.4 ? 

Thanks for any approaches,
Oliver



igor.vaynberg wrote:
> 
> not sure if storing in a cookie would work easily. we would still have
> to keep the cookie name somewhere...and so you are back to adding that
> to the url.
> 
> i think in 1.5 what we can do is make the page id unique across all
> pagemaps and keep the mapping in session. not sure how easy that would
> be to implement in 1.4.
> 
> -igor
> 
> On Mon, Jul 13, 2009 at 4:30 AM, Oliver Krohne<ok...@yahoo.de> wrote:
>> Hi,
>>
>> I turned on the option Automatic Multi Window Support and now if I open
>> some
>> windows / tabs I see the pagemap name in the url like
>> "/?wicket:pageMapName=wicket-3".
>> After each link I click the pagemap name changes even in the same window,
>> I wonder if
>> this is correct ?
>>
>> Is there any way that the pagemap does not appear in the url?
>> Could it be stored in a cookie?
>>
>> A part of my website is displayed in an iframe on some customer pages. If
>> a user opens pages
>> in the iframe and then switches to the main website possibly in a
>> different window then sometimes
>> I got PageExpiredException .
>> Is there a way to force all iframed pages to use a different pagemap
>> without displaying the pagemap name
>> in the url on the main (non iframed) website?
>>
>>
>> Thanks for any hints,
>>
>> Oliver
>>
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Can-one-avoid-the-pagmap-name-in-the-url-tp24460046p24476690.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Can one avoid the pagmap name in the url

Posted by Igor Vaynberg <ig...@gmail.com>.
not sure if storing in a cookie would work easily. we would still have
to keep the cookie name somewhere...and so you are back to adding that
to the url.

i think in 1.5 what we can do is make the page id unique across all
pagemaps and keep the mapping in session. not sure how easy that would
be to implement in 1.4.

-igor

On Mon, Jul 13, 2009 at 4:30 AM, Oliver Krohne<ok...@yahoo.de> wrote:
> Hi,
>
> I turned on the option Automatic Multi Window Support and now if I open some
> windows / tabs I see the pagemap name in the url like "/?wicket:pageMapName=wicket-3".
> After each link I click the pagemap name changes even in the same window, I wonder if
> this is correct ?
>
> Is there any way that the pagemap does not appear in the url?
> Could it be stored in a cookie?
>
> A part of my website is displayed in an iframe on some customer pages. If a user opens pages
> in the iframe and then switches to the main website possibly in a different window then sometimes
> I got PageExpiredException .
> Is there a way to force all iframed pages to use a different pagemap without displaying the pagemap name
> in the url on the main (non iframed) website?
>
>
> Thanks for any hints,
>
> Oliver
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org