Bug with CommandButton...?

Hi, have a serius problem, i have a commandButton without value or action attributes only with and image attribute fixed.

The problem consist of that if i put the url of the image with a / at the bigining (something like this: <h:commandButton image="/images/miImage.gif "> ) when i execute the page the image is not showed, appear as a little white box with an x in the middle.

Now if i delete the / at the bigining of the url of the image (something like this: <h:commandButton image="images/miImage.gif ">) then the image is showed but when i click the over it the image desappear and everything comes back to the state i described first.

What is happening ..?

[700 byte] By [maykella] at [2007-10-3 1:37:42]
# 1

Hi, have a serius problem, i have a commandButton without value or action attributes only with and image attribute fixed.

The problem consist of that if i put the url of the image with a / at the bigining (something like this: <h:commandButton image="/images/miImage.gif "> ) when i execute the page the image is not showed, appear as a little white box with an x in the middle.

Now if i delete the / at the bigining of the url of the image (something like this: <h:commandButton image="images/miImage.gif ">) then the image is showed but when i click the over it the image desappear and everything comes back to the state i described first.

What is happening ..?

maykella at 2007-7-14 18:35:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
put the name of the application in the path/MyWeb/images/image.jpgor usevalue="#{facesContext.externalContext.requestContextPath}/images/image.jpg"
amitteva at 2007-7-14 18:35:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...