Re: URL with root parameters
For the first point: What is the goal? Load the css from external url or put it in the application? The first should work with the link you've provided. If you want to load the css from within the application you have to do some more. First you have to introduce your css-resouce to the application: protected void init() { super.init(); mountResource("acn/site/css/jquery.mobile-1.0a3.min.css", new PackageResourceReference(getClass(), "res/js/jquery.mobile-1.0a3.min.css")); } Hint: You can give the resource key a name not depending on version (mountResource("acn/site/css/jquery.mobile.css", new PackageResourceReference(getClass(), "res/js/jquery.mobile-1.0a3.min.css"));) Then you have to add the css to your page @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.renderCSSReference("acn/site/css/jquery.mobile-1.0a3.min.css", "screen"); } Hint: You don't need the stylesheet-link in markup anymore. For the second point: Hiding the parameters is not possible. You could set the parameters to the session or store them in a database. So you could extract them on the other side. Would be interessting to get the cause of your requirement (Don't show the parameters) Cheers Per Am 21.11.2011 10:44, schrieb intmanch: This is the head of my HomePage.html: tagmagic.com http://www.server.com/acn/site/css/jquery.mobile-1.0a3.min.css"; /> As you can see I've to point the css and js to an external url as if I put it as a resource in the java package is never loaded. For the second part this is the code more or less: HomePage.java final PageParameters pp = new PageParameters(); pp.set("campaign", url, 0); pp.set("box", b.getId(), 1); Link link = new Link("linkbox") { @Override public void onClick() { setResponsePage(new FeedbackBoxPage(pp)); } }; In Application.java mountPage("/feedback/", FeedbackBoxPage.class); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/URL-with-root-parameters-tp4089764p4091048.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: URL with root parameters
This is the head of my HomePage.html: tagmagic.com http://www.server.com/acn/site/css/jquery.mobile-1.0a3.min.css"; /> As you can see I've to point the css and js to an external url as if I put it as a resource in the java package is never loaded. For the second part this is the code more or less: HomePage.java final PageParameters pp = new PageParameters(); pp.set("campaign", url, 0); pp.set("box", b.getId(), 1); Link link = new Link("linkbox") { @Override public void onClick() { setResponsePage(new FeedbackBoxPage(pp)); } }; In Application.java mountPage("/feedback/", FeedbackBoxPage.class); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/URL-with-root-parameters-tp4089764p4091048.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: URL with root parameters
I don't understand the first part of your problem. How do you use the images. In other pages? Located in markup? Some code could really be useful here. On the second part: How do you call the page? Do you provide the page parameters of anchor to constructed page? Some code could really be useful here to. Cheers Per Am 20.11.2011 23:12, schrieb intmanch: Hi, I'm developing an application that uses a parameter on the root url like this: /param under Wicket 1.5 I mount it like this: mountPage("/${a}", HomePage.class); but my problem is that then all the resources, images, etc. that I use are not loaded because I always arrive to the root HomePage code. So I'm force to place my resources in an external server. Is there another way to do this? Second point, when I go from my HomePage to other pages the parameters are displayed, is there a way to hide them? Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/URL-with-root-parameters-tp4089764p4089764.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org