what happens if there is an error? how does wicket redirect back to that
page? how is that back url generated?

-igor



On 2/15/07, beboris <[EMAIL PROTECTED]> wrote:


After 2 months of working with Wicket we almost felt like "profies" but
now
that we have to [loosely] integrate some pieces written by others we've
got
into one of those Wicket "gotchas" again...

So, there is a simple home page with a simple javascript created by
others,
which we host inside our framework, but don't want to rewrite from
scratch...

Let's say, this is a URL of that home page:
    http://mydomain.com/webappPath/wicketServletMappingPath/index.html

The page contains DHTML which works with a bunch of relative URL-s of
images
that are downloaded by a javascript (js/home/myscript.js), such as:
    var imgName = "../img/home/login.jpg";

And the page shows up just fine.

All the page interaction with our (Wicket-based) site is limited to one
simple login form that posts (via HTTP[S] POST) to our Wicket
implementation. If there is no error - everything works fine, and the user
is redirected to an authenticated area.

However, if there is an error, wicket returns back with a different URL
!!!


http://mydomain.com/webappPath/wicketServletMappingPath/index.html/wicket:pageMapName/wicket-0

That's it! Relative paths to resources don't work anymore... The whole
page
stops working.

There gotta be a simple solution to that, that doesn't require me to
rewrite
the whole home page.

But is there? Please, help!

Thanks,
Bob.

--
View this message in context:
http://www.nabble.com/Relative-URL-s-on-the-page-stop-working-after-HTTP-POST-tf3236431.html#a8994858
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to