Re: Autocomplete mixin - Ajax request path
I believe the code that generates the link you're talking about is on line 150 of AutoComplete.java in T5.2.4. Link link = resources.createEventLink(*EVENT_NAME*); By doing a little bit of digging from there, I found that the (internal) service LinkSource does the hard work. I'm not the right person to say what's possible with internal services. But if it's possible, you could do an decoration/override/advice of that service and do some neat tricks there. This is the beauty of tapestry, you can usually find the source of most information within a couple of clicks in eclipse, and the code is most often very readable because of the clear separation of concerns between services. On Wed, Dec 15, 2010 at 2:53 PM, Michael Bayer michael.ba...@gameforge.comwrote: Hi there! I have a tapestry powered site running behind an HTTP-Proxy that hides the glassfish instance from the user. Unfortunately it also hides the web-app context root: http://doma.in:8080/contextRoot/page becomes http://doma.in/page This causes a whole lot of problems, most of which I managed to fix (I use an AssetPathConverter for example), but I wasn't able to find a way to change the request path of the autocomplete mixin's ajax requests, the path always contains the context root (but not hostname and port). Is there a way to change the request path of those ajax requests? Tapestry version: 5.2 -- Michael Bayer Software Developer Gameforge Productions GmbH Albert-Nestler-Straße 8 D-76131 Karlsruhe Tel. +49 721 354 808-0 Fax +49 721 354 808-152 michael.ba...@gameforge.de http://www.gameforge.de Amtsgericht Mannheim, HRB 701682 USt-ID: DE 254 298 652 Geschäftsführer: Alexander Rösner, Christoph Jennen - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Autocomplete mixin - Ajax request path
You could use the url rewriting functionality introduced in 5.1 (note: the api for this changes between 5.1 and 5.2). It allows you to rewrite incoming urls and links within the application. It's a public api. Robert On Dec 16, 2010, at 12/162:06 AM , Inge Solvoll wrote: I believe the code that generates the link you're talking about is on line 150 of AutoComplete.java in T5.2.4. Link link = resources.createEventLink(*EVENT_NAME*); By doing a little bit of digging from there, I found that the (internal) service LinkSource does the hard work. I'm not the right person to say what's possible with internal services. But if it's possible, you could do an decoration/override/advice of that service and do some neat tricks there. This is the beauty of tapestry, you can usually find the source of most information within a couple of clicks in eclipse, and the code is most often very readable because of the clear separation of concerns between services. On Wed, Dec 15, 2010 at 2:53 PM, Michael Bayer michael.ba...@gameforge.comwrote: Hi there! I have a tapestry powered site running behind an HTTP-Proxy that hides the glassfish instance from the user. Unfortunately it also hides the web-app context root: http://doma.in:8080/contextRoot/page becomes http://doma.in/page This causes a whole lot of problems, most of which I managed to fix (I use an AssetPathConverter for example), but I wasn't able to find a way to change the request path of the autocomplete mixin's ajax requests, the path always contains the context root (but not hostname and port). Is there a way to change the request path of those ajax requests? Tapestry version: 5.2 -- Michael Bayer Software Developer Gameforge Productions GmbH Albert-Nestler-Straße 8 D-76131 Karlsruhe Tel. +49 721 354 808-0 Fax +49 721 354 808-152 michael.ba...@gameforge.de http://www.gameforge.de Amtsgericht Mannheim, HRB 701682 USt-ID: DE 254 298 652 Geschäftsführer: Alexander Rösner, Christoph Jennen - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Autocomplete mixin - Ajax request path
Hi there! I have a tapestry powered site running behind an HTTP-Proxy that hides the glassfish instance from the user. Unfortunately it also hides the web-app context root: http://doma.in:8080/contextRoot/page becomes http://doma.in/page This causes a whole lot of problems, most of which I managed to fix (I use an AssetPathConverter for example), but I wasn't able to find a way to change the request path of the autocomplete mixin's ajax requests, the path always contains the context root (but not hostname and port). Is there a way to change the request path of those ajax requests? Tapestry version: 5.2 -- Michael Bayer Software Developer Gameforge Productions GmbH Albert-Nestler-Straße 8 D-76131 Karlsruhe Tel. +49 721 354 808-0 Fax +49 721 354 808-152 michael.ba...@gameforge.de http://www.gameforge.de Amtsgericht Mannheim, HRB 701682 USt-ID: DE 254 298 652 Geschäftsführer: Alexander Rösner, Christoph Jennen - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org