Re: Absolute Paths in Tapestry 5.2.5
The path seems to be working now but the problem with the ajax resists in my generated site i have a autocompleter and in the sourcecode of the site i found this Tapestry.onDOMLoaded(function() { Tapestry.init({ "autocompleter" : [ [ "nameInput", "nameInput:menu", "/myApp/game/account/givegift.playerinput.nameinput:autocomplete", <--- x { "minChars" : 3, "indicator" : "nameInput:loader", "paramName" : "t:input" } ] ] }); I think the autocompleter does not work because of the relative path here Thanks for all replies! Jochen -- View this message in context: http://tapestry.1045711.n5.nabble.com/Absolute-Paths-in-Tapestry-5-2-5-tp4300824p4305448.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Absolute Paths in Tapestry 5.2.5
Hi Christian, tank you for this great Tip! I overridden the getContextPath() method and it gets called but after i return "/" i get a timeout at the browser. Your tip sounds good and i have to investigate further. Thanks a lot! Jochen -- View this message in context: http://tapestry.1045711.n5.nabble.com/Absolute-Paths-in-Tapestry-5-2-5-tp4300824p4305176.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Absolute Paths in Tapestry 5.2.5
Hi, yes you are right That is my apache httpd-vhosts.conf ServerName myApp ProxyPass / http://localhost:8080/myApp/ ProxyPassReverse / http://localhost:8080/myApp/ Maybe i cannot use this proxypass rule as i wanted. Or we doing here unusual things ? Greetings Jochen -- View this message in context: http://tapestry.1045711.n5.nabble.com/Absolute-Paths-in-Tapestry-5-2-5-tp4300824p4302551.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Absolute Paths in Tapestry 5.2.5
Thank you all for your replies ! > ProxyPass /myApp http://localhost:8080/myApp > ProxyPassReverse /myApp http://localhost:8080/myApp The above rules are working but i want to hide the appname and have a rule like this ProxyPass / http://localhost:8080/myApp ProxyPassReverse / http://localhost:8080/myApp And thats where the AJAX/Javascript problems start. I think that is because of the relative path in the generated source of the site. In the source there is a path to core.js --> /myApp/0.1-SNAPSHOT/stack/core.js But after the Proxy there is not /myApp anymore I think i have to change the path of /myApp/0.1-SNAPSHOT/stack/core.js to /0.1-SNAPSHOT/stack/core.js or something. Please correct me if i am wrong. Thank you all! Jochen -- View this message in context: http://tapestry.1045711.n5.nabble.com/Absolute-Paths-in-Tapestry-5-2-5-tp4300824p4302361.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Absolute Paths in Tapestry 5.2.5
Hi, i am tried this in AppModule : public static void contributeAlias(Configuration configuration) { BaseURLSource source = new BaseURLSource() { public String getBaseURL(boolean secure) { return "http://";; } }; configuration.add(AliasContribution.create(BaseURLSource.class, source)); } but the method getBaseURL gets never called. Did i missed something. Thanks Jochen -- View this message in context: http://tapestry.1045711.n5.nabble.com/Absolute-Paths-in-Tapestry-5-2-5-tp4300824p4300975.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Absolute Paths in Tapestry 5.2.5
Hi ! I'm using Tapestry 5.2.5 and i use Glassfish behind a apache httpd as a proxy. The httpd is doing a ProxyPass / http://localhost:8080/myApp so that i am able to call my site from the root. I'm able to see my site at http://test.local/ instead of http://test.local/myApp. That works fine except the Javascript stuff. I see in the sources of the webpage that there is a path to /myApp/0.1-SNAPSHOT/stack/core.js is inserted. But there is no path beginning with /myApp... because i changed this with the proxy to the root of the domain. Is it possible to change those relative uris to absolute uris ? Thanks a lot Jochen -- View this message in context: http://tapestry.1045711.n5.nabble.com/Absolute-Paths-in-Tapestry-5-2-5-tp4300824p4300824.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org