Can you define "it doesn't work"? Do you mean your action method isn't
called? Or doesn't anything happen. Not even a page reload?
If you have installed Firebug, you might try to find out if any JS errors
occur at page load or when you click the link. With Firebug, you can also
take a look at the request being made. With Firebug 3, you might have to
manually turn on the console yourself, since it is disabled by default.
Have you attached any listeners or other customizations to the lifecycle
which may cause problems? For example, things like subclassing the Faces
Servlet, custom Servlet Filters, PhaseListeners, custom ViewHandler, Tomcat
Valves... There are many things that can go wrong even before your request
reaches JSF itself.
Also, what minor version of MyFaces are you using? Like everything, MyFaces
gets better with every version. I suggest upgrading to the latest version
before you go on a possibly long road of debugging and testing. It may just
be a repaired MyFaces bug, you never know...
Regards,
Jan-Kees
2008/8/14 Ryan Lubke <Ryan.Lubke_at_sun.com>
> jvnk wrote:
>
>> Hi Ryan,
>>
>> h:commandLink did not work, so I tried t:commandLink. But that did not
>> work.
>>
>> I am using IE 6.x & Firefox 3 .x for testing. I am using JSF1.1 (MyFaces)
>>
>>
> Hard to say what's going on with the MyFaces implementation of
> h:commandLink.
>
> I'd recommend following up on the MyFaces user mailing list.
>
>
>
> Thanks,
>> Nag
>>
>>
>> Ryan Lubke wrote:
>>
>>
>>> 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
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
>>> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>
>