You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Noah Sloan (JIRA)" <de...@myfaces.apache.org> on 2005/11/03 23:28:49 UTC

[jira] Created: (MYFACES-779) t:panelTabbedPane breaks commandLinks

t:panelTabbedPane breaks commandLinks
-------------------------------------

         Key: MYFACES-779
         URL: http://issues.apache.org/jira/browse/MYFACES-779
     Project: MyFaces
        Type: Bug
  Components: Tomahawk  
    Versions: 1.1.0    
    Reporter: Noah Sloan


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


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

Posted by "Izak Wessels (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-90?page=comments#action_12421807 ] 
            
Izak Wessels commented on TOMAHAWK-90:
--------------------------------------

Could an administrator please change the status of "Patch Available" to something else, seeing as there isn't a patch available. 

My apologies for any inconvenience this may have caused 

> t:panelTabbedPane breaks commandLinks
> -------------------------------------
>
>                 Key: TOMAHAWK-90
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-90
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Tabbed Pane
>            Reporter: Noah Sloan
>         Assigned To: 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

        

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

Posted by "robert (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/TOMAHAWK-90?page=all ]

robert updated TOMAHAWK-90:
---------------------------

    Status: Patch Available  (was: Open)

> t:panelTabbedPane breaks commandLinks
> -------------------------------------
>
>                 Key: TOMAHAWK-90
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-90
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Tabbed Pane
>            Reporter: Noah Sloan
>         Assigned To: 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

        

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

Posted by "Christian Bohn (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-90?page=comments#action_12412901 ] 

Christian Bohn commented on TOMAHAWK-90:
----------------------------------------

This issue does not only affect commandLinks but also commandButtons which are in forms inside a panelTabbedPane. The button itself works but a Javascript-error occurs when loading the page and when clicking the button.

Is there a known workaround?

Used Versions:
MyFaces Core 1.1.3
Tomahawk 1.1.2

> 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


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

Posted by "John Boardman (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462852 ] 

John Boardman commented on TOMAHAWK-90:
---------------------------------------

This fix worked perfectly for me. I put it just after <t:panelTab> in all my <t:panelTabbedPane> controls, and now my forms work in both Firefox and IE instead of just Firefox.

Thanks for the tip!


> t:panelTabbedPane breaks commandLinks
> -------------------------------------
>
>                 Key: TOMAHAWK-90
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-90
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Tabbed Pane
>            Reporter: Noah Sloan
>         Assigned To: 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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Izak Wessels (JIRA)" <de...@myfaces.apache.org>.
    [ 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


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

Posted by "robert (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-90?page=comments#action_12437539 ] 
            
robert commented on TOMAHAWK-90:
--------------------------------

Sorry my Mistake! 
I dont have a pach! 

sorry once again

> t:panelTabbedPane breaks commandLinks
> -------------------------------------
>
>                 Key: TOMAHAWK-90
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-90
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Tabbed Pane
>            Reporter: Noah Sloan
>         Assigned To: 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

        

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

Posted by "robert (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-90?page=comments#action_12437805 ] 
            
robert commented on TOMAHAWK-90:
--------------------------------

Could it be, that this problem happens when the < f:verbatim> is used inside the panelTabbedPane. I had a problem with CommandLinks and Buttons, always from the second (or third...) Tab. The Action was not fired. In the first Tub there was no problem. Then I realized that I put the < f:verbatim> Tag in every Tab to show my html Tags. Since I removed it the actions are fired.
There are more Problems with this tag so I don't use it any more in my code.


> t:panelTabbedPane breaks commandLinks
> -------------------------------------
>
>                 Key: TOMAHAWK-90
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-90
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Tabbed Pane
>            Reporter: Noah Sloan
>         Assigned To: 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

        

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

Posted by "Izak Wessels (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/TOMAHAWK-90?page=all ]

Izak Wessels updated TOMAHAWK-90:
---------------------------------

    Status: Patch Available  (was: Open)

> 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


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

Posted by "Bret (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-90?page=comments#action_12420201 ] 

Bret commented on TOMAHAWK-90:
------------------------------

This work around doesn't seem to work if the form being used on the page wraps around the entire <t:panelTabbedPane> component.  Anyone have suggestions?


<h:form id="myform">
  <t:panelTabbedPane...
    <t:panelTab...
    ....

    </t:panelTab>
  </t:panelTabbedPane>
</h:form>

> 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


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

Posted by "Bert Depaz (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480791 ] 

Bert Depaz commented on TOMAHAWK-90:
------------------------------------

Hi, 

I just want to comment on this that the mentioned fix with the "autoFormKiller" did not work for me neither. I hope there's still a solution on the way for this.

Further, I'm also trying to have a t:dataTable with a t:dataScroller in my t:panelTab. Browsing the scroller is acting in the same way as clicking a commandLink: so I presume this is related to this same issue.

regards,
Bert

> t:panelTabbedPane breaks commandLinks
> -------------------------------------
>
>                 Key: TOMAHAWK-90
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-90
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Tabbed Pane
>            Reporter: Noah Sloan
>         Assigned To: 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.
-
You can reply to this email to add a comment to the issue online.


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

Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/TOMAHAWK-90?page=all ]

Mario Ivankovits updated TOMAHAWK-90:
-------------------------------------

    Status: Open  (was: Patch Available)

> t:panelTabbedPane breaks commandLinks
> -------------------------------------
>
>                 Key: TOMAHAWK-90
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-90
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Tabbed Pane
>            Reporter: Noah Sloan
>         Assigned To: 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

        

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

Posted by "Noah Sloan (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/TOMAHAWK-90?page=all ]

Noah Sloan updated TOMAHAWK-90:
-------------------------------

    Status: Open  (was: Patch Available)

> t:panelTabbedPane breaks commandLinks
> -------------------------------------
>
>                 Key: TOMAHAWK-90
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-90
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Tabbed Pane
>            Reporter: Noah Sloan
>         Assigned To: 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

        

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

Posted by "Melvin Mak (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-90?page=comments#action_12424492 ] 
            
Melvin Mak commented on TOMAHAWK-90:
------------------------------------

I am also facing this problem of commandlink not working in panelTab, and I also have a form that wraps around the entire <t:panelTabbedPane> component. Does anyone already has a workaround for this bug?

> t:panelTabbedPane breaks commandLinks
> -------------------------------------
>
>                 Key: TOMAHAWK-90
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-90
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Tabbed Pane
>            Reporter: Noah Sloan
>         Assigned To: 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