Ok will check it out tomorrow - atm I basically have a custom
RequestTarget ( PortletEventRequestTarget ) that extends
PageRedirectRequestTarget which the target is changed to if the target
resolved by wicket is detected as a BookmarkablePageRequestTarget or a
RedirectPageRequestTarget (but only when the current request is
portlet an event request.
On 14/11/2008, at 8:33 PM, Johan Compagner wrote:
Try hybridurlencoding.
That is meant for bookmarkable redirects to a bookmarkable and
interface url
On 10/29/08, Antony Stubbs <[EMAIL PROTECTED]> wrote:
2008/10/29 Igor Vaynberg <[EMAIL PROTECTED]>
On Wed, Oct 29, 2008 at 6:43 AM, Antony Stubbs <[EMAIL PROTECTED]
>
wrote:
With RENDER_TO_REDIRECT on, why does this:
^ this pattern implements the redirect-after-post like pattern
http://localhost:8080/non-gizmo-wicket-portlet-events/eventa/?wicket:interface=:11:basic-link:6:ILinkListener
::
redirect to
http://localhost:8080/non-gizmo-wicket-portlet-events/eventa/?wicket:interface=:11:6
:
::
the top url invokes the onclick of a link, after it is processed we
redirect to a view url. this is so if the user presses refresh the
onclick is not invoked again. like redirect-after-post but actually
redirect-after-get for gets that cause actions on the serverside.
while
http://localhost:8080/non-gizmo-wicket-portlet-events/eventa/
doesn't redirect at all, and the browser points to:?
http://localhost:8080/non-gizmo-wicket-portlet-events/eventa/
Shouldn't you get:?
http://localhost:8080/non-gizmo-wicket-portlet-events/eventa/?wicket:interface=:0
::
::
we do not redirect bookmarkable urls. we want a new instance created
if the user presses refresh. if you were to invoke any action on
that
page then you would be redirected to ?wicket:interface=:0::::
Can I force a redirect in this case? Perhaps by modifying what the
'homepage' for the application is set to, so that it causes some no-
op
action, causing the redirect? i.e. i don't want hompage, or '/'' to
be
bookmarkable, I want it to redirect to a view url (a redirect seems
to let
the portlet stuff work).
also we cannot redirect because the url has to be bookmarkable, eg
user actually being able to bookmark it in the browser. if we always
redirected to a stateful url that wouldnt work very well :)
Yes well that makes sense - so can I make the 'homepage' (or /
request) not
bookmarkable, so that it resolves to a view?
-igor
--
___________________________
http://stubbisms.wordpress.com/