Well, that's a pity...

Anyway, I finally had to go with passing page id and page map name so that I could retrieve the previous page back from the page map... if it existed. I used HybridUrlCodingStrategy anyway so that, once I get these two parameters from the PageParameters object and remove them from there, the URL coding strategy rewrites the URL (redirect) not showing the removed parameters.

Thanks,
Daniel.



Matej Knopp wrote:
Hi, this is unfortunately not possible at the moment. The reason is
that the pageparameters are set to page as page metadata, but the
metadata key is private
(HybridUrlCodingStaretegy#PAGE_PARAMETERS_META_DATA_KEY).

So while I could make the key public, but you'd have to use snapshot
releases until 1.3.1 is out.

-Matej

On Jan 3, 2008 3:09 PM, Daniel Fernández Garrido
<[EMAIL PROTECTED]> wrote:
Hello everyone,

I have the following scenario:

    * I have a page PageA with lots of Ajax-driven state, with a link to
PageB

    * PageB needs a parameter (an object id, to be specific), which it
can receive with a PageParameters constructor argument.

    * PageB needs a reference to the PageA object that the user came
from, so that it can link back to a PageA with the very same
ajax-modified state.

    * Both PageA and PageB must have bookmarkable URLs.


For that, I am using:

    * HybridUrlCodingStrategy for both PageA and PageB.

    * Two constructors in PageB, one wich only receives PageParameters
(so that the page is considered bookmarkable) and another one which
receives PageParameters and a WebPage (which will be the PageA object).

    * Anonymously-defined Link subtypes for links in both directions.


My problem is that, although everything works fine, when I get to PageB,
I have a bookmarkable URL like: "/my/path/my/page/.3", which includes a
version number, but not the contents of the PageParameters (so, it's not
truly bookmarkable).

I need to have "/my/path/my/page/param1/value1/.3"... how can I get this?


Thank you very much in advance. And congratulations for 1.3! ;-)

Regards,
Daniel.



---------------------------------------------------------------------
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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to