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

Zdenek Sochor commented on TOMAHAWK-1012:
-----------------------------------------

Hi,
  this issue is IMHO invalid due to intended use of server-side switching mode.
The purpose is to render only active tab to minimize data used in client-server 
round-trip.

It would be pointless (and error-prone) to validate non-rendered components.

Example:
Imagine setting components to required="true" in non-active tabs. In your patch 
you're validating them and getting nulls if not setted beforehand in 
code/backing bean -> error in validation phase.
Next step in patch is automatic switching to last invalid tab, never allowing 
user to switch to another tab she/he selected (switching ending in the same 
validation errors).

For validation of all tabs you have to use client-side switching mode (it was 
designed for the purpose of validating all tabs).

Best regards,
Zdenek

> TabbedPane does not validate non-selected tabs in server side tab switching 
> mode
> --------------------------------------------------------------------------------
>
>                 Key: TOMAHAWK-1012
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1012
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Tabbed Pane
>    Affects Versions: 1.1.5, 1.1.6-SNAPSHOT
>            Reporter: David Delbecq
>         Attachments: tabbedPaneValidator.diff
>
>
> When your form spreads accross a tabbed pane, the validators of components 
> residing inside not selected tab are not validated. This is a problem because 
> all form need to be validated before writting values to backing beans.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to