[
https://issues.apache.org/jira/browse/WICKET-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500465
]
Johan Compagner commented on WICKET-605:
----------------------------------------
this is pretty annoying this is the part of RequestCycle that does the trick:
public final CharSequence urlFor(final Component component,
final RequestListenerInterface listener)
{
// Get Page holding component and mark it as stateful.
final Page page = component.getPage();
final IRequestTarget target;
if (listener != IRedirectListener.INTERFACE &&
component.isStateless()
&& page.isBookmarkable())
{
target = new
BookmarkableListenerInterfaceRequestTarget(page.getPageMapName(),
page.getClass(), new PageParameters(),
component, listener);
}
as you can see we do here 'new PageParameters()'
and thats why there aren't any in the url.
But what should we put in there? How do we get the right once?
can we just get the from the current request? I don't think so
the only reliable thing to ask for is the page. But then the page has to have a
method like getPageParameters()
but we don't have anything like that at the moment so what is going to be
returned ?
> Stataless form skips page parameters
> ------------------------------------
>
> Key: WICKET-605
> URL: https://issues.apache.org/jira/browse/WICKET-605
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: trunk
> Environment: linux, glassfish v2
> Reporter: József Börcsök
> Assignee: Eelco Hillenius
>
> Page parameters are not included in stataless form action parameter.
> I think stateless form should override urlFor(RequestListenerInterface
> listener) method and append page parameters. (Submit works if I manually add
> them at runtime ie. with firebug plugin in browser.)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.