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:
<YourApplication.java>
  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"));
  }
</YourApplication.java>

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
<YourPage.java>
    @Override
    public void renderHead(IHeaderResponse response) {
        super.renderHead(response);
response.renderCSSReference("acn/site/css/jquery.mobile-1.0a3.min.css", "screen");
    }
</YourPage.java>

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:

<html class="ui-mobile">
  <head>
   <title>tagmagic.com</title>
        <link rel="stylesheet"
href="http://www.server.com/acn/site/css/jquery.mobile-1.0a3.min.css"; />
        
        
  </head>

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<Void>("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

Reply via email to