You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Patel, Sanjay " <sa...@NEMOURS.ORG> on 2008/06/11 21:10:24 UTC

How to get context path

Hi,

my images in the application are in webapp/image folder. How to get
Context Path in wicket so I can prepend this path to display the image.
I am looking for something like this.

getContextPath() + "image/icon.gif";

Please suggest how to do that.

Thanks,
Sanjay.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: How to get context path

Posted by "Hoover, William " <wh...@nemours.org>.
Done: https://issues.apache.org/jira/browse/WICKET-1700 

-----Original Message-----
From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com] 
Sent: Thursday, June 12, 2008 11:32 AM
To: users@wicket.apache.org
Subject: Re: How to get context path

jira is your friend

-igor

On Thu, Jun 12, 2008 at 4:46 AM, Hoover, William <wh...@nemours.org>
wrote:
> It would be better if ContextImage was a behavior rather than an 
> actual component. For instance, if you have an html input of 
> type=image (or a link for that matter) you can still utilize the 
> behavior whereas a component you cannot ;o)
>
> -----Original Message-----
> From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> Sent: Wednesday, June 11, 2008 3:29 PM
> To: users@wicket.apache.org
> Subject: Re: How to get context path
>
> see ContextImage
>
> -igor
>
> On Wed, Jun 11, 2008 at 12:10 PM, Patel, Sanjay <sa...@nemours.org>
> wrote:
>> Hi,
>>
>> my images in the application are in webapp/image folder. How to get 
>> Context Path in wicket so I can prepend this path to display the
> image.
>> I am looking for something like this.
>>
>> getContextPath() + "image/icon.gif";
>>
>> Please suggest how to do that.
>>
>> Thanks,
>> Sanjay.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to get context path

Posted by Igor Vaynberg <ig...@gmail.com>.
jira is your friend

-igor

On Thu, Jun 12, 2008 at 4:46 AM, Hoover, William <wh...@nemours.org> wrote:
> It would be better if ContextImage was a behavior rather than an actual
> component. For instance, if you have an html input of type=image (or a
> link for that matter) you can still utilize the behavior whereas a
> component you cannot ;o)
>
> -----Original Message-----
> From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> Sent: Wednesday, June 11, 2008 3:29 PM
> To: users@wicket.apache.org
> Subject: Re: How to get context path
>
> see ContextImage
>
> -igor
>
> On Wed, Jun 11, 2008 at 12:10 PM, Patel, Sanjay <sa...@nemours.org>
> wrote:
>> Hi,
>>
>> my images in the application are in webapp/image folder. How to get
>> Context Path in wicket so I can prepend this path to display the
> image.
>> I am looking for something like this.
>>
>> getContextPath() + "image/icon.gif";
>>
>> Please suggest how to do that.
>>
>> Thanks,
>> Sanjay.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: How to get context path

Posted by "Hoover, William " <wh...@nemours.org>.
It would be better if ContextImage was a behavior rather than an actual
component. For instance, if you have an html input of type=image (or a
link for that matter) you can still utilize the behavior whereas a
component you cannot ;o)

-----Original Message-----
From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com] 
Sent: Wednesday, June 11, 2008 3:29 PM
To: users@wicket.apache.org
Subject: Re: How to get context path

see ContextImage

-igor

On Wed, Jun 11, 2008 at 12:10 PM, Patel, Sanjay <sa...@nemours.org>
wrote:
> Hi,
>
> my images in the application are in webapp/image folder. How to get 
> Context Path in wicket so I can prepend this path to display the
image.
> I am looking for something like this.
>
> getContextPath() + "image/icon.gif";
>
> Please suggest how to do that.
>
> Thanks,
> Sanjay.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to get context path

Posted by Igor Vaynberg <ig...@gmail.com>.
see ContextImage

-igor

On Wed, Jun 11, 2008 at 12:10 PM, Patel, Sanjay <sa...@nemours.org> wrote:
> Hi,
>
> my images in the application are in webapp/image folder. How to get
> Context Path in wicket so I can prepend this path to display the image.
> I am looking for something like this.
>
> getContextPath() + "image/icon.gif";
>
> Please suggest how to do that.
>
> Thanks,
> Sanjay.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org