We have some similar issues with relative paths. We've already gotten around the problem for our SSL pages (going from non-ssl to an ssl page was not pulling resources in properly because of the relative urls), but now it is cropping up again in another area. We have some legacy applications which we are gradually rewriting to be wicket based, and some of our content is served via static HTML (from a content management system) that will never be wicket based. To bridge between the two we include wicket components on these pages through AJAX calls. For example, we have a dynamic panel for selecting items to add to your cart which gets included on some of our product pages.
This all worked fine in Wicket 1.2.x due to it using absolute paths. With 1.3.x we are having issues with the AjaxSubmitButton that is included on the panel. It submits and adds the items to the cart just fine, but it then is redirecting to a relative (outside of the wicket app) url to which it appends the wicket parameters. It is supposed to redirect to our cart (wicket based) page. We definitely vote for having some kind of hooks to override this functionality. Like I said, we've got it working for the SSL based pages and that took a lot of work, but now we need to do the same type of thing for non-ssl pages. Thanks, Barrett Snyder Vegas.com Johan Compagner wrote: > > But maybe we should build in a hook (wicket filter or application) > > where people get the current browser url, the url part that should be made > relative (or absolute) > and thn let them decided what to return there > > Default impl is what we do now > > johan > > > > On Fri, Mar 7, 2008 at 10:54 PM, Igor Vaynberg <[EMAIL PROTECTED]> > wrote: > >> well, we are not going to make it backwards compatible, so saying that >> it used to work in 1.2 isnt going to help you... >> >> -igor >> >> >> On Fri, Mar 7, 2008 at 1:48 PM, Renan Camponez <[EMAIL PROTECTED]> >> wrote: >> > I know that... Thats my problem.. :) >> > >> > On Fri, Mar 7, 2008 at 6:47 PM, Igor Vaynberg >> <[EMAIL PROTECTED]> >> > >> > >> > wrote: >> > >> > > wicket 1.3 is not backwards compatible with 1.2 >> > > >> > > -igor >> > > >> > > >> > > On Fri, Mar 7, 2008 at 1:45 PM, Renan Camponez < >> [EMAIL PROTECTED]> >> > > wrote: >> > > > The problem is that at wicket 1.2 it works... >> > > > Bcs wicket 1.2 use /myapp/wicketservlet/blabla.. >> > > > >> > > > >> > > > On Fri, Mar 7, 2008 at 6:39 PM, Igor Vaynberg < >> [EMAIL PROTECTED]> >> > > > >> > > > >> > > > wrote: >> > > > >> > > > > hrm, dont know if we support that kind of thing, or took it >> into >> > > > > consideration while testing. >> > > > > >> > > > > can you not use wicket as a filter that gets hit before your >> servlet? >> > > > > >> > > > > -igor >> > > > > >> > > > > >> > > > > On Fri, Mar 7, 2008 at 1:37 PM, Renan Camponez < >> > > [EMAIL PROTECTED]> >> > > > > wrote: >> > > > > > Exacly.. >> > > > > > >> > > > > > >> > > > > > On Fri, Mar 7, 2008 at 6:34 PM, Igor Vaynberg < >> > > [EMAIL PROTECTED]> >> > > > > > >> > > > > > >> > > > > > wrote: >> > > > > > >> > > > > > > so a nonwicket /app/mainservlet servlet redirects to the >> wicket >> > > > > servlet? >> > > > > > > >> > > > > > > -igor >> > > > > > > >> > > > > > > >> > > > > > > On Fri, Mar 7, 2008 at 1:05 PM, Renan Camponez < >> > > > > [EMAIL PROTECTED]> >> > > > > > > wrote: >> > > > > > > > Igor, >> > > > > > > > Thanks for quick answer... >> > > > > > > > My problem is a little more difficult to solve.. >> > > > > > > > The problem is that I have a servlet at >> /app/mainservlet >> who >> > > > > handle if >> > > > > > > all >> > > > > > > > requests... >> > > > > > > > If i do a request to wicket Page, it redirects me to >> wicket >> > > > > servlet.. >> > > > > > > But my >> > > > > > > > URL remains the same.. >> > > > > > > > >> > > > > > > > That means that I'm acessing for example: >> > > > > > > > /app/mainservlet/getWicket1 >> > > > > > > > >> > > > > > > > This goes to the wicketservlet, and returns the page... >> With >> > > all >> > > > > > > relative >> > > > > > > > images, buttons, ajaxSubmitLinks... >> > > > > > > > The "onclick" method for ajaxSubmit links are >> ../../../../ >> > > too.. >> > > > > But as >> > > > > > > I am >> > > > > > > > at /app/mainservlet, it goes wrong... >> > > > > > > > >> > > > > > > > Thats my real problem... Any ideia? >> > > > > > > > >> > > > > > > > On Fri, Mar 7, 2008 at 6:00 PM, Igor Vaynberg < >> > > > > [EMAIL PROTECTED]> >> > > > > > > > wrote: >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > > use ContextImage class >> > > > > > > > > >> > > > > > > > > also current wicket takes over contextroot/resources >> > > directory, >> > > > > so >> > > > > > > you >> > > > > > > > > might want to use something else. >> > > > > > > > > >> > > > > > > > > -igor >> > > > > > > > > >> > > > > > > > > >> > > > > > > > > On Fri, Mar 7, 2008 at 12:43 PM, Renan Camponez < >> > > > > > > [EMAIL PROTECTED]> >> > > > > > > > > wrote: >> > > > > > > > > > Hi.. >> > > > > > > > > > I have a image.. in my HTML it is > > > > > >> > > > > src="resources/images/ibFind.gif"/>.. After wicket, >> it >> > > is >> > > > > > > > > > > > > > >> src="../../../../resources/images/ibFind.gif"> >> > > > > > > > > > But I need to have absolute path instead of >> > > ../../../.... >> > > > > > > > > > >> > > > > > > > > > What should I override? What is responsible to do >> that >> > > > > replace? >> > > > > > > > > > I've already tried to override the WicketFilter >> > > > > getRelativePath() >> > > > > > > > > method, >> > > > > > > > > > but it doesn't works.. >> > > > > > > > > > >> > > > > > > > > > Please, help! >> > > > > > > > > > Thanks, >> > > > > > > > > > Renan >> > > > > > > > > > >> > > > > > > > > >> > > > > > > > > >> > > > > >> --------------------------------------------------------------------- >> > > > > > > > > To unsubscribe, e-mail: >> [EMAIL PROTECTED] >> > > > > > > > > For additional commands, e-mail: >> > > [EMAIL PROTECTED] >> > > > > > > > > >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > > >> > > >> --------------------------------------------------------------------- >> > > > > > > To unsubscribe, e-mail: >> [EMAIL PROTECTED] >> > > > > > > For additional commands, e-mail: >> [EMAIL PROTECTED] >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > > >> --------------------------------------------------------------------- >> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > > > > For additional commands, e-mail: [EMAIL PROTECTED] >> > > > > >> > > > > >> > > > >> > > >> > > >> --------------------------------------------------------------------- >> > > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > > For additional commands, e-mail: [EMAIL PROTECTED] >> > > >> > > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Wicket-1.3-relative-path-problem-tp15905621p17700641.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
