Hmm, im not sure if I can have absolute urls and changing our mount method is too late now, I guess.

 

I did not tell the whole story in my mail some of the image urls are actually kept correct.

 

We have a component that are called helpLink, when attached to our page url comes our correct:

 

Like this:

http://localhost:8080/jobindsats/ui/i/ikon-help.gif

 

when its attached to another component we have it comes out like this:

 

http://localhost:8080/jobindsats/viewer/databanksitemap/ydelsesgruppeId/Y01/maalingId/ui/i/ikon-help.gif

 

using the page without entry from the mountable path gives no errors of course (i’ve also tried setting a page in before the wanted page which picks up the parameters, but I am unable to clear the url of them).

 

 

See code of helpLink here:

 

Working img:

<a title="Vis hj&aelig;lp til variable" href="" class="help" wicket:id="help"><img src="" alt="Vis hj&aelig;lp til variable" /></a>

Not working img:

<a title="Vis hj&aelig;lp til&nbsp;" href="" class="help" wicket:id="help"><img src="" wicket:id="helpimg" alt="Hj&aelig;lp" /></a>

http://paste.uni.cc/11120

 

 

Hmmm scrap above, found out the trouble…

 

 

In our other component there was added this(took a look at not working im above):

 

helpLink.add(new WebMarkupContainer("helpimg").add(new AttributeModifier("alt", new Model("Vis hjælp til "+ subj))));

 

this apparently recreated the link to our image aswell so it got the page and parameters prepended.

 

 

I got it workingJ I must say that sometimes I wish I had a parrot as most of my problems seems to be solved when trying to explain what Im trying to doJ

 

 

Regards Nino

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: 27. oktober 2006 09:37
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] mountBookmarkablePage

 

use absolute paths for your images and you wont have this problem

or mount with a querystringurlcodingstrategy so your url will be application/page?parama=value&paramb=value

-Igor

On 10/27/06, Nino Wael <[EMAIL PROTECTED]> wrote:

Hi I have a page that are set as mountBookmarkablePage, and it gets its parameters from the

 

url etc http://localhost:8080/application/page/paramA/valueA/paramB/valueB

 

When my page has picked up the parameters i wish to clear them so that my url becomes something like http://localhost:8080/application/page .

 

Reason why I want to do this are that some of the other pages I have some of the image references get smashed so image ref should have been:

 

http://localhost:8080/application/ui/i/ikon-help.gif

 

but are instead :

 

http://localhost:8080/application/page/paramA/valueA/paramB/valueB/ui/i/ikon-help.gif

 

 

 

Hoping for some answers.

 

Regards Nino


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to