java - Wicket Bookmarkable link -


i have created new link in welcome.java following

private link<void> drawlink;  drawlink = new bookmarkablepagelink<void>("drawsome", drawsomething.class); add(drawlink); 

the following goes in webpage.html

<li> <a href="#" wicket:id="drawsome">draw</a>            </li> 

there 2 issues want fix.

  1. i url

    localhost/project-name/wicket/bookmarkable/package-name.drawsomething?0

but wanted link as

localhost/project-name/drawsomething?0

  1. as drawsomething new page added project, welcome page having drawsomethign.properties file page.icon , page.title.

    page.title=d3 vis page.icon=images/home_page.png

the drawsomething page loads page title throws error image not resolve images folder.

but have images folder in src/main/webapp/images/home_page.png

can please me resolve both issues.

do during application initailization:

@override protected void initialize() {     mountpage("drawsomething", drawsomething.class); } 

path images folder relative webroot path, try ../images/home_page.png


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -