You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by ANDRE Christophe <ch...@docapost-bpo.com> on 2013/09/13 11:06:31 UTC
Redirection on the root URL when returning instance of injected
page [5.3.3]
Hi,
I have the following start page defined in AppModule :
public static void contributeApplicationDefaults(MappedConfiguration<String, Object> configuration) {
configuration.add("tapestry.start-page-name", "Index");
}
In this Index page I have the following:
@InjectPage
private Mypage myPage;
@Component(id = "myForm")
private Form myForm;
After updating some zone on index page with ajax, I submit myForm and want to redirect to myPage:
@OnEvent(value = "success", component = "myForm")
public Object processBenef() throws DPTechnicalException {
...
return myPage;
}
Then I get the following requests:
POST 302 URL:https://127.0.0.1/MyAppli/index.myform;jsessionid=E5289EEB2B9C8EF5002FC932021B2090 Redirect to: https://127.0.0.1/MyAppli/myPage
GET 302 URL:https://127.0.0.1/MyAppli/myPage Redirect to: https://127.0.0.1/MyAppli/
Why am I redirected on the root URL of my Application?
I m using T 5.3.3
Thx
Ce message et toutes les pieces jointes (ci apres le message) sont etablis a l intention exclusive de leurs destinataires.
Si vous recevez ce message par erreur, merci de le detruire et d en avertir immediatement l expediteur par e mail.
Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse de l expediteur.
Les communications sur Internet n etant pas securisees, DOCAPOST BPO informe qu elle ne peut accepter aucune responsabilite quant au contenu de ce message.