Hi!
I'm trying to configure Tapestry to use an application folder like this:
web.xml
<filter-mapping>
<filter-name>app</filter-name>
<url-pattern>/t5app/*</url-pattern>
</filter-mapping>
AppModule:
@Contribute(SymbolProvider.class)
@ApplicationDefaults
public static void applicationDefaults(MappedConfiguration<String,
String> configuration)
{
configuration.add(SymbolConstants.APPLICATION_FOLDER, "t5app")
}
My entry page is a login page with xhr sending the form data. Without
APPLICATION_FOLDER the login works fine but with it I get a redirect:
Request URL:http://localhost:8080/contextpath/t5app/login.loginform
Request Method:POST
Status Code:302 Found
Remote Address:127.0.0.1:8080
Response Headers
view source
Content-Length:0
Date:Wed, 03 Aug 2016 12:22:48 GMT
Location:/contextpath/t5app/login
Server:Apache-Coyote/1.1
The html source of the login page looks fine. Paths are ok, everything
is found. Here the login form handling:
Tapestry.init({"formEventManager":[{"formId":"loginForm","validate":{"submit":true,"blur":true}}]});
$('#loginZone').bind(Tapestry.ZONE_UPDATED_EVENT, {evFormName:
'loginForm',evProgressDiv: 'progress'}, onCleanupSubmit );
bindKeyHandler('loginForm');
bindPrepareSubmit('loginForm','progress');
$(document).ready( function() { setTimeout(function(){ window.location =
'logout/silent'; }, 7200000 ) } );
Tapestry.init({"dialog":[{"id":"loginDialog","params":{"hide":{effect:
'fade', duration: 0},"buttons":{"Anmelden":function() {
onDialogSubmit('loginForm')
}},"draggable":false,"resizable":false,"autoOpen":true,"closeOnEscape":false,"show":{effect:
'fade', duration:
1500},"width":370,"dialogClass":"dropShadow","title":"Administration:
Anmelden","modal":true,"open":function(event, ui) {
$('.ui-dialog-titlebar-close').hide();}}}],"zone":[{"show":"show","update":"highlight","element":"loginZone"}],"linkZone":[{"linkId":"loginForm","zoneId":"^","url":"/contextpath/t5app/login.loginform"}],"activate":["username"],"validate":[{"password":[["required",""]],"language":[["required","Sie
müssen einen Wert für Sprache angeben."]],"username":[["required",""]]}]});
});
Any suggestions?
Thanks!!!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org