Thats because you need to give that String to this method of Page:
public final String urlFor(final String resourceKey)

johan


On 2/6/06, Iulian-Corneliu Costan <[EMAIL PROTECTED]> wrote:
Along those lines with what Piotr said, ResourceReference.getPath() method is supposed to return full path in this format: /context/servlet_name/resources/path.to.your.resource?

Right now it doesn't include context and servlet path, only resources/path.to.your.resource.

/iulian


On 2/6/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
yes that is what i mean. you don't have anything to do with those urls. You don't have to genereate them
wicket does that for you.

johan



On 2/6/06, karthik Guru <[EMAIL PROTECTED]> wrote:
the complete path will show up there. I think Johan just forgot to
mention it there.
So i guess yo dont have to worry about constructing the path to the JS .

On 2/6/06, Piotr Bzdyl < [EMAIL PROTECTED]> wrote:
>
> > That path is youre webapplication context and youre wicket servlet name
> > That is constant for youre application. You don't generate that at all
> > you only make/register
> > Resources to the SharedResources.
> >
> > So every application will have this resource with this path:
> >
> >
> >     /resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js
> >
> >
> But I would like create reusable component - how could it know what is
> the web application context and wicket servlet name? Should I just use:
>
> Component.getApplication (), WebApplication.getWicketServlet().getName()
> and getServletContext().getServletContextName()
>
> or there is some utility method in wicket for this purpose?
>
> Best regards,
> Piotr
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



Reply via email to