dev@javaserverfaces.java.net

Re: commandLink not working

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Thu, 14 Aug 2008 12:22:57 -0700

Is your issue with t:commandLink, h:commandLink, both?

What implementation/version of JSF are you using?
What browser have you been testing? Any JS errors
when clicking the links?


jvnk wrote:
> Hello Friends,
>
> I have problems using commandLink. Below is the code!! I tried all the
> possible ways but none works, expect when I changed commandLink to
> commandButton
>
> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
>
> <f:view>
> <h:form id="srchrsltsForm">
> <h:commandButton id="cl1" value="Test Param1"
> action="#{subSearchBean.keySubDetails}">
> <f:param name="subscriptionID" value="12345B" />
> </h:commandButton>
> <br><br>
> <t:commandLink id="cl2" action="#{subSearchBean.keySubDetails}">
> <h:outputText value="Tom Link"/>
> </t:commandLink>
> <br><br>
> <h:commandLink id="cl21" action="#{subSearchBean.keySubDetails}">
> <h:outputText value="My Link"/>
> </h:commandLink>
> <br><bR>
> <h:commandLink id="c21" value="My Link 2"
> action="#{subSearchBean.keySubDetails}"/>
> <br><bR>
> <h:commandLink id="c22" value="My Link 2"
> action="#{subSearchBean.keySubDetails}">My Link 3</h:commandLink>
>
> </h:form>
> </f:view>
>
> Thanks,
> Nag
>