[
http://issues.apache.org/jira/browse/TOMAHAWK-416?page=comments#action_12412060
]
Scott Moore commented on TOMAHAWK-416:
--------------------------------------
Mario,
As you suggested, I tried to remove the commandLink and commandButton renderer
from Tomahawk's faces-config.xml, though I may not have done it correctly,
since I can't get it to work.
I expanded tomahawk-1.1.2.jar and edited META-INF/faces-config.xml. I commented
out these elements:
<renderer>
<component-family>javax.faces.Command</component-family>
<renderer-type>javax.faces.Button</renderer-type>
<renderer-class>org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlButtonRenderer</renderer-class>
</renderer>
<renderer>
<component-family>javax.faces.Command</component-family>
<renderer-type>javax.faces.Link</renderer-type>
<renderer-class>org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer</renderer-class>
</renderer>
<renderer>
<component-family>javax.faces.Command</component-family>
<renderer-type>org.apache.myfaces.Button</renderer-type>
<renderer-class>org.apache.myfaces.renderkit.html.ext.HtmlButtonRenderer</renderer-class>
</renderer>
<renderer>
<component-family>javax.faces.Command</component-family>
<renderer-type>org.apache.myfaces.Link</renderer-type>
<renderer-class>org.apache.myfaces.renderkit.html.ext.HtmlLinkRenderer</renderer-class>
</renderer>
I then created a new Tomahawk jar (tomahawk-1.1.1a.jar) and deployed that with
my web applications. So my application was using Sun's RI (jsf-api 1.1 and
jsf-impl 1.1_01), and my modified Tomahawk 1.1.2 jar.
The small webapp that I created for trying out the Tree2 component seemed to
work fine. However, I couldn't even load the login page of the webapp that I
eventually would like to add the Tree2 component to. It failed with the ERROR:
ERROR http-8080-Processor23 StandardWrapper[/gm:Faces Servlet] -
Servlet.service() for servlet Faces Servlet threw exception
java.lang.NoSuchMethodError:
org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm(Ljavax/faces/context/FacesContext;)Z
I also tried the above, commenting out different elements:
- A faces-config.xml with the HtmlButtonRenderer and HtmlLinkRenderer commented
out
- A faces-config.xml with the DummyFormHtmlButtonRenderer and
DummyFormHtmlLinkRenderer commented out
Those attempts did not work, either.
Did I understand your suggested workaround correctly? Should I try something
else?
Thanks,
Scott
> Installing Tomahawk breaks jsf-ri commandLink and Button components
> -------------------------------------------------------------------
>
> Key: TOMAHAWK-416
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-416
> Project: MyFaces Tomahawk
> Type: Bug
> Components: Extended CommandLink/CommandButton, NavigationMenuItem
> Versions: 1.1.3-SNAPSHOT
> Reporter: Mike Youngstrom
> Priority: Blocker
>
> It appears that the extended Link and Button renderers added to the tomahawk
> faces-config break JSF-RI's ability to correctly render Links and buttons.
> This is a serious issue. Coming up soon will be the first solo tomahawk
> release which is supposed to help show tomahawk's independence from myfaces
> core. Yet this release will be completely unusable on the only other major
> jsf implementation out there. Let me know if there is something the RI can
> do to help fix this problem.
> Mike
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira