Re: [Wicket-user] Still link problems (was: Is wicket on the right path?)
Hi David and others, I've converted my tiny project to Wicket 1.2, but encounter the same problems as with Wicket 1.1.1. - the image on the first page is not found, - clicking the About link shows the about page, but does not render the links correctly (About is still a link). My exploded directory contains this structure: +---META-INF | context.xml | +---pages | | Index.html | | PageTemplate.html | | | +---about | | Index.html | | | \---graphics | logo.gif | \---WEB-INF | web.xml | +---classes | \---com | \---foo | \---website | | FooWebApplication$1.class | | FooWebApplication.class | | | +---pages | | | Index.class | | | | | \---about | | Index.class | | | \---templates | PageTemplate.class | \---lib commons-logging-1.0.4.jar log4j-1.2.12.jar wicket-1.2-20060227-0200.jar I'd really appreciate it, if someone please could take a look at the tiny project (http://regnis.de/_wicket/wicket-060228.zip) and give a hint about what's wrong and how to make it better. Thanks in advance. -- Best regards, Thomas Singer David Leangen schrieb: Most of your questions were already answered by Johan (who can answer better than I, anyway). For the others, see inline. In any case, something like this is surely possible with mountable links. I have read a lot about different links in wicket, but nothing yet about *mountable* links. Also, the wiki does not show anything. Indeed. These are available from Wicket 1.2. I'm in the process of writing a wiki page, but haven't had time to finish it yet. These mountable links are really nice, BTW... (3) Even at design-time, relative paths to images or the style-sheet should be valid, so IDEA can verify their existence and image size. This requires the page templates to be in the same directory structure as the images and style-sheet. Wicket does this if you want it to. See above example, I do not get it to work as expected. Please note, that I need the application to work at http://server:port/foo/ and not at http://server:port/foo (the trailing slash problem). Again, works with mountable links. You need to set up 1.2 and mount your links. (5) It should be very easy to turn links, e.g. used in the menu bar snippet, into smart links. If pointing to the current page, they must not be rendered as a link, but the look should be customizable (wicket seems to use italics in this situation). All out of the box. How to customize the look of the not rendered link? CSS works just fine. Wicket allows you to customise the not-rendered-link, just like any other component. Or, if it's not customizable enough for you, you can create your own component. If you're playing around with 1.2, I suggest you also download the latest snapshot of the examples and look directly into the code there. HTH --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Still link problems (was: Is wicket on the right path?)
Hi, I took a look at your project, but I am definitely not the right guy to ask about this. I have no experience with what you're trying to do. Good luck! Dave On Tue, 2006-02-28 at 21:50 +0100, Thomas Singer wrote: Hi David and others, I've converted my tiny project to Wicket 1.2, but encounter the same problems as with Wicket 1.1.1. - the image on the first page is not found, - clicking the About link shows the about page, but does not render the links correctly (About is still a link). My exploded directory contains this structure: +---META-INF | context.xml | +---pages | | Index.html | | PageTemplate.html | | | +---about | | Index.html | | | \---graphics | logo.gif | \---WEB-INF | web.xml | +---classes | \---com | \---foo | \---website | | FooWebApplication$1.class | | FooWebApplication.class | | | +---pages | | | Index.class | | | | | \---about | | Index.class | | | \---templates | PageTemplate.class | \---lib commons-logging-1.0.4.jar log4j-1.2.12.jar wicket-1.2-20060227-0200.jar I'd really appreciate it, if someone please could take a look at the tiny project (http://regnis.de/_wicket/wicket-060228.zip) and give a hint about what's wrong and how to make it better. Thanks in advance. -- Best regards, Thomas Singer David Leangen schrieb: Most of your questions were already answered by Johan (who can answer better than I, anyway). For the others, see inline. In any case, something like this is surely possible with mountable links. I have read a lot about different links in wicket, but nothing yet about *mountable* links. Also, the wiki does not show anything. Indeed. These are available from Wicket 1.2. I'm in the process of writing a wiki page, but haven't had time to finish it yet. These mountable links are really nice, BTW... (3) Even at design-time, relative paths to images or the style-sheet should be valid, so IDEA can verify their existence and image size. This requires the page templates to be in the same directory structure as the images and style-sheet. Wicket does this if you want it to. See above example, I do not get it to work as expected. Please note, that I need the application to work at http://server:port/foo/ and not at http://server:port/foo (the trailing slash problem). Again, works with mountable links. You need to set up 1.2 and mount your links. (5) It should be very easy to turn links, e.g. used in the menu bar snippet, into smart links. If pointing to the current page, they must not be rendered as a link, but the look should be customizable (wicket seems to use italics in this situation). All out of the box. How to customize the look of the not rendered link? CSS works just fine. Wicket allows you to customise the not-rendered-link, just like any other component. Or, if it's not customizable enough for you, you can create your own component. If you're playing around with 1.2, I suggest you also download the latest snapshot of the examples and look directly into the code there. HTH --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
Re: [Wicket-user] Still link problems (was: Is wicket on the right path?)
On 3/1/06, Thomas Singer [EMAIL PROTECTED] wrote: I've converted my tiny project to Wicket 1.2, but encounter the sameproblems as with Wicket 1.1.1.One difference I noticed between yours and mine (which was based off the quickstart) is that I have my wicket servlet mapped to /app and not / This way anything /* thats -not- wicket is handled by standard web conventions. I then have /images /css at the same level as my WEB-INF directory.I have a /index.html which simply redirects to /app to get the applications home page. Mark