You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mike Duffy <md...@yahoo.com> on 2006/06/05 09:42:46 UTC

Re: commandLinks don't work on Tomcat 5.5.17

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 <sh...@gmail.com> wrote:

> Added the forms around the links.
> No changes, still not working.  Not getting a javascript error anymore.
> Just does nothing.
> 
> ---------------------------------------------------------------------------------
> From: "Matthias Wessendorf" <ma...@apache.org>
> To: "MyFaces Discussion" <us...@myfaces.apache.org>
> 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 

Re: commandLinks don't work on Tomcat 5.5.17

Posted by tony k <to...@sbcglobal.net>.
i experienced some wierdness having to do with lack of surrounding <html> and
<body> tags.
if you don't have these, try adding them and see if this makes a difference.
--
View this message in context: http://www.nabble.com/Re%3A-Re%3A-commandLinks-don%27t-work-on-Tomcat-5.5.17-t1710594.html#a4750939
Sent from the MyFaces - Users forum at Nabble.com.


Re: commandLinks don't work on Tomcat 5.5.17

Posted by Chaitanya Kadaru <ka...@yahoo.com>.
Hi

I think the same issue is for Data scroller component
as well when i am using the same versions of jboss and
tomcat. It will be intresting to know the solution and
it may be the same for all. The tomahawk version being
used is 1.1.2

kc

--- Mike Duffy <md...@yahoo.com> 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 <sh...@gmail.com> wrote:
> 
> > Added the forms around the links.
> > No changes, still not working.  Not getting a
> javascript error anymore.
> > Just does nothing.
> > 
> >
>
---------------------------------------------------------------------------------
> > From: "Matthias Wessendorf" <ma...@apache.org>
> > To: "MyFaces Discussion"
> <us...@myfaces.apache.org>
> > 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 
> 


Re: commandLinks don't work on Tomcat 5.5.17

Posted by Jeff Bischoff <jb...@klkurz.com>.
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 <md...@yahoo.com> 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 <sh...@gmail.com> wrote:
>>
>>
>>>Added the forms around the links.
>>>No changes, still not working.  Not getting a javascript error anymore.
>>>Just does nothing.
>>>
>>>---------------------------------------------------------------------------------
>>>From: "Matthias Wessendorf" <ma...@apache.org>
>>>To: "MyFaces Discussion" <us...@myfaces.apache.org>
>>>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 
> 
> 
> 



Re: commandLinks don't work on Tomcat 5.5.17

Posted by Mike Duffy <md...@yahoo.com>.
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 <md...@yahoo.com> 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 <sh...@gmail.com> wrote:
> 
> > Added the forms around the links.
> > No changes, still not working.  Not getting a javascript error anymore.
> > Just does nothing.
> > 
> > ---------------------------------------------------------------------------------
> > From: "Matthias Wessendorf" <ma...@apache.org>
> > To: "MyFaces Discussion" <us...@myfaces.apache.org>
> > 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