Just an FYI for those who want to know what the problem was about or solution
for it is. We did mount the page, and it didn't help. So, we created a
sample and shared it with Igor. He filed a bug and created a patch (see
https://issues.apache.org/jira/browse/WICKET-290). I'll keep you posted
whether it fixed the problem for us...


igor.vaynberg wrote:
> 
> mount the page using querystringcodingstrategy that way the link will be
> /index.html?wicket:pagemap...
> -igor
> 
> 
> On 2/15/07, beboris <[EMAIL PROTECTED]> wrote:
>>
>>
>> Nothing happens. We stay on the same HomePage and display an error.
>> Unfortunately, Wicket changes URL of the page though, so relative links
>> stop
>> working... (see a code snippet below, please)
>>
>> -bob
>>
>> HomePage extends WebPage
>> ...
>> LoginForm form = new Form() {
>> ...
>>   @Override
>>   public void onSubmit() {
>>     ... // Login logic here.
>>     if (ok) {
>>       setResponsePage(new FNMyPhotosWebPage());
>>     } else {
>>        error(""Log-in for [" + email + "] failed"");
>> ...
>>
>>
>>
>> igor.vaynberg wrote:
>> >
>> > 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
>> >> Wicket-user@lists.sourceforge.net
>> >> 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
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Relative-URL-s-on-the-page-stop-working-after-HTTP-POST-tf3236431.html#a8996063
>> 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
>> Wicket-user@lists.sourceforge.net
>> 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
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Relative-URL-s-on-the-page-stop-working-after-HTTP-POST-tf3236431.html#a9016315
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to