You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Izak Wessels (JIRA)" <de...@myfaces.apache.org> on 2006/06/19 03:34:33 UTC

[jira] Commented: (TOMAHAWK-90) t:panelTabbedPane breaks commandLinks

    [ http://issues.apache.org/jira/browse/TOMAHAWK-90?page=comments#action_12416694 ] 

Izak Wessels commented on TOMAHAWK-90:
--------------------------------------

I didn't realize that if I click on the "Provide Patch" link, that it would actually change the status of the issue. 
However, I have found a workaround for those that are still experiencing this problem. 

Insert an empty form at the top of your page, that will cause the closing tag of the autoform to render earlier,
thus allowing the commandLink on the page to work properly.

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<t:panelTab label="E-Mail Details" rendered="#{emailBean.emailDetailsTabVisible}">
  <h:form id="autoFormKiller"/>

    <h:form id="myForm">
        <h:commandLink value="myLink" action="#{myBean.myLink}"/>
    </h:form>

</t:panelTab>
    



> t:panelTabbedPane breaks commandLinks
> -------------------------------------
>
>          Key: TOMAHAWK-90
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-90
>      Project: MyFaces Tomahawk
>         Type: Bug

>   Components: Tabbed Pane
>     Reporter: Noah Sloan
>     Assignee: Thomas Spiegl

>
> When a commandLink is nested inside a panelTab as part of a panelTabbedPane, the resulting commandLink does not work because its form gets nested in the 'autoform' generated by the panelTabbedPane.  
> The result is a Javascript error when the link is clicked.

-- 
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