You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jony <a3...@nepwk.com> on 2011/08/14 01:34:38 UTC
Absolute url in action form?
Hi, I need absolute url in the form (action attribute).
I see
"RequestUtils.toAbsolutePath(RequestCycle.get().getRequest().getRelativePathPrefixToWicketHandler());",
but how to use it in forms?
AttributeModifier not good, because I do not know the form action.
Thanks for your advice.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Absolute-url-in-action-form-tp3742161p3742161.html
Sent from the Users forum 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: Absolute url in action form?
Posted by Jony <a3...@nepwk.com>.
Create hint. Thanks Igor. Work fine.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Absolute-url-in-action-form-tp3742161p3742857.html
Sent from the Users forum 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: Absolute url in action form?
Posted by Igor Vaynberg <ig...@gmail.com>.
myform extends form {
oncomponenttag(tag) {
super.oncomponenttag(tag);
string act=tag.get("action");
act=requestutils.toabsolute(act);
tag.put("action", act);
}
}
-igor
On Sat, Aug 13, 2011 at 4:34 PM, Jony <a3...@nepwk.com> wrote:
> Hi, I need absolute url in the form (action attribute).
>
> I see
> "RequestUtils.toAbsolutePath(RequestCycle.get().getRequest().getRelativePathPrefixToWicketHandler());",
> but how to use it in forms?
>
> AttributeModifier not good, because I do not know the form action.
>
> Thanks for your advice.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Absolute-url-in-action-form-tp3742161p3742161.html
> Sent from the Users forum 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org