I am using JBoss 4.0.4 with MyFaces 1.1.3, tomahawk 1.1.2, and have no
problems. I also use commandLink extensively in my application. You have
shown us the generated javascript, but not the actual JSF page? Maybe we
can notice something you did not...
By the way, I have seen this behaviour before in myfaces, where I
clicked a link and got nothing, not even an error. For me, the cause
turned out to be a null pointer somehow crashing JSF. I had an EL
expression, e.g. <h:outputText value="#{myBean.myDAO.myTextString}"/>.
When "myDAO" was null, I would encounter behaviour like you are
describing. After displaying a page with such a mistake, none of the
buttons would work anymore, and I basically couldn't get anywhere until
I redeployed...
Regards,
Jeff Bischoff
Kenneth L Kurz & Assoc, Inc.
Mike Duffy wrote:
Here is the generated JavaScript for the command link:
<a href="#"
onclick="clear_selectProjectTypeIssueType();document.forms['selectProjectTypeIssueType'].elements['autoScroll'].value=getScrolling();document.forms['selectProjectTypeIssueType'].elements['selectProjectTypeIssueType:_link_hidden_'].value='selectProjectTypeIssueType:selectButton';if(document.forms['selectProjectTypeIssueType'].onsubmit){var
result=document.forms['selectProjectTypeIssueType'].onsubmit(); if( (typeof
result ==
'undefined') || result )
{document.forms['selectProjectTypeIssueType'].submit();}}else{document.forms['selectProjectTypeIssueType'].submit();}return
false;" id="selectProjectTypeIssueType:selectButton"><span
class="buttonLabel">Select</span></a>
--- Mike Duffy <[EMAIL PROTECTED]> wrote:
I am having this same problem on JBoss 4.0.4 which uses Tomcat 5.5.
Everything seems to be configured correctly, click on the command link, and
nothing happens. I
do
not even get an error message.
I Googled for a solution. At one time this was a problem in the SUN RI and the
solution was to
switch to MyFaces
(http://forum.java.sun.com/thread.jspa?threadID=739598&messageID=4244849)
I got the nightly build for MyFaces (1.14 SNAPSHOT); this did not help.
It is very frustrating when something so simple does not work. Any help would
be appreciated.
Thx.
Mike
--- Garner Shawn <[EMAIL PROTECTED]> wrote:
Added the forms around the links.
No changes, still not working. Not getting a javascript error anymore.
Just does nothing.
---------------------------------------------------------------------------------
From: "Matthias Wessendorf" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <[email protected]>
Date: Wed, 31 May 2006 07:04:38 +0200
Subject: Re: commandLinks don't work on Tomcat 5.5.17
have you wrapped them into <h:form ?
like
<h:form>
...
<h:commandLink ... />
...
<h:commandLink ... />
...
</h:form>
-Matthias
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com