Problem in outputLink

hi.

i have a very strange problem in using outputLink

whatever i give the link, it redirects the page to the same page only.

my code is as folows:

<h:outputLink value="#{myAction.doSomething">

<f:verbatim>

<h:graphicImage id="submit"

url= "submit.gif"

>

</h:graphicImage>

i have specified the "myAction" in the managed Bean section of faces-config.

can any one tell me what is the problem?

[489 byte] By [Ansh.a] at [2007-11-27 5:15:43]
# 1
Have you actually definied a navigation case?
BalusCa at 2007-7-12 10:38:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Remove f:verbatim. I don't know why you have it there.Add a closing '}' in the outputLink value.Ensure myAction.doSomething returns a String of the URL you are attempting to navigate too.CowKing
IamCowKinga at 2007-7-12 10:38:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
I realize that you're confusing h:commandLink with h:outputLink. The h:outputLink should refer to a plain vanilla URI. If you want to invoke methodbindings, rather use h:commandLink.
BalusCa at 2007-7-12 10:38:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Just realized this is a double post:

http://forum.java.sun.com/thread.jspa?threadID=5175745&tstart=0

He is indeed confusing commandLink with outputLink. They are different (command* renders a form submit button, outputLink renders a simple <a href="..."> URL link).

Show us the code of what you are trying to do. What is in your faces-config.xml and your myAction.doSomething method.

CowKing

IamCowKinga at 2007-7-12 10:38:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...