[ 
https://issues.apache.org/jira/browse/TOMAHAWK-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029441#comment-13029441
 ] 

Leonardo Uribe commented on TOMAHAWK-1572:
------------------------------------------

It is true that a autoform is rendered around it automatically, but the fact is 
this is correct.

The problem is this component must be wrapped by a outer form component 
(h:form) to work correctly. Why? because this component has state that must be 
preserved between requests, and jsf uses an input hidden at the end of h:form. 
It is possible to do some hack to add a h:form, but this one will not be a real 
dummy, like the current code.

Historically, this code was let as is as a "warning" to users about this 
problem. If you need to submit stuff per tabs, use t:subform tag instead. I'll 
close this issue as invalid. Thanks for your attention in the details.

> CLONE - t:panelTabbedPane breaks commandLinks
> ---------------------------------------------
>
>                 Key: TOMAHAWK-1572
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1572
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Tabbed Pane
>            Reporter: John Yeary
>            Assignee: Thomas Spiegl
>              Labels: commandLink, panelTabbedPane
>         Attachments: AutoformVisible.jpg
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to