The CommandLink does not work with tomahawk-1.1.4-SNAPSHOT.jar.
The only combination that I can get to work is by using the tomahawk.jar that
comes with the
sample application. This jar will work with both the
myfaces-impl-1.1.4-SNAPSHOT.jar, and the
myfaces-impl-1.1.3.jar.
This is the JavaScript generated by tomahawk-1.1.4-SNAPSHOT.jar:
<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>
This is the JavaScript generated by tomahawk.jar (this works):
<a href="#"
onclick="clear_selectProjectTypeIssueType();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
--- Sean Schofield <[EMAIL PROTECTED]> wrote:
> OK this sounds like it might be a bug. Please report in JIRA as Jeff
> suggested. Please also test against Tomahawk 1.1.3 SNAPSHOT in the
> nightly dir. This is basically a release candidate for the upcoming
> release. If that works then we know the problem is in MyFaces core
> (since its working fine with version 1.1.2 of the core for me.)
>
> Sean
>
> On 6/7/06, Mike Duffy <[EMAIL PROTECTED]> wrote:
> > I am using myfaces-api-1.1.4-SNAPSHOT.jar, myfaces-impl-1.1.4-SNAPSHOT.jar,
> > and
> tomahawk-1.1.2.jar
> > or tomahawk-1.1.4-SNAPSHOT.jar.
> >
> > If I use the tomahawk.jar that comes with the simple application, the
> > commandLinkworks fine.
> >
> > If I substitute tomahawk-1.1.4-SNAPSHOT.jar into the simple.war app, the
> > commandLinks in that
> app
> > fail. I also get an erro on startup: java.lang.NoClassDefFoundError:
> > org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
> >
> > I think there is a bug.
> >
> > Mike
> >
> >
> > --- Murray Brandon <[EMAIL PROTECTED]> wrote:
> >
> > > Do you have a properly resolved processAction method on your bean? If
> > > you don't have this properly resolving, you will not get a commandLink
> > > rendering, (just text? cant remember).
> > >
> > > I find it difficult to believe commandLink has a bug all of a sudden.
> > > It's such a simple component and it works fine on my Tomcat 5.5.15
> > > (which I use for testing cos it's so blindingly fast). Which version of
> > > Myfaces? The latest? Are you using a nightly build?
> > >
> > > Let me know what you find.
> > >
> > > Your bean must implement:
> > > ie. public void processAction(ActionEvent e) throws
> > > AbortProcessingException
> > >
> > > An example of my commandLink is below (am using the superb facelets too,
> > > but you get the gist):
> > >
> > > <h:commandLink actionListener="#{mybean.processAction}"
> > > disabled="#{disabled}" type="submit" rendered="#{rendered}">
> > > <c:if test="${not empty imageUrl and empty
> > > mouseoverImageUrl}">
> > > <t:graphicImage value="${imageUrl}"
> > > styleClass="noborder" />
> > > </c:if>
> > > <c:if test="${not empty imageUrl and not empty
> > > mouseoverImageUrl}">
> > > <t:graphicImage value="${imageUrl}"
> > > styleClass="noborder"
> > >
> > > onmouseover="auiChangeImage(this,'${mouseoverImageUrl}')"
> > > onmouseout="auiChangeImage(this,'${imageUrl}')" />
> > > </c:if>
> > > <c:if test="${not empty text}">
> > > <h:outputText value="${text}" />
> > > </c:if>
> > > </h:commandLink>
> > >
> > > Mike Duffy wrote:
> > > > This did not work for me. The fact that the command link does not work
> > > > is a SERIOUS BUG
> in
> > > > MyFaces. Any suggestions on the best way to report this bug?
> > > >
> > > > Mike
> > > >
> > > >
> > > > --- Garner Shawn <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > >> I got my commandLinks to work by adding the JSP-API.jar that came with
> > > >> facelets to my /web-inf/lib directory instead of the one in the
> > > >> tomcat/commons/lib directory.
> > > >> However this gives me another problem where my JSP forward isn't
> > > >> working.
> > > >> Seems to be some incompatibilty somewhere.
> > > >> I'm getting fed up and am going to back to Struts real soon.
> > > >>
> > > >> Shawn
> > > >>
> > > >>
> > > >
> > > >
> > > > __________________________________________________
> > > > 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
> >
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com